(Solved)XML parsing error in Wordpress,feedburner feed

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.

Tags:

Line Break

Author: Kishore Mylavarapu (163 Articles)

Hello I am Sai kishore Mylavarapu pursuing B.Tech in the branch of computer science & engineering in Godavari institute of engineering & Technology located at Rajahmundry, Andhra Pradesh state, INDIA. Basically I am interested in blogging so, here i will share all my interests and experiences with you.

This website uses IntenseDebate comments, but they are not currently loaded because either your browser doesn't support JavaScript, or they didn't load fast enough.

4 Responses to “(Solved)XML parsing error in Wordpress,feedburner feed”

  1. Sunny Bhasin says:

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

  2. Hi sunny.I saw your feed.Once mail me your feed-rss2.php.Or just goto http://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.:)

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

  4. Sunny Bhasin says:

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

Leave a Reply