WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] RSS Feed isn't working - XML Parsing Error (14 posts)

  1. jimmiejo
    Member
    Posted 6 years ago #

    I launched a new site moments ago into beta, and am trying to troubleshoot as much as possible ASAP.

    For some reason, none of the rss feeds are working. I really need to fix these.

    Here are a couple example links:

    http://www.theadfeed.com/creative/?feed=rss2
    http://www.theadfeed.com/blog/?feed=rss2
    etc...

    And all of them return:

    XML Parsing Error: XML or text declaration not at start of entity
    Location: http://www.theadfeed.com/creative/?feed=rss2
    Line Number 1, Column 2: <?xml version="1.0" encoding="UTF-8"?>
    -^

    I'd more than appreciate some tips to fix this and quickly dig myself out of a hole :)

  2. Samuel Wood (Otto)
    Tech Ninja
    Posted 6 years ago #

    You have the blank line problem.

    http://feedvalidator.org/docs/error/WPBlankLine.html

  3. jimmiejo
    Member
    Posted 6 years ago #

    Thanks a ton, Otto. One extra space after ?> in my functions.php was causing the problem.

    More than thankful for your quick response :)

  4. electromute
    Member
    Posted 5 years ago #

    Thanks, this post was really helpful. I had the same problem when I upgraded to WordPress 2.6.2 even though the template files I was using had never caused this problem before. Once I removed extra lines and spaces after the PHP closing tag ?> everything worked fine again.

  5. Pavel Valencis
    Member
    Posted 5 years ago #

    In first time, sorry for my bad english...

    I have a account in Yahoo Webhosting... upgrade to initial WP 2.3.3 to WP 2.6.2. Use a WordPress Automatic Update plugin. Next use a fantastic theme called AGREGADO. Modify default ugly permalinks to better option (year, months, post) and activate Yahoo Customizable Permalinks plugin. In the test all work fine...but (ever had a but) rss feed show XML parser error (this show only in FF3, in IE7 only the tab show error).
    Read this theme in:
    http://feedvalidator.org/docs/error/WPBlankLine.html
    Next check the next archives:
    1. wp-config.php
    2. wp-settings.php
    3. wp-rss.php
    4. wp-rss2.php
    5. wp-feed.php
    6. wp-atom.php
    7. functions.php (in the theme in use)
    In this archives fix the issues.

    On the brink of madness...:-) check the Yahoo Customizable Permalinks plugin, and discover a blank space after ?>. This file no have assigned rewrite permission...and FTP tools no have utility. Need login in administrative Yahoo interface, next in File Manager, search the file under plugin folder and delete the extra space after ?>...next VOILA...the RSS Feed work fine.

    This mode, active nice permalinks and have feed rss OK.

    I hope that this experience is very useful.

  6. flyaga
    Member
    Posted 5 years ago #

    Please try this plugin fix-rss-feed, it will fix your rss error automatically, and you can get more information from http://wordpress.org/extend/plugins/fix-rss-feed/, and you also can get help from the author website http://www.flyaga.info/en/wordpress/plugins/fix-rss-feed-error-wordpress-plugins.htm

  7. jim.hitch
    Member
    Posted 5 years ago #

    Thanks for this post, it worked a treat using the advice of

    http://feedvalidator.org/docs/error/WPBlankLine.html

    'deactivate the plugins one by one'

    This didn't work at all for me though

    http://wordpress.org/extend/plugins/fix-rss-feed/

  8. Harsh Agrawal
    Member
    Posted 5 years ago #

    http://wordpress.org/extend/plugins/fix-rss-feed/

    This din even worked for me :(

  9. Harsh Agrawal
    Member
    Posted 5 years ago #

    Can anyone explain these lines??

    PHP also uses a similar notation: <?php ... ?>. Note that the final php ?> should be omitted from all PHP code files—modules, includes, etc. The closing delimiter is optional in PHP (but not in XML), and removing it helps prevent unwanted white space at the end of files which can cause problems with your feeds.

  10. jldesign
    Member
    Posted 5 years ago #

    I use Yahoo Hosting and downloaded the plugin fix-rss-feed

    http://wordpress.org/extend/plugins/fix-rss-feed/

    It works, just doesn't work on Yahoo plugins.

    Thanks for the post and all the help!

  11. Sridhar Katakam
    Member
    Posted 5 years ago #

  12. donnie1967
    Member
    Posted 5 years ago #

    http://wordpress.org/extend/plugins/fix-rss-feed/
    It worked great for me, I made a donation too, thank you very much for the plug in!

  13. Justin Mason
    Member
    Posted 5 years ago #

    Just installed the fix-rss-feed plugin but unfortunately my rss feed is still broken. Cleared the cached files and opened up the functions.php but I didn't see any white spaces.

    Error message as follows:

    XML Parsing Error: XML or text declaration not at start of entity
    Location: http://www.propaintball.com/feed/rss/
    Line Number 2, Column 1:<?xml version="1.0" encoding="UTF-8"?><!-- generator="WordPress/2.8.2" -->
    ^

    It broke after I installed wp 2.8 so I am thinking it may be a plugin. Any ideas?

  14. atomworks
    Member
    Posted 5 years ago #

    @Justin

    I had this same problem and it turned out to be something to do with the update itself, did an update today and its working perfectly now. None of the other fixes touched it, so I guess it was down to WordPress making a mistake!

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags