In the RSS-feed resources, built on the WordPress platform, you can often find the following error: «Error on line 2: The processing instruction target matching” [xX] [mM] [lL] “is not allowed.». RSS-aggregators most popular browsers interpret a similar message as follows: «XML or text declaration not at start of entity» (Firefox) or «XML declaration not at beginning of document» (Opera)
Problem lies in the blank lines before and after XML declaration, which lead to incorrect work of the RSS-feed WordPress site. Usually, extra blank lines appear as a result of errors in those files, plugins, configuration files (usually “suffer” wp-rss2.php, wp-atom.php, wp-config.php, functions.php). The problem is compounded by the fact that some (but not all) programs-aggregators can automatically ignore blank lines before and after the Declaration of XML while generating RSS-stream, so the error is indicated for a long time may remain unnoticed.
Plug-in fix-rss-feed is intended to finally and completely resolve the problem of blank lines and resume the normal work of RSS-feed on your site.
Download Fix RSS Feed WordPress Plugin
Version: 1.03 Release date: 2009-05-24
The principle of the plugin is to verify all the php-files in the root directory of WordPress for the presence of empty rows at the beginning or the end of a file – extra blank lines will be removed.
Please note that the algorithm provides a plugin to ignore blank lines, standing inside the container <? Xml … ?>, so you do not have to worry for the code integrity and correctness of the script.
The amendments are easily controlled using the results list that appears after the operation “Fix wordpress rss feed“: opposite the name of the file containing extra blank line will display the status of the job (Successful, fix [file name.php] – refers to the successful implementation). If changes can not be made due to the fact that the file access mode was set to Read Only, you will receive a message. In this case, you should set write permissions which removing the attribute read-only, and repeat the operation for the specified file.