[2.0] Invalid RSS feed

Found a bug? Tell us!!
Post Reply
yellowled
Regular
Posts: 7111
Joined: Fri Jan 13, 2006 11:46 am
Location: Eutin, Germany
Contact:

[2.0] Invalid RSS feed

Post by yellowled »

I'm not sure if this is actually related to 2.0.

I was wondering why my blog post announcement via IFTTT on Twitter and Facebook wasn't working after the 2.0-rc1 update. Turns out, IFTTT can't parse the RSS feed. Opening the RSS feed in the browser gives me:
error on line 2 at column 6: XML declaration allowed only at the start of the document
Which is true – my RSS feed indeed starts with an empty line, which doesn't seem to be allowed. I have not customized the feed tpl files.

Is this a bug in 2.0, is it something I did wrong in my blog or …?

YL
MarioH
Regular
Posts: 238
Joined: Mon Jul 20, 2009 10:53 pm
Contact:

Re: [2.0] Invalid RSS feed

Post by MarioH »

Hi YL,

can't see this effect on my blog's RSS feed.

Regards
Mario
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: [2.0] Invalid RSS feed

Post by garvinhicking »

Hi!

This is always hard to analyze; one of the language files or plugins or even your template's config.inc.php file (or even one of the new 2.0 core files) emits a blank line / linebreak either before the first <?php or the last ?>.

To debug this, first you could disable all event plugins and see if this goes away (make sure to append rss.php?nocache=true to not get client caching).

If not, next check your own language and config.inc.php files of the template.

If it still does not go away we'll need to dig deeper. However since in my and other blogs the error doesn't appear, it shouldn't really be related to core files I hope.
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
yellowled
Regular
Posts: 7111
Joined: Fri Jan 13, 2006 11:46 am
Location: Eutin, Germany
Contact:

Re: [2.0] Invalid RSS feed

Post by yellowled »

garvinhicking wrote:This is always hard to analyze […] However since in my and other blogs the error doesn't appear, it shouldn't really be related to core files I hope.
Nope, it's only in my garden-variety theme. :)

I did indeed have a stray empty line before <?php in my theme's config.inc.php. No idea how and why, but after removing it, the uncached feed is valid.

Thanks!

YL
Czorneboh
Regular
Posts: 385
Joined: Tue Apr 08, 2008 7:17 pm
Location: Berlin
Contact:

Re: [2.0] Invalid RSS feed

Post by Czorneboh »

Its not exactly the topic, but close:

Since a couple of month my feed is not okay.

There is this message:
This XML file does not appear to have any style information associated with it. The document tree is shown below.
I do not remember, if the design is spoiled since move to a new server and provider. I could imagine that.
Since the move my url has changed from http://blog.ost-impuls/... to https://www.blog-ost-impuls/...

My provider helped with the installation and importing.

How to find out, what is missed here?

Checklist?
yellowled
Regular
Posts: 7111
Joined: Fri Jan 13, 2006 11:46 am
Location: Eutin, Germany
Contact:

Re: [2.0] Invalid RSS feed

Post by yellowled »

Czorneboh wrote:
This XML file does not appear to have any style information associated with it. The document tree is shown below.
Unless you explicitly did have styles for your RSS feed before, that message is perfectly okay. XML can have a stylesheet, but doesn't have to have one.

YL
Post Reply