Posts Tagged ‘manual fix rss feed’

Manually fix rss feed problem

March 4th, 2010

Did your problem like this :

XML Parsing Error: XML or text declaration not at start of entity
Location: http://flyaga.info/feed/
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);
ob_end_clean();
  • 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


Orlando SEO by Pixelchefs.com