This article mainly introduces how to use the FixRssFeeds plug-in to fix WordPress Feed display errors. If you need a friend, you can refer to the following message:
Chrome directly opens the subscription page and displays the following:
This page contains the following errors:error on line 1 at column 1: Document is emptyBelow is a rendering of the page up to the first error.
FeedDemon prompt: This Feed contains an error.
It does not have any impact after being added, and can be used properly.
Fresh fruit reader can also read, but has not obtained the latest article.
I tried it with IE and displayed "invalid content exists at the top level of the document ."
You can view the source code to see the parsed content in the HTML format. This shows that the WordPress Feed output is correct. The problem lies in the format of a file. However, it is difficult to find out which file has a problem. The solutions provided on the Internet are roughly as follows:
Checks whether there are excessive carriage return and line feed characters at the top and bottom.
1. Check the wp-config.php file and check whether the Code except the PHP subject has a carriage return character;
2, the same as above, detection of wp-rss2.php, wp-atom.php files, if not recently modified, can be skipped;
3. Check the functions. php file;
4. Note that the feed is cached. After the modification is complete, send an article to re-create the feed for the WP program to view the effect;
5. If there are still errors, You can temporarily disable all plug-ins, change themes, and eliminate them one by one.
I have modified all the above files, but I still have no clue .. So I installed a plug-in "Fix Rss Feeds" and fixed it after it was enabled. After the fix, deleting the plug-in will not rebound ~
After studying this plug-in, it seems that only the wp-blog-header.php under the WordPress root directory is modified, in fact, you only need to change this file:
<?php/** * Loads the WordPress environment and template. * * @package WordPress */if ( !isset($wp_did_header) ) { $wp_did_header = true; ob_start(); //2010-09-18 gofunnow.com added, it will Fix rss feed error "Error on line 2: The processing instruction target matching "[xX][mM][lL]" is not allowed." while burn feed from feedburner.com require_once( dirname(__FILE__) . '/wp-load.php' ); ob_end_clean(); //2010-09-18 gofunnow.com added, it will Fix rss feed error "Error on line 2: The processing instruction target matching "[xX][mM][lL]" is not allowed." while burn feed from feedburner.com wp(); require_once( ABSPATH . WPINC . '/template-loader.php' );}?>
You can.