Plug-in fix-rss-feed

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 (usuallysufferwp-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 fileextra 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 operationFix 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.

6 comments

  1. matt w says:

    Hi. I’ve ran your plugin through my website and it doesn’t seem to fix anything. I manually set all permissions so that it could fix them, then set them back. It cleaned all the reported errors, but my feed is still showing the same error when accessing it from the browser.

    Any idea what could it be?

  2. admin says:

    Please ensure that your feed content is not cached. It is possible that you see cached errors. In case of any questions regardless the plug-in, you can contact directly to author: flyaga@163.com

  3. Andrew S. says:

    Thank you for that great plug-in, it erased all errors in my RSS feeds. Suggesting you to make the option to list WP theme pages, CSS styles etc. with the same problem. This will speed-up the site loading

  4. Geoff Snyder says:

    I just want to make sure to stop by and say thank you for your plugin. Your plugin fixed my RSS feed problem. Although I only had a few small errorsthis tool fixed everything very quickly. Thank you again!

    Geoff

  5. warren says:

    Hi there,

    Looks helpful. Your plug-in finds hundreds of issues, mostly tail issues but I’m nervous to change so many files on a functioning site.

    The Feedburner form feed error says:
    The URL does not appear to reference a valid XML file. We encountered the following problem: Error on line 3: The processing instruction target matching “[xX][mM][lL]” is not allowed.

    I also see it in a validator [feedvalidator.org] :
    This feed does not validate.
    line 1, column 1: Blank line before XML declaration

    Since there’s only 1 error, I’m curious to figure out which specific files is the problem and what I can do to remedy it? I notice there does not exist a directory in the domain calledfeed”. Is that just an alias?

    Any help is much appreciated!

    -w

  6. willo says:

    What a lifesaverthat would have taken me hours. I donatedthank you!

Leave a Reply