Solution for WordPress Feed XML Parsing Error – XML or text declaration not at start of entity
My RSS feeds started to act weird this evening.
The FireFox browser gave this error when I tried to view the feed.
“XML Parsing Error: xml declaration not at start of external entity … Line Number 2, Column 1:<?xml version=”1.0″ encoding=”UTF-8″?>”
The problem was caused by one of my plugins that inserted a blank line at the top of the RSS feeds.
The solution is to find that offensive plugin and remove any leading or trailing lines before and after the <?php and ?> PHP code respectively.
Solution
- Check your
wp-rss2.phpandwp-atom.phpfiles for blank lines outside of<?and?>bracketed sections. - Check your
wp-config.phpfile for blank lines outside of<?and?>bracketed sections. - Check your theme’s
functions.phpfile for blank lines outside of<?and?>bracketed sections. - One by one, disable plugins and revalidate until you isolate the one causing the problem.
I hope this helps you if you’ve faced a similar problem.
© 2009, Microments. All rights reserved. On republishing this post you must provide link to original post.
- Fix Feedburner Error 502/503 After Moving Feeds From Feedburner to Google
- Fix WordPress Upgrade White Blank Page Problem
- Security Hole in MyBB 1.4.6 Forum Software – Many Forums Hacked and Deleted
- How Does Hacking Takes Place – How To Protect Our Servers
- To Do List to Increase wordpress blog loading speed – Remove Themes Tags













Comments
Encourage our posters by saying Thank You!