[opencms-dev] 5RC1-trouble - can't add new pages anymore
David Tildesley (DSLWN)
DavidTi at datacom.co.nz
Mon Jan 27 20:50:41 CET 2003
That's easy - make sure your html content is in a CDATA section! Because you
haven't enclosed the html properly, the XML parser is spitting the dummy on
the '&' in front of the ' '
Any error like this related to the parser (SAXParseException) means you
should look carefully at your XML. There are four reserved characters that
must be escaped when appearing in XML body, '&' is one of them. If you wrap
your html in a CDATA section, the parser will not try and interpret what's
inside.
David.
> -----Original Message-----
> From: Sven Dittmar [mailto:dittmar at rus.uni-stuttgart.de]
> Sent: Monday, 27 January 2003 11:48 p.m.
> To: opencms-dev
> Subject: [opencms-dev] 5RC1-trouble - can't add new pages anymore
>
>
> Hi all,
>
> I changed groups, templates and access-data last week (had to
> change the
> control-file manually afterwards) and today I am not able to add new
> pages anymore (existing pages still work fine).
>
> If I try create a new page (with any user even admin) I get the
> following messages:
>
> ==> webapps/opencms/WEB-INF/logs/opencms.log <==
>
> [27.01.2003 11:33:22] <opencms_critical> [CmsXmlTemplateFile] Cannot
> parse XML file "/system/bodies/studierende/test.html".
> org.xml.sax.SAXParseException: The entity "nbsp" was
> referenced, but not
> declared.
> [27.01.2003 11:33:22] <opencms_info> [CmsElementXml
> (CmsNewResourcePage/explorer_files_new_page)] Error in getContent for
> template class com.opencms.workplace.CmsNewResourcePage
>
> ==> logs/catalina.out <==
> [Fatal Error] :2:10: The entity "nbsp" was referenced, but
> not declared.
>
> I don't have a clue what's wrong here and neither do I understand the
> messages above...
>
> The wanted new file will be created in the filesystem
> nevertheless but
> it's not editable/usuable then.
>
> Has anyone experienced something similar?
>
> Thanks for any input,
> --
> Sven Dittmar, RUS Infodienste ------
> mailto:dittmar at rus.uni-stuttgart.de
> Computing Center University of Stuttgart (RUS) phone:
> +49.711.685.5990
> Allmandring 30, D-70550 Stuttgart, Germany fax:
> +49.711.678.7626
> ---------------------------------------
> http://www.rus.uni-stuttgart.de/
>
More information about the opencms-dev
mailing list