Final Solution to Error Messages in Newly Wordpress Burned Feeds or Newly installed Blog. Blank line before XML declaration | XML Parsing Error: no element found | Error:XML declaration not at beginning of document | XML or text Declaration not at start of entity | Error on line 2: The processing instruction target matching “[xX] [mM] [lL]” is not allowed | Error on line 2 at column 6: XML declaration allowed only at the start of the document and Many More RSS FeedBurner Errors.,
One of the Most common problem faced by the new wordpress installation or up-gradation of the wordpress version is “Blank Line Before XML Declaration”, which is nothing but due to some of the plugin or theme installed, during the installation process some blank line are created at the start or end of the php plugin, theme or other files.
Most of the Users like I did, would go to Feed Validator to check the Feed is properly working or not, and if it is the Blank line Problem, then Feed Validator would give you the Messages Stating “Blank line before XML declaration (WordPress)“
Explanation Provided by Feed Validator :
“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 Provided by Feed Validator :
- PHP also uses a similar notation:
<?php ... ?>. Note that the final php?>should be omitted from all PHP code files—modules, includes, etc. The closing delimiter is optional in PHP (but not in XML), and removing it helps prevent unwanted white space at the end of files which can cause problems with your feeds. - 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.
But Mind it, it can take you up to 4 to 5 days Working 5 to 6 Hours to Find out where is the Blank line in the Wordpress installation, If you are luck you can get it in the first try itself.
Best Solution to Fix RSS Feed Burner Blank Line Error :
While searching for some plugin or software which would directly remove all the starting and end blank line in all the files installed in the wordpress, got this………
Fix-rss-feed Plugin :
Website: http://www.flyaga.info
- Upload to your plugins folder, usually wp-content/plugins/ and unzip the file, it will create a wp-content/plugins/fix-rss-feed/ directory.
- Activate the plugin on the plugin screen.
Usage steps:

- Into the background admin-> options -> fix rss feed
- Click on the “fix wordpress rss feed” button, it will check all folders (except wp-admin and wp-includes catalog)’s php file whether include head and tail blank lines, It would delete the blank lines (Do not worry, it will not delete central blank lines in files, delete only head and tail blank lines, so it will not affect your php program).
- After fix job completed, the result will be listed, if your document is readyonly, it prompted an error; after you change file permission to writable, please click the “fix wordpress rss feed “ button and try again.
- All fix are completed, you will find your wordpress rss feed no mistake,^_^
Uninstallation steps:
- Go into admin->plugins ,disable fix-rss-feed
Do not worry, this plug-php files to delete only the beginning and end of the blank lines, it will not delete files Central blank lines, and it will not affect your php process running, if you still do not trust, you can first do file back up, and then run this plug-in to fix feed error.
Enjoy the RSS FEED Without Any Error.,
You can follow me on Twitter at http://twitter.com/binterest.Do stay tuned to Binterest.com for more, Best Way 2 do it, Subscribe to Binterest's Feed Updates



Fix Wordpress Blank line Error For FeedBurner http://ow.ly/LZPP
Comment by Malvinder Virdi — December 15, 2009 @ 7:30 AM
[...] conducted by YouGov, 1 in 8 UK consumers have replaced their fixed-lines for mobile broadband. …Fix Wordpress Blank line Error For FeedBurnerFinal Solution to Error Messages in Newly Wordpress Burned Feeds or Newly installed Blog. Blank line [...]
Pingback by fixed lines - StartTags.com — January 29, 2010 @ 9:46 PM