Opened 13 years ago

Closed 13 years ago

#6758 closed Bug (duplicate)

Conflict with application/xhtml+xml MIME type

Reported by: Tom Leach Owned by:
Priority: Normal Milestone:
Component: General Version: 3.4.2
Keywords: Cc: tleach@…

Description

Server running PHP5. All _samples ran great but when I instantiated my own CKEditor in my CMS it broke. Mac Firefox 3.6.12 reports in the error console:

* errors

Error: undefined entity Source File: Line: 1, Column: 49 Source Code: <div xmlns="http://www.w3.org/1999/xhtml">&quot;&iexcl;&cent;&pound;&curren;&yen;&brvbar;&sect;&uml;&copy;&ordf;&laquo;&not;&reg;&macr;&deg;&plusmn;&sup2;&sup3;&acute;&micro;&para;&middot;&cedil;&sup1;&ordm;&raquo;&frac14;&frac12;&frac34;&iquest;&times;&divide;&fnof;&bull;&hellip;&prime;&Prime;&oline;&frasl;&weierp;&image;&real;&trade;&alefsym;&larr;&uarr;&rarr;&darr;&harr;&crarr;&lArr;&uArr;&rArr;&dArr;&hArr;&forall;&part;&exist;&empty;&nabla;&isin;&notin;&ni;&prod;&sum;&minus;&lowast;&radic;&prop;&infin;&ang;&and;&or;&cap;&cup;&int;&there4;&sim;&cong;&asymp;&ne;&equiv;&le;&ge;&sub;&sup;&nsub;&sube;&supe;&oplus;&otimes;&perp;&sdot;&lceil;&rceil;&lfloor;&rfloor;&lang;&rang;&loz;&spades;&clubs;&hearts;&diams;&circ;&tilde;&ensp;&emsp;&thinsp;&zwnj;&zwj;&lrm;&rlm;&ndash;&mdash;&lsquo;&rsquo;&sbquo;&ldquo;&rdquo;&bdquo;&dagger;&Dagger;&permil;&lsaquo;&rsaquo;&euro;&Agrave;&Aacute;&Acirc;&Atilde;&Auml;&Aring;&AElig;&Ccedil;&Egrave;&Eacute;&Ecirc;&Euml;&Igrave;&Iacute;&Icirc;&Iuml;&ETH;&Ntilde;&Ograve;&Oacute;&Ocirc;&Otilde;&Ouml;&Oslash;&Ugrave;&Uacute;&Ucirc;&Uuml;&Yacute;&THORN;&szlig;&agrave;&aacute;&acirc;&atilde;&auml;&aring;&aelig;&ccedil;&egrave;&eacute;&ecirc;&euml;&igrave;&iacute;&icirc;&iuml;&eth;&ntilde;&ograve;&oacute;&ocirc;&otilde;&ouml;&oslash;&ugrave;&uacute;&ucirc;&uuml;&yacute;&thorn;&yuml;&OElig;&oelig;&Scaron;&scaron;&Yuml;&Alpha;&Beta;&Gamma;&Delta;&Epsilon;&Zeta;&Eta;&Theta;&Iota;&Kappa;&Lambda;&Mu;&Nu;&Xi;&Omicron;&Pi;&Rho;&Sigma;&Tau;&Upsilon;&Phi;&Chi;&Psi;&Omega;&alpha;&beta;&gamma;&delta;&epsilon;&zeta;&eta;&theta;&iota;&kappa;&lambda;&mu;&nu;&xi;&omicron;&pi;&rho;&sigmaf;&sigma;&tau;&upsilon;&phi;&chi;&psi;&omega;&thetasym;&upsih;&piv;&#39;</div>

Error: uncaught exception: [Exception... "An invalid or illegal string was specified" code: "12" nsresult: "0x8053000c (NS_ERROR_DOM_SYNTAX_ERR)" location: "http://example.com/admin/ckeditor/ckeditor.js Line: 52"]

* end errors

After I commented out this line, CKEditor worked as expected:

header('Content-Type: application/xhtml+xml');

This is the W3C recommended MIME type to use for XHTML. See section 3.1 - http://www.w3.org/TR/xhtml-media-types/#application-xhtml-xml

Attachments (1)

cke_bug.png (11.2 KB) - added by Tom Leach 13 years ago.
Screen caputre of the offending entity as reported by Firefox 3.6.12

Download all attachments as: .zip

Change History (2)

Changed 13 years ago by Tom Leach

Attachment: cke_bug.png added

Screen caputre of the offending entity as reported by Firefox 3.6.12

comment:1 Changed 13 years ago by Alfonso Martínez de Lizarrondo

Keywords: xhtml mime removed
Resolution: duplicate
Status: newclosed

dup of #4576

Note: See TracTickets for help on using tickets.
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy