Weird RSS Feed error on WordPress
By Ikki on Mar 10, 2008 in Web Development
Hey all!
Today I spent a few hours googling about this weird error I kept getting with the WP RSS Feeds links:
Invalid xml declaration.
Line: 5 Character: 3< ?xml version=”1.0″ encoding=”UTF-8″?>
This feed contains code errors.
I found a lot of people complaining about this and a few workarounds to fix the problem but none of them seemed to be effective. Also, the feeds worked fine on the default theme so the problem affected custom themes only. It turned out that somehow the functions.php of my theme had an extra newline at the end of it and somehow that was affecting the feed (I don’t know why but it did). The fix? Just lose that extra line at the end of your theme’s functions.php script and voilá!
If you encounter a similar problem with your WP feed you might want to check your functions.php file first
Hope that helps!
Oh, and if you found my entry helpful please don’t forget to Digg it!



1 Trackback(s)
Post a Comment