This seems to be the same as Item4203. I haven't re-opened that because it was for 4.1.2.
I've also logged a suppor topic: TWiki:Support/ParsingErrorWithWebRssAndWebAtom
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
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.
Marking Urgent 'cos no RSS feeds is pretty dire for us.
- 09 Mar 2008
Possibly caused by the incompatible spec change of no longer removing leading and trailing newlines in templates?
- 10 Mar 2008
The default feeds in 4.2.0 are OK, so could it be related to local skin settings or template changes? Does disabling non-standard plugins have any effect?
The feeds here - for instance http://develop.twiki.org/~twiki4/cgi-bin/view/Main/WebRss
- are working as they should.
- 13 Mar 2008
I don't think this is related to Item4203
. I suspect Steffen is right, it is more likely to be a local template issue than anything else, though plugins can also sometimes munge content so that feeds break, so it's important to know what plugins are installed. Marcus, more information about your install required!
Okay. I didn't think it would be a skin thing because I thought rss was kind of a skin on its own. I have a reasonably simple COVER skin which makes a handful of changes to pattern templates and a few CSS changes. After disabling plugins etc, I started messing with newlines in my "cover" view template. (There's actually no eol in
, so I thought that was it for a while.) It seems that newlines in my cover skin are mostly okay, but ones just before and after
seem to break RSS. It's working now.
The only feedback I'd give is that it's really not obvious that a stray newline in a template will cause this, and I think such a thing shouldn't cause this, given that there are lots of newlines in templates and it's not normally a problem. Close this if you think it's appropriate, but I'd suggest that it's still a bug, or at least should be addressed in some way.
Anyway, sorted now. Thanks to all for pointing me in the right direction.
- 17 Mar 2008
Release meeting decision is to document behavior as it is. Arthur will do
- 17 Mar 2008
I have added a note. Would be great if we had a script some day to warn us for newlines.
- 02 May 2008