Blank or error in RSS feed in WordPress 3.0 Solution

Thursday, May 17, 2012, 1:43 Tech Tutorials

Blank or error in RSS feed in WordPress 3.0 Solution

Upgrading or installing WordPress 3.0 in your webhost sometimes leads to error,  sometimes having a hard time logging in to your account or one of the usual errors designers encountered who are using wordpress, do encounter errors in RSS feed, its either a blank space or the error code that shows below.

<?xml version=”1.0″ encoding=”UTF-8″?>
^







Try to check in the RSS feed validator , an online handy tool that check your RSS feed for errors.

RSS FEED Validator http://validator.w3.org/feed/

It’s a whitespace in wordpress RSS file usually located in the wp-includes directory, the error file is in the feed-rss2.php file to be able to fix this you have to add the following code before the

header(‘Content-Type: ‘ . feed_content_type(‘rss-http’) . ‘; charset=’ . get_option(‘blog_charset’), true);

$more = 1;

Put below the pieces of codes

$out = ob_get_contents();
$out = str_replace(array(“n”, “r”, “t”, ” “), “”, $input);
ob_end_clean();

If the errors persist in your RSS feed or you don’t want to work with hand coding, you can use a very handy plug-in for fixing your RSS feed. The plugin is

Fix Rss Feeds

Description: fix wordpress rss feed error “Error on line 2: The processing instruction target matching “[xX][mM][lL]” is not allowed.” while you burn wordpress rss feed from http://www.feedburner.com, also fix error “XML or text declaration not at start of entity” in firefox, and fix error “XML declaration not at beginning of document” in opera.

Site: http://www.gofunnow.com/wordpress/plugins/fix-rss-feed-error-wordpress-plugins.htm

If you  know some other ways in fixing these errors please leave a comment to help others who are also having a hard time fixing the error in their RSS feed.

(Note: if your are suing the w3 total cache please disable it first)

Related Topics:

    None Found

Please Like Us on Facebook to get the latest updates on info tech and world news!
Custom Search
  • Josh Mike

    great tutorial thanks for this I’m having a problem also with my rss feeds now its ok

  • http://www.yahoo.com Malube

    Is the fix rss feed compatible with the latest version of wordpress?

  • http://kuyajo.wordpress.com/2011/02/18/how-to-fixed-blank-or-error-in-rss-feed-in-wordpress-3-0/ How to Fixed Blank or error in RSS feed in WordPress 3.0 « Kuyajo's Blog

    [...] FEED Validator http://validator.w3.org/feed/ Read more: Blank or error in RSS feed in WordPress 3.0 LikeBe the first to like this [...]

  • http://infotechgarage.com Teach

    Yes it works great…its easy to used too

Latest Articles

`

Battle of Smartwatches Who will Reign Supreme?

Wednesday, July 2, 2014 5:48

Tuesday, July 22, 2014   Copyright ©2010 infotechgarage.com. All rights reserved. Akeanon gid ra