Broken Feeds Since WP upgrade to 3.5.1 (5 posts)

  1. SubLo
    Posted 2 years ago #

    Hi there. I reluctantly upgraded WP to 3.5.1 a few days ago and my feed has been broken ever since.


    Both RSS and Atom are affected. I ran the w3 checker and it denotes:

    This feed does not validate.
    line 1, column 0: XML parsing error: <unknown>:1:0: no element found

    I did do my research before posting. I checked the usual suspects like blank lines/spaces in wp-config.php and my theme's (NomNom) functions.php. Nothing abnormal there.

    Any advice would be greatly appreciated.



  2. Andrew
    Forum moderator
    Posted 2 years ago #

    Have you tried deactivating plugins to explore whether any could be responsible?

  3. SubLo
    Posted 2 years ago #

    I had some problems with w3 total cache right after the upgrade. It took down my entire site and Dashboard. I had to SSH in and manually deactivate it to bring the site back up, which - obviously - fixed that specific issue.

    I have two dozen or so plugins. You're saying try deactivating them one by one?

  4. SubLo
    Posted 2 years ago #

    OK. After a ton of hairpulling, I think I figured it out. I went through each and every plugin, deactivated, and tested the feed. When deactivating "Advanced Permalinks," the feed came back to life.

    Now my question is, I migrated from plain URLs to fancy permalinks over a year ago. I had used this plugin to assist in 301 redirection without losing the previous indexing.

    Do you think I still need this plugin at this point?

  5. ePhil
    Posted 2 years ago #

    Hey guys I have an answer: when writing headers in wp-includes/feed-rss2.php, WordPress adds automatically 5 lines before the XML begins, producing a non-standard feed.
    Just modify this line to make it work fine:

    header('Content-Type: ' . feed_content_type('rss-http') . '; charset=' . get_option('blog_charset'), true);


    if it doesn't work, try commenting the line.

Topic Closed

This topic has been closed to new replies.

About this Topic