Manually fix rss feed problem

March 4th, 2010 by walasa Leave a reply »

Did your problem like this :

XML Parsing Error: XML or text declaration not at start of entity
Line Number 2, Column 1: <?xml version=”1.0″ encoding=”UTF-8″?>

I prefer use the plugin so I had use fix rss feed plugin to fix that but no change at all, it still said XML parsing error and I’m frustrated for a while but maybe you should use this manual way to get rid of it

🙂 I got it from wp support forum, let’s see…

to the point

  • Open the file “feed-rss2.php” in wp-includes folder. Find the following code
header(‘Content-Type: text/xml; charset=’ . get_option(‘blog_charset’), true);
$more = 1;
  • Enter the following code under the code above, directly below it with no space
$out = ob_get_contents();
$out = str_replace(array(“n”, “r”, “t”, ” “), “”, $input);
  • Do the same thing with feed file-RSS2-comments.php; feed-rss.php; feed-rdf.php; feed-atom.php; feed-atom-comments.php, input the code above under the code on the first

I hope your feed health again, because I prove it and get my rss  feed back to normal… see you smile

copied from my blog at walasa . com



  1. Thomas says:

    Génial! après de nombreuses autres solutions infructueuses, celle-ci marche ! Tu m’as sauvé la vie 😀

  2. Dick says:

    Walasa — Great!
    This worked for me and also meant I didn’t need to run the recommended ‘fixit’ plugin that potentially modifies tens of files on your site. That sounded risky and some commented that after running it their site experienced problems.
    Using your fix, my feed is working again!

  3. Gunter says:

    Thanks – you just saved my life with this. Have WP install that works perfectly on windows based install after this little tweak.


  4. BGeo says:

    I tried many options prior to find your amazing plugin… Unfortunately I found your plugin only after the article at globinch. I tried this artickle and my blog was erased (stop showing the text). Thank you, your plugin return it to normal state.
    I want to warn all people, don’t try the artickle at globinch! It will kill your blog!

  5. adibowo says:

    keren caranya 😀

  6. Best web hosting cnet says:

    Thanks –This worked for me as well..thank you very much…

Leave a Reply

You must be logged in to post a comment.

Orlando SEO by