Closed (fixed)
Project:
Word Link
Version:
7.x-1.0
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
20 Nov 2012 at 19:38 UTC
Updated:
6 Dec 2012 at 09:10 UTC
Jump to comment: Most recent file
Warning: DOMDocumentFragment::appendXML() [domdocumentfragment.appendxml]: Entity: line 1: parser error : EntityRef: expecting ';' in word_link_replace_text() (line 211 of /var/www/pharma/drupal-7.12/sites/all/modules/contrib/word_link/word_link.module).
Theres several variations of this type error in my logs for a single node but this one appears to be the most prevalent of them.
| Comment | File | Size | Author |
|---|---|---|---|
| #4 | 7.x-1.0-ampersant-escape.patch | 755 bytes | paravibe |
Comments
Comment #1
paravibe commentedHello apmsooner,
Could you send me a copy of your node text and say which words you added? Contact me through contact form.
Comment #2
apmsooner commentedHey, I sent you emails through the contact form. I have tracked down exactly whats causing the errors. If there is html such as
&, i get the errors on the page. When i deleted that code, the errors go away. I did this on multiple instances and all seemed to be causing the problem.I think because this module is using XML, you need to escape all of the following characters and perhaps that fixes the problem?
I tested all those characters and the only one causing the error is
&. Sounds like an easy fix...Comment #3
apmsooner commentedReference to help you: http://stackoverflow.com/questions/4026502/xml-error-at-ampersand
Comment #4
paravibe commentedThanks for help.
Here is a patch to fix this error.
And it will be applied in next release.
Comment #5
paravibe commented