WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] XML Parse error in RSS feed (6 posts)

  1. sleeplessinDC
    Member
    Posted 2 years ago #

    When I click on the RSS feed link, I get the following error:

    XML Parsing Error: XML or text declaration not at start of entity
    Location: http://www.stcwdc.org/wdcblog/feed/
    Line Number 2, Column 1:<?xml version="1.0" encoding="UTF-8"?>
    ^
    Why is a blank line being added to the top of the file? This used to work OK but I haven't looked at it for a while so I don't know when it started.

  2. sleeplessinDC
    Member
    Posted 2 years ago #

    I am now going through each PHP file in plugins that were recently updated and deleting any carriage returns that end the PHP pages. But will this help?

  3. Samuel B
    moderator
    Posted 2 years ago #

  4. esmi
    Forum Moderator
    Posted 2 years ago #

    No - you need to look for leading blank lines in your theme files & your plugins. Or try:

    - deactivating all plugins to see if this resolves the problem. If this works, re-activate the plugins one by one until you find the problematic plugin(s).

    - switching to the Twenty Eleven theme to rule out any theme-specific problems.

  5. sleeplessinDC
    Member
    Posted 2 years ago #

    Thanks for the information. It will be interesting to see which plugin is causing the problem so I can let them know about the problem page.

  6. sleeplessinDC
    Member
    Posted 2 years ago #

    I used the Fix RSS Feed plugin. At first it didn't work and the error message changed from Line 2 to Line 4. Then I realized that WP Super Cache was probably the reason. I cleared the cache and the RSS feed page worked again. I still don't know which plugin had the problem that caused the blank lines but it was taking too much time to look in each file. The automated fix is much faster!

Topic Closed

This topic has been closed to new replies.

About this Topic