• Resolved sleeplessindc

    (@sleeplessindc)


    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: https://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.

Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter sleeplessindc

    (@sleeplessindc)

    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?

    Samuel B

    (@samboll)

    esmi

    (@esmi)

    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.

    Thread Starter sleeplessindc

    (@sleeplessindc)

    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.

    Thread Starter sleeplessindc

    (@sleeplessindc)

    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!

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘XML Parse error in RSS feed’ is closed to new replies.