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)
Mother’s Day Gift Promo Sale 2013 Well Mothers days is just a few days away do you have any surprise gift for your mother? Do you have any gift that will make her special in mothers day? Well if you still don’t have any idea in your mind to make her ...
Secure Shopping Online with Paypal Sign up Don’t let your credit card be exposed, used Paypal to shop online, it is much more secure than by using your credit card, now considered as the holy grail of online payment, accepted by major shopping sites, like Ebay. Shop and receive payments online ...