Message
Blank line before XML declaration (WordPress)
Explanation
If an XML declaration (<?xml ... ?>) appears in your feed,
it must be the first thing in the feed, before any whitespace.
Unfortunately, with WordPress it seems all too easy for a plugin, a theme, or for your configuration file to contain a blank line. Further compounding this problem, some — but not all — feed readers compensate for this common error, allowing the error to go undetected for quite a while.
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.
Not clear? Disagree?
Let us know on the feedvalidator-users discussion list!
