Page 1 of 1

RSS Feed Error - Theme related?

Posted: Sun Nov 25, 2007 5:39 pm
by DaveH
Greetings.

I'm having a bit of a challenge with RSS feeds. I'm getting the following error:

XML Parsing Error: xml declaration not at start of external entity
Location: http://www.soccerchica.com/feeds/catego ... ticles.rss

Line Number 2, Column 1:
<?xml version="1.0" encoding="utf-8" ?>
^

I suspect this means I have an extra blank line, but I'm at a loss as to where it's generated. I don't know where to look for it.

Any ideas?

Thanks!
-Dave

Re: RSS Feed Error - Theme related?

Posted: Sun Nov 25, 2007 5:45 pm
by garvinhicking
Hi!

This is one of the great problems with PHP. Your extra blank line can be anywhere.

Search through all PHP files you ever edited (especially language files or the temmplates config.inc.php). Make sure to delete the closing "?>" to prevent those errors. And make sure you never saved files with a UTF-8 BOM mark at the beginning.

Regards,
Garvin

Thanks!

Posted: Sun Nov 25, 2007 5:54 pm
by DaveH
Thanks for the prompt response! I'll check that out.

-Dave

Posted: Sun Mar 09, 2008 9:35 pm
by twe
I have the same problem with my RSS feeds. The only file I have changed is the template's index.tpl. Can't find anything regarding php / the extra line in there... any other ideas what might cause this?

The only feed that is working is the comments feed (with the other feeds I get the same message as the thread starter).

EDIT: Doesn't seem to be the index.tpl file. If I switch back to the default template, I get the same error. I didn't change any of the other files (except for the configuration file, of course).

Strangely enough this feed does work:

http://www.udis.de/blog/feeds/atom.xml

The one that is available as a feed has the url:

http://www.udis.de/blog/feeds/atom10.xml

and this one does not work. Any idea what might be the cause? Sorry for posting in this old thread, thought it might be related at first.

Posted: Mon Mar 10, 2008 9:36 am
by garvinhicking
Hi!

What exactly does not work? Both URLs you posted work fine here!?

Regards,
Garvin

Posted: Mon Mar 10, 2008 9:44 am
by twe
Uhhm, that's strange. They work now for me as well. Yesterday I had the same error as the thread starter... :shock: