Fix wordpress feed display error with fix RSS feeds plugin

Source: Internet
Author: User
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.

  • Related Article

    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: info-contact@alibabacloud.com 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.