Tags:
create new tag
, view all tags

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

TWiki version: TWikiRelease04x02x00
TWiki plugins: DefaultPlugin, EmptyPlugin, InterwikiPlugin
Server OS: CentOS 4
Web server: httpd-2.0.52-38.ent.centos4.2
Perl version: perl-5.8.5-36.el4_5.2
Client OS: Ubuntu Gutsy
Web Browser: Various
Categories: Search, Missing functionality, Skin

-- MarcusLeonard - 08 Mar 2008

Answer

ALERT! 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

 
Change status to:
Topic revision: r4 - 2008-03-23 - MarcusLeonard
 
Twitter Delicious Facebook Digg Google Bookmarks E-mail LinkedIn Reddit StumbleUpon    
  • Download TWiki
TWiki logo Powered by Perl Hosted by OICcam.com Ideas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2012 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.