RSS Feed error in Wordpress, how to fix it?

 Filed As:Tips, Wordpress
 ADVERTISEMENTS

 

RSS Feed of ‘Techno Life @ tothepc’  had gone for a toss. The default RSS Feed URL http://www.tothepc.com/feed/ was showing no feed items but a strange error. Even though Wordpress is not a new thing for me but this error for sure was. Here is the error:

XML parsing failed: syntax error (Line: 1, Character: 1) Reparse document as HTML ErrorML declaration not at beginning of document Specification:http://www.w3.org/TR/REC-xml/ 1: 2:

Most likely reason for this error is some white space in any of the core Wordpress file. In my case, it was wp-config.php file. Few days back this file was edited for some change and accidentally a white space was left in the end. To fix this, opened the file in edit mode, hit the backspace key to remove white space, cleared cache and feed started working fine.

Instead of looking for which file is causing this error, you can get started by updating and overwriting wordpress files. Since, wp-config.php is never overwritten during such procedure helped in isolating cause of the issue. As pointed by Rauru blank / white space in functions.php file can also cause this issue. To summarize, check wp-config, wp-functions files – otherwise overwrite wordpress files.



By Davinder on Saturday, January 10th, 2009

Share & Spread: Digg | Delicious | Share |
Loading



▼ Comments

6 Responses to “RSS Feed error in Wordpress, how to fix it?”
  1. Vladimir Hristov says:

    I am having a problem with my feed at
    blogzter.com/feed/

    for some reason it went missing. I have no plugins and nothing that can affect it. I checked the wp-load and wp-feed files and they seem fine…

    If you have any ideas please do share them as I feel stuck right now

  2. George Serradinho says:

    Thanks for this info, my feed was not working and a friend refered me to your site.

    • Debjit Saha says:

      I am currently facing a strance feed problem on one of my blogs that is powered by wordpress.

      The bottom line of all this is: We should keep on checking our blog feed daily in order to save the blog from losing potential feed subscribers!

  3. Harsh Agrawal says:

    Thanks man ..I hope this will resolve the issue…

  4. Dadony says:

    I’m looking for this solutin, and now it’s working. thanx for this information.

  5. Mihael says:

    I had the same problem… and the fix was also deleteing whitespaces after ?> but in wp-content/my_theme/function.php.

    thanks for the clue ;)

▼ Add a Comment

Have your say, add a comment using following comment form. If you want an image to show with your comment, go get a gravatar!