Support » Fixing WordPress » wp rss feed broken

  • Resolved richiedude

    (@richiedude)


    all of a sudden wordpess is beraking the rss feed.

    when run in feed validator, i get:

    XML parsing error: <unknown>:3:0: xml declaration not at start of external entity

    when looking at source code for rss there are 2 blabk lines being added to the start of the rss coded, thus breaking validation and breaking my rss feed.

    i tried overwriting wp files again, no luck.

    i have another wp site w/same plugins, that feed validates/works just fine.

    what the heck is going on?

Viewing 13 replies - 1 through 13 (of 13 total)
  • Unless you provide a link to a page demonstrating the problem, no one will be able to offer much in the way of assistance.

    Thread Starter richiedude

    (@richiedude)

    OK, update:

    searching around i see it is potentially theme problem, i went back to an old theme, and the rss feed works.

    I also read it is most likely in the header. I tried substituting in the header from an old theme that works, w/the new theme that doesn’t & that didn’t fix the problem, did all kinds of header editing/cutting things out and am at a loss to why two extra lines are being added to the rss feed.

    here is the page for inspection, as you most correctly suggested for further assistance:

    http://www.undergroundvideotelevision.com/

    Your feed file has a number leading blank lines that are invalidating the feed. Try removing any leading blank lines from your theme’s template files.

    Thread Starter richiedude

    (@richiedude)

    I know, i can’t find where that is happening. Would it be most likely the header? or could somewhere else do it as well?

    The header.php file is the most likely culprit.

    Thread Starter richiedude

    (@richiedude)

    i tried deleting everything in the header, and replacing the header w/one from a prior, working theme, but still, no luck.

    Then you’ll need to start looking through other files. But first, have you tried:

    – 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 richiedude

    (@richiedude)

    switched to prior theme w/all plugins enabled, works

    switched to twenty eleven theme w/all plugins enabled, works

    that tells me it is theme specific.

    tried using old header, edited/stripped down header w/practically nothing there, and twenty-eleven header, all of which did not work (rss still broken)

    so does that tells me it isn’t in the header file?
    where to look next?

    Try looking in functions.php next.

    Thread Starter richiedude

    (@richiedude)

    functions.php does nothing but register sidebar, i tried deleting it, still have problem so it isn’t w/that.

    next up?

    I think you’re just going to have to check every theme file for leading blank lines. 🙁

    Thread Starter richiedude

    (@richiedude)

    going back to an old theme i based changes on that worked, then replacing files one by one, until it broke, looks like the css/style file broke it.

    now i need to look thru for which thing/div is adding extra lines!

    Thread Starter richiedude

    (@richiedude)

    *SOLVED*

    after much experimentation of adding/replacing things w/old theme i changed the actual culprit was functions.php

    I don’t use it, there was code in there ‘registering’ dynamic sidebar which is probably old ode w/old theme broken w/new wordpress.

    simply deleting that file fixed rss feed to not insert 2 lines at top

Viewing 13 replies - 1 through 13 (of 13 total)
  • The topic ‘wp rss feed broken’ is closed to new replies.