Tech Dreams

Fixing WordPress RSS Issue “XML Parsing Error: XML or text declaration not at start of entity”

wordpress_logoToday we noticed that Tech Dreams RSS feed was not working and showing an error when tried to access it.

The error message is something to do with invalid XML format of the feed. The exact error displayed on the screen is

XML Parsing Error: XML or text declaration not at start of entity / Error on line 2: The processing instruction target matching" [xX] [mM] [IL] "is not allowed

Location: http://feedproxy.google.com/td

Line Number 2, Column 1:<?xml version="1.0" encoding="UTF-8"?>

Cause

After a bit of research on the net, I understood that reasons for the error are the blank spaces keyed into the php pages. The trailing and leading blank spaces in few php files of WordPress setup resulted due to editing of theme files is the main reason for this issue. 

Fixing The Issue

Looks like many people often face this issue and few good guys at http://www.flyaga.info created a WordPress plugin to fix this issue with a single click. Otherwise we may have to edit many php files to remove the blank spaces.

To fix the issue

  1. Install and activate the fix-rss-feed plug-in
  2. Go to Admin –> Setting -> Fix RSS Feed
  3. Click on the "Fix WordPress RSS Feed" button
  4. After the fix job is completed, your WordPress feed should be up and running

Happy Blogging!!

25 Comments on Fixing WordPress RSS Issue “XML Parsing Error: XML or text declaration not at start of entity”

  1. MuZZik12
    March 2, 2012 at 9:33 pm (7 years ago)

    thanks!

    Reply
  2. Kali
    October 19, 2011 at 12:49 pm (8 years ago)

    It is not working for me…

    Reply
  3. mayvelous
    January 5, 2011 at 5:58 am (9 years ago)

    Thanks so much! Plugin works like a charm.

    Reply
  4. 1WineDude
    August 14, 2010 at 7:59 am (9 years ago)

    Superb work! Thanks!

    Reply
  5. Aaron Curtis
    July 29, 2010 at 12:22 pm (9 years ago)

    UPDATE: Yes the plugin did the trick! Firefox didn’t update as usual so it was showing me the old error.

    I’l have to make a donation to the developers of the plugin, cause it did save me a ship load of time & stress’.

    Reply
  6. Aaron J Curtis
    July 28, 2010 at 4:00 pm (9 years ago)

    Used the plugin but still getting this damn error:

    XML Parsing Error: XML or text declaration not at start of entity
    Location: http://theinternetbuisnessman.com/feed/
    Line Number 2, Column 1:
    ^

    Reply
  7. LaTonya Malinconico
    July 25, 2010 at 9:49 pm (9 years ago)

    Thanks so much. I had my blog running and over night something happened. This fixed everything!

    Reply
  8. Rob Che
    July 18, 2010 at 4:14 pm (9 years ago)

    I can recommend Drew’s answer – use the validator and remove the space manually.

    The plugin did not work for me and looks quite intrusive.

    Cheers Drew!
    Rob

    Reply
  9. Toru
    May 28, 2010 at 8:42 pm (9 years ago)

    Thanks guys you save my life!
    I searched everywhere, but in my original language!

    Reply
  10. Govinda
    April 7, 2010 at 7:47 pm (9 years ago)

    Workzz fine….

    Reply
  11. drew
    April 7, 2010 at 7:51 pm (9 years ago)

    hey mark, i was able to fix my problem manually. go through the steps on this site:

    http://validator.w3.org/feed/docs/error/WPBlankLine.html

    use the validator on that site on your feed, and get rid of any blank lines and it should work.

    hope this helps you.

    Reply
  12. mark
    April 6, 2010 at 10:16 pm (9 years ago)

    My problem still persists as well. Any other ideas?

    Reply
  13. drew
    March 24, 2010 at 11:25 pm (9 years ago)

    this did not fix my problem. are there any other options?

    Reply
  14. Asif2BD
    March 2, 2010 at 9:47 pm (9 years ago)

    It does not work for me too. And the way this plugin work, its way too risky.

    Reply
  15. chipset
    February 11, 2010 at 11:18 am (10 years ago)

    thx for your share ..
    my problem fix now thx

    Reply
  16. Pramudita
    February 4, 2010 at 1:09 pm (10 years ago)

    Not solve my rss feed problem, still not working for me

    Reply
  17. Freddy
    January 12, 2010 at 8:36 am (10 years ago)

    Thanks! That plugin is a super time saver!

    Reply
  18. kyle
    January 3, 2010 at 9:19 am (10 years ago)

    still not working for me

    Reply
  19. Yücel
    December 29, 2009 at 3:09 am (10 years ago)

    Thank you! Great solution for me. I fixed my problem with your useful topic;)

    Reply
  20. jackson
    December 13, 2009 at 7:14 am (10 years ago)

    hey, i did dat but my problem still persists. Do u know off any other alternative way of fixing this?

    Reply
  21. NazarDesign
    November 19, 2009 at 7:15 am (10 years ago)

    Really amazing plug-in thank’s very useful! Thank’s a lot!

    Reply
  22. Najee Khan
    November 9, 2009 at 8:49 am (10 years ago)

    I tried that. The problem still remains.

    Reply
  23. Taskin
    August 27, 2009 at 2:07 pm (10 years ago)

    it worked when i had just installed it, buy now it is not working

    Reply
  24. Karl
    August 9, 2009 at 10:30 pm (10 years ago)

    Thank you for this :) The RSS now works in my blog! Easiest way to fix it anyhow!

    Reply

1Pingbacks & Trackbacks on Fixing WordPress RSS Issue “XML Parsing Error: XML or text declaration not at start of entity”

  1. Wordpress XML Ayrıştırma hatası ve çözümü | Makalelerim | rooteto.com - Ertuğrul SAĞLAM
    August 4, 2009 at 2:45 pm (10 years ago)

    […] butonuna tıklayın aslında ikisinede tıklayın sorun gidiyor. Bu yazıyı şuradan buldum : Fixing WordPress RSS Issue “XML Parsing Error: XML or text declaration not at start of entity” wp-super-cache eklentisinin etkisizleştiriliceğinide şuradan buldum: Fix WordPress Feed XML […]

    Reply

Leave a reply to drew

Click here to cancel reply.