Page 1 of 1

[2.0] Invalid RSS feed

Posted: Mon Dec 22, 2014 10:14 pm
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

Re: [2.0] Invalid RSS feed

Posted: Mon Dec 22, 2014 11:01 pm
by MarioH
Hi YL,

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

Regards
Mario

Re: [2.0] Invalid RSS feed

Posted: Tue Dec 23, 2014 11:36 am
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.

Re: [2.0] Invalid RSS feed

Posted: Tue Dec 23, 2014 1:21 pm
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

Re: [2.0] Invalid RSS feed

Posted: Thu Jan 08, 2015 1:40 am
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?

Re: [2.0] Invalid RSS feed

Posted: Thu Jan 08, 2015 6:44 am
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