• Do not register here on develop.twiki.org, login with your twiki.org account.
• Use View topic Item7848 for generic doc work for TWiki-6.1.1. Use View topic Item7851 for doc work on extensions that are not part of a release. More... Close
• Anything you create or change in standard webs (Main, TWiki, Sandbox etc) will be automatically reverted on every SVN update.
Does this site look broken?. Use the LitterTray web for test cases.

Item5426: RSS feeds failing due to newlines at top of page.

Item Form Data

AppliesTo: Component: Priority: CurrentState: WaitingFor: TargetRelease ReleasedIn
Engine   Normal Closed   patch 4.2.1

Edit Form Data

Reported By:
Applies To:
Current State:
Waiting For:
Target Release:
Released In:


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
Location: http://host.domain.etc/wiki/view/TWiki/WebRss
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.

-- TWiki:Main/MarcusLeonard - 09 Mar 2008

Possibly caused by the incompatible spec change of no longer removing leading and trailing newlines in templates?

-- TWiki:Main.PeterThoeny - 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.

-- TWiki:Main.SteffenPoulsen - 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 view.pattern.template, 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 %TMPL:INCLUDE{"view"}% 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.

-- TWiki:Main.MarcusLeonard - 17 Mar 2008

Release meeting decision is to document behavior as it is. Arthur will do

-- KennethLavrsen - 17 Mar 2008

I have added a note. Would be great if we had a script some day to warn us for newlines.

-- ArthurClemens - 02 May 2008

Summary RSS feeds failing due to newlines at top of page.
ReportedBy TWiki:Main.MarcusLeonard
Codebase 4.2.0
SVN Range TWiki-5.0.0, Wed, 23 Jan 2008, build 16283
AppliesTo Engine

Priority Normal
CurrentState Closed


TargetRelease patch
ReleasedIn 4.2.1
Edit | Attach | Watch | Print version | History: r11 < r10 < r9 < r8 < r7 | Backlinks | Raw View |  Raw edit | More topic actions
Topic revision: r11 - 2008-08-04 - KennethLavrsen
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2022 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback