(Solved)XML parsing error in WordPress,feedburner feed

by kishore on November 7, 2009 · 7 comments

in Wordpress


Hi friends.

Nearley from 20 days i.e,from i upgraded to latest WordPress version my feed is unavailable because of the error

XML Parsing Error: syntax error
Location: http://www.devilsduke.com/feed/
Line Number 5, Column 2: Devils Duke . com
——–^

Basically this problem is because of the white blank spaces before <? and after ?> tags in php files.

Immediately i went to wordpress.org forum and i posted my problem there.I got some good support in that majority of people suggest me to use the plugin Fix-RSS-Feedfeed

I used that plugin and i fixed all errors that the plugin shows using a single click.But still my feed showing errors.But that error is not same as above.It is in I row, II column.But the problem is same.Again i went to wordpress.org forums and i started searching.I really searched so many posts.Finally i got the solution in those forums.Here it is..

First you open your  feed-rss2.php stored in your wp-includes/feed-rss2.php and search for the following code

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

and add the following code immediately after the above code

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

Now open up your feed-rss2-comments.php, feed-rss.php, feed-rdf.php, feed-atom.php, feed-atom-comments.php and do the same as above.Now save them and replace the existing files with these modified one’s.Now you can see your working feed.

See the working  feed of DevilsDuke.com.

You can also get full suppor here

http://www.w3it.org/blog/wordpress-feed-error-output-solution-how-to/

Please share your solutions also.Because that may helps some people.

Incoming search terms:

Related posts:

  1. A Serious problem in WordPress:Categories and tags are disappeared !!!
  2. WordPress Foundation launched today
  3. WordPress 2.9 released
  4. WordPress 3.0 Hits One Million Downloads In A Week
  5. 5 Best Free WordPress Themes of April 2010

Enter your e-Mail address to get Latest Technology Updates for FREE!!
You can also follow us on Twitter and Facebook for Latest Tech News.

Post comment as twitter logo facebook logo
Sort: Newest | Oldest

Hi I was wondering if you could help. Recently Feedburner stopped updating my feeds and the error message is that "error on line 156 at column 1: Extra content at the end of the document". I don't know what to do! http://limecake.net/feed/ or http://feeds.feedburner.com/LimeCake

I tried all the above options... Plugin, custome code to remove blank lines and pluging deactiations etc.. But finally the article at globinch helped me. I searched for all my recently changed files and removed spaces as mentioned there..
http://www.globinch.com/2010/09/15/wordpress-rss-feed-xml-parsing-error/

This does not work, at all. :|

Could you pls help me in this i am still getting this error , when will you come online tom , reply soon :( :( :(

Hi sunny.I saw your feed.Once mail me your feed-rss2.php.Or just goto www.web.devilsduke.com and make a new thread in wordpress section and put your code there.I will try to help you.But,before doing this..please visit the links
http://wordpress.org/support/topic/326099?replies...
Even then you don't get the solution , then open a new thread at out forum.:)

Hi Kishore
I followed the instructions given by you but still i am not able to access my feeds
Pls help me :(

Trackbacks

  1. [...] This post was Twitted by kishoremvr [...]

Previous post:

Next post: