Tips & Tricks

How to Fix WordPress RSS Feed Errors

How to Fix WordPress RSS Feed Errors

RSS Feed Errors are very confusing. If your WordPress website screen displaying the following error

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


Line Number 2, Column 1:


Or like this

Warning: Cannot modify header information – headers already sent by (output started at /home/username/ in /home/username/ on line 1228


And your answer is Yes, then certainly you are having WordPress RSS Feed Errors. 

RSS Error’s indication text varies server to serve. 


  • Reasons for WordPress RSS Feed Errors


Usually, due to poor formatting or incorrect RSS Feed Errors take place in WordPress. WordPress uses a very strict markup language called XML to deliver RSS Feeds. This code language requires full consciousness to write. An extra tab or lack of a comma or any other silly mistake has the power to break the whole RSS Feed. The error will notify you like the following 


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


Line Number 2, Column 1:


If you visit RSS feed in a browser the error notification will be different.


  • Manually Fixing RSS Feed Errors in WordPress

The most common cause of RSS Feed error is poor formatting. If a blank space remains after closing the PHP tag or theme’s functions.php file then it creates poor formatting. 


After adding code snippet or child theme’s function.php file then editing function file is a must.

The closing PHP tag is not important to put in. if you want you can remove the closing PHP tag. 

Removal of PHP tag is the most effective and simplest way to get rid of this error.


  • Disable RSS Feed Related Plugins

If you have a modifier plugin for the website’s RSS Feed then there is a high possibility that the plugin may cause the error. After sure that plugin is corrupted you should disable the plugin as soon as possible.

If you can not be sure whether the plugin is corrupted or not there is also an option to disable all the plugins temporarily.

After disabling the plugins if the error also disappears then undoubtedly one of the plugins is corrupted. 

Now reactive each plugin one by one so you can identify the corrupted plugin.

After identifying culprit plugin disable it permanently and look for an alternative plugin or you can ask for the help of the support team.


  • Temporarily Switch to a Default Theme

If you have doubts that the source of the error can be your current theme.  then to clear the doubt or to take action based on the doubt there is nothing to do but to check the theme. To recheck the theme you need to disable the theme or can replace it with the default WordPress theme temporarily.


Visit the Appearance then Themes page then install and active default the theme.

Now check whether the error still exists or not. Check the error at the WordPress feed. You should also try to visit a browser window with feed or with the feed validator tool. If the error does not found in any means then certainly the theme was causing the RSS Feed error. After detecting the source of the issue get rid of it according to your convenience and you can ask for an alternative to the support team too or have a fresh new theme for your WordPress site.

If you liked this article, then please visit our WordPress Theme

Read Our most popular article.

You Might Also Like

No Comments

    Leave a Reply

    This site uses Akismet to reduce spam. Learn how your comment data is processed.