• rss_16
  • facebook_16
  • twitter_16

How To Fix RSS Feed Not Working in WordPress

wordpress-rss

Earlier this week our friends at Meet Me On Board asked us to look into an issue where their RSS feed was not working properly.

When you tried to reach their feed you would receive the following message:

“XML Parsing Error: XML or text declaration not at start of entity”

After doing some research we found an article from the W3C which pushed us in the right direction.

  • PHP also uses a similar notation: . Note that the final php ?> should be omitted from all PHP code files—modules, includes, etc. The closing delimiter is optional in PHP (but not in XML), and removing it helps prevent unwanted white space at the end of files which can cause problems with your feeds.
  • Check your wp-rss2.php and wp-atom.php files for blank lines outside of bracketed sections.
  • Check your wp-config.php file for blank lines outside of bracketed sections.
  • Check your theme’s functions.php file for blank lines outside of bracketed sections.
  • One by one, disable plugins and revalidate until you isolate the one causing the problem.

For us the issue was blank space at the end of our wp-config.php file. As soon as we removed that the RSS feed started functioning properly.

If you have any questions or need help fixing your WordPress RSS feed feel free to contact us.


About Ryan Gatto

Project manager extraordinaire with hundreds of website designs created and managed from concept to execution. Results-oriented leader dedicated to client success through all relevant media channels, creative marketing and advertising design. Keen branding eye with the ability to generate creative concepts that deliver results based on client goals and input.
  • Pingback: Your Questions About Creating A Blog With Wordpress | Blog With WS-Blogs

  • http://www.openwavecomp.com/microsoft_technologies.html .net web development

    very useful article about how to fix rss feed in wordpress..Thanks for the tips

  • Sujoy Dhar

    please kindly check my page http://wideinfo.org/feed it is having some error in my page could you help me in fixing this feed error !

    The best will be try chrome browser so that you can see exactly what is the error in my feed page !

    • http://www.catonthecouch.com/ Cat on the Couch Productions

      What seems to be the issue? Looks good to me.

      • http://www.catonthecouch.com/ Cat on the Couch Productions
        • Sujoy Dhar

          Awesome my mind got cleared up ,and I have also detected that not only my website there is all other website is having same and after reading your given url page I am free of my mind hurray !
          Firefox is showing correct way and IE browser is having 100% correct view and Chrome is having non-sutable to rss feed !

          Thank You very much !

  • http://twitter.com/stribe39 Scott Tribe

    I’m getting this error now too.. but only since I upgraded to WordPress 3.5. I’ve gone thru all the php files you’ve mentioned and manually tried to remove all blank spaces… but it still hasn’t cleared the problem up.

    (I’ve also tried some of those rss fix feeds plugins I’ve seen, but those didnt clear the problem up either)

    • http://www.catonthecouch.com/ Cat on the Couch Productions

      Scott – What is the URL?

    • http://silodrome.com/ James McBride

      I’m having the same issue as Scott, did you ever find a solution?

      • http://www.catonthecouch.com/ Cat on the Couch Productions

        James – What is your URL?

  • Eren

    please kindly check my page http://goo.gl/tCUG2 it is having some error in my page could you help me in fixing this feed error !

    • http://www.catonthecouch.com/ Cat on the Couch Productions

      Eren – It is hard to diagnose a problem from just looking at the page in a browser. It looks like the issue we explain how to fix above. Have you tried our instructions yet?

  • http://www.facebook.com/wsantoro2 William Santoro

    My feed is giving the message “no articles”. It used to work. I’m not sure when it stopped. I have tried disabling all the plug-ins and activating the twenty twelve theme. Appreciate any suggestions.

    • http://www.catonthecouch.com/ Cat on the Couch Productions

      URL?

  • http://www.catonthecouch.com/ Cat on the Couch Productions

    Steve,

    Possibly but I can’t say for certain. Feel free to try it and report back.

    • http://eMailTipsDaily.com/ eMailTipsDaily

      Thank you – I have to try, I have to do something…

      Anyway, if it works, I’ll come back and let you know, too…

      Cheers,
      Steve