Today suddenly a netizen message said blog feed hung, the symptoms are as follows:
Chrome opens the subscription page directly as shown below:
This page contains the following errors:error on line 1 at column 1:document are Emptybelow is a rendering of the page up to the first error.
FeedDemon Tip: This feed contains errors.
After the addition also has no influence, can use normally.
The fruit reader is also readable, but does not have access to the latest articles.
Tested with IE, shows "invalid content at the top of the document." ”
View Source code discovery is able to see the HTML format parsed content, this shows that WordPress feed output is not a problem, the problem is the format of a file. But it's more difficult to find out which file is the problem. The solutions offered on the web are generally the same:
Detects if there are excess carriage returns, newline symbols on or off
1, Detect wp-config.php file, check the code outside the main body of PHP has no carriage return;
2, ibid, testing wp-rss2.php,wp-atom.php documents, if not recently modified, can be skipped;
3, ibid, detection functions.php documents;
4, note that the feed is cached, after the completion of the modification, send an article, so that WP program to reconstruct the feed, so as to see the effect;
5, if still wrong, you can try to temporarily close all plug-ins, change the theme, and so on one by one.
The above documents have been modified all over again, there is no clue. So installed a plug-in "Fix Rss Feeds", enabled after the repair is done. And after the repair to delete the plugin will not rebound ~
Research the next plug-in, it seems that just modified the WordPress root directory of wp-blog-header.php, in fact, only need to change this file:
<?php/** * Loads the WordPress environment and template. * * @package WordPress */if (!isset ($wp _did_header)) {$wp _did_header = true; require_once (dirname (__file__). '/wp-load.php '); require_once (abspath. Wpinc. '/template-loader.php ');}? >
You can do it.
The above describes the use of fix Rss feeds plugin to fix wordpress feed display errors, including the require aspects of the content, I hope that the PHP tutorial interested in a friend helpful.