WordPress.org

Ready to get started?Download WordPress

Forums

RSS Doesn't Work - XML Parsing Error (63 posts)

  1. fourdoorchev
    Member
    Posted 5 years ago #

    well , i since left my free host and reinstalled

    before i was manually installing wp using a ftp

    this time i used automatic install and with new host my feed now works. now just to build my site again , luckily i wasnt to far in before . not sure what peeps should do that had established sites

    im glad i caught it early

  2. OMA2k
    Member
    Posted 5 years ago #

    I have a simple FIX for this.

    Edit feed-rss2.php (inside "wp-includes") and add the following above the first "echo" line:

    ob_clean();

    This clears the buffer so all blank spaces above the first line of the XML are gone. This worked for me.

    I hope this is of help.

    Bye!

    OMA2k

  3. lifestyler
    Member
    Posted 5 years ago #

    ok figured it out. In my customized Theme the functions.php had a space somewhere beteen some php lines:

    <?php ... code .... ?>
    [space]
    <?php ... code .... ?>

    What the rss does is take the functions.php and output it into the rss feed if there is anything to output. Normally you dont output anything from functions.php, but if the WP core files don't strip whitespaces this could be the results...

Topic Closed

This topic has been closed to new replies.

About this Topic