Weird RSS Feed error on WordPress
Posted on March 10, 2008, under 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? (more…)


