Hi

i make a fresh install of the new beta1 and add content ..i dont change the filter and use Filtered HTML..i just put text in the content..this brings me this error

# Warning: DOMDocumentFragment::appendXML(): Entity: line 9: parser error : StartTag: invalid element name in filter_dom_serialize_escape_cdata_element() (line 1068 of x/modules/filter/filter.module).
# Warning: DOMDocumentFragment::appendXML(): //--> in filter_dom_serialize_escape_cdata_element() (line 1068 of x/filter/filter.module).

CommentFileSizeAuthor
#12 Picture 1.png171.71 KBtaylorjameshoward

Comments

eule’s picture

uhmm no one get this error msg ?

damien tournoud’s picture

Version: 7.0-beta1 » 7.x-dev

I can see that on the updated Drupal.org database. There are three different error messages in the report:

Warning: DOMDocumentFragment::appendXML(): Entity: line 78: parser error : StartTag: invalid element name in filter_dom_serialize_escape_cdata_element() (line 1068 of /shared/drupalorg/www/modules/filter/filter.module).
Warning: DOMDocumentFragment::appendXML(): /*--><!]]>*/ in filter_dom_serialize_escape_cdata_element() (line 1068 of /shared/drupalorg/www/modules/filter/filter.module).
Warning: DOMDocumentFragment::appendXML(): ^ in filter_dom_serialize_escape_cdata_element() (line 1068 of /shared/drupalorg/www/modules/filter/filter.module).

This is on PHP 5.2.6-1+lenny9 (Debian Lenny).

g0nz1k12’s picture

+1
I have the same problem!

Julia_yl’s picture

+2
I have the same problem!

tesmon’s picture

+3
I have the same problem too

sherakama’s picture

The filter module does not like CDATA tags. Try removing them from your content.

Possibly a related post: http://drupal.org/node/967720

brucewhealtonjr’s picture

I am seeing this suddenly on the front page of my site. I don't seem to have any cdata code that I entered. I don't know what it is even catching. It seems to throw this warning above the very first content item that appears on the front page.
Bruce

sherakama’s picture

Look at your source code for tags that start with <![

ms word has been known to add in <![mso[ style junk into content. Remove those tags.

I ran all my nodes through html purifier and saved them back to the database after I migrated a drupal 6 -> 7 site.

http://htmlpurifier.org/

there is also a module for this as well.

http://drupal.org/project/htmlpurifier

dalin’s picture

Status: Active » Closed (duplicate)
Issue tags: -filter.module

Closing this as it is a dupe of a more recent issue that has a much better description of the problem:
http://drupal.org/node/998590#comment-4170376

Vc Developer’s picture

Had the same problem when I pasted from a LibraOffice Write document. I removed the CDATA and so far everything fine.

taylorjameshoward’s picture

Version: 7.x-dev » 7.4
Assigned: Unassigned » taylorjameshoward
StatusFileSize
new171.71 KB

This is the error code I'm getting...it takes up my entire homepage (http://jrhh.biz)

I've attached a picture of the entire error below...

Can anybody give me directions on how to fix this? I think it occurred when I was installing the google analytics code, so I deleted the analytics code, but my frontpage still has this error?

Please help me?

Warning: DOMDocumentFragment::appendXML() [domdocumentfragment.appendxml]: Entity: line 20: parser error : StartTag: invalid element name in filter_dom_serialize_escape_cdata_element() (line 1107 of /home4/searchs1/public_html/JrHH.biz/modules/filter/filter.module).

taylorjameshoward’s picture

Title: DOMDocumentFragment::appendXML » PROBLEM RESOLVED - DOMDocumentFragment::appendXML

I thought I had deleted all of the google analytics code, but I forgot that I also pasted it on my forms page (http://www.jrhh.biz/quote)

Weird that it does this? How do I register google analytics to my site if the code cause this massive error?

taylorjameshoward’s picture

I thought I had deleted all of the google analytics code, but I forgot that I also pasted it on my forms page (http://www.jrhh.biz/quote)

Weird that it does this? How do I register google analytics to my site if the code cause this massive error?