Question
RSS feeds are broken on my 4.2 installation. I'm getting the following error from readers:
XML Parsing Error: xml declaration not at start of external entity
Location: http://host.domain.etc/wiki/view/TWiki/Web<nop>Rss
Line Number 2, Column 1:
There is a blank line at the top of RSS feed topics (when viewing browser source), and my research seems to confirm that this causes this XML parsing error.
I've looked at the rss templates,
view.rss.tmpl and
view.rssatom.tmpl, removed even the comments at the start, and seen no change. It appears that something is causing the newline even before the template is consulted. But normal view pages have no newline at the start. Skin customisations etc seem irrelevant because the feeds run under their own skin entirely.
Any ideas? All our feeds are out of action.
Environment
--
MarcusLeonard - 08 Mar 2008
Answer
If you answer a question - or have a question you asked answered by someone - please remember to edit the page and set the status to answered. The status is in a drop-down list below the edit box.
Please file a
bug report if you feel you discovered a bug.
--
PeterThoeny - 09 Mar 2008
Okay:
TWikibug:Item5426 filed. Seems to be same as closed
TWikibug:Item4203.
--
MarcusLeonard - 09 Mar 2008
The answer: I developed a COVER skin template to customise some of the UI elements. While newlines don't normally seem to be a problem, newlines near the top, around
%TMPL:INCLUDE{"view"}% , introduced an extra newline into the rss output and broke the XML. See
TWikibug:Item5426 for more info.
--
MarcusLeonard - 23 Mar 2008