Use fix Rss feeds plugin to repair wordpress feed display Error _php instance

Source: Internet
Author: User
Tags processing instruction

Today, a netizen left a message saying that the feed of the blog has been hung, the symptoms are as follows:

The Chrome Direct Open subscription page appears as follows:

This page contains the following errors:

error on line 1 at column 1:document are empty

Below is a rendering of th E page up to the.

FeedDemon Hint: This feed contains errors.

After the addition also has no effect, can be used normally.

The fruit reader can also be read, but the latest articles are not available.

With IE try, show "There is invalid content at the top level of the document." ”

View the source code found that you can see the content of the HTML format parsing, which shows that the feed output of WordPress is no problem, the problem is the format of a file. But it's more difficult to find out which file is the problem. The solutions given on the web are roughly the same:

Check for extra carriage return, newline symbol on or off

1, the detection of wp-config.php files, to see the PHP outside the main code has no carriage return characters;

2, ditto, detect wp-rss2.php,wp-atom.php documents, if not recently modified, can skip;

3, ditto, testing functions.php documents;

4, note that the feed is cached, after the modification is completed, send an article, so that WP program to rebuild the feed, so as to see the effect;

5, if still wrong, you can try to temporarily shut down all plug-ins, replacement theme, such as one by one exclude.

All the above documents have been modified, there is no clue. So I installed a plugin "fix Rss Feeds", and then fix it after the activation. And after the repair to delete the plugin will not rebound ~

Research the next plug-in, it seems to just modify the WordPress root directory under the wp-blog-header.php, in fact, simply change this file to:

 * Loads the WordPress environment and template.
 * @package WordPress

if (!isset ($wp _did_header)) {
 $wp _did_header = true;
  Ob_start (); 2010-09-18 added, it'll Fix RSS feed error "Error on line 2:the processing instruction target matching" [XX] [MM] [LL] ' is not allowed. ' While burn feeds from
 require_once (dirname (__file__). '/wp-load.php ');
  Ob_end_clean (); 2010-09-18 added, it'll Fix RSS feed error "Error on line 2:the processing instruction target matching" [XX] [MM] [LL] ' is not allowed. ' While burn feeds from
 wp ();
 Require_once (Abspath. Wpinc. '/template-loader.php ');

It's OK.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.