RSS Feed Error - Theme related?

Skinning and designing Serendipity (CSS, HTML, Smarty)
Post Reply
DaveH
Posts: 4
Joined: Fri Sep 10, 2004 11:33 pm

RSS Feed Error - Theme related?

Post 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
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: RSS Feed Error - Theme related?

Post 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
# 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/
DaveH
Posts: 4
Joined: Fri Sep 10, 2004 11:33 pm

Thanks!

Post by DaveH »

Thanks for the prompt response! I'll check that out.

-Dave
twe
Posts: 4
Joined: Tue Feb 12, 2008 10:12 am

Post 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.
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

Hi!

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

Regards,
Garvin
# 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/
twe
Posts: 4
Joined: Tue Feb 12, 2008 10:12 am

Post by twe »

Uhhm, that's strange. They work now for me as well. Yesterday I had the same error as the thread starter... :shock:
Post Reply