Wordpress

(Solved)XML parsing error in Wordpress,feedburner feed

Line Break

Author: Kishore Mylavarapu (123 Articles)

I am studying B.Tech in a Godavari Institute of Engg & Tech located at Rajahmundry,Andhra Pradesh,INDIA. I am basically interested in blogging.Here i will share all my feelings and experience with you.

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.

Enter your email address:

Delivered by FeedBurner


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 Comments

  • On 12.04.09 Sunny Bhasin said:

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

  • On 12.05.09 Kishore Mylavarapu said:

    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.:)

  • On 12.05.09 Twitted by kishoremvr said:

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

  • On 12.07.09 Sunny Bhasin said:

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

speak up

Add your comment below, or trackback from your own site.

Subscribe to these comments.

Be nice. Keep it clean. Stay on topic. No spam.

You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

*Required Fields

Get Adobe Flash playerPlugin by wpburn.com wordpress themes