How to Fix RSS Feed Errors in WordPress
You need to make sure your RSS feed is working fine or you will lose subscribers because most of the visitors don’t really bother to tell you about it. RSS stands for Really Simple Syndication or Rich Site Summary however it is often referred to as the feed or news feed. Sometimes you encounter an RSS feed error on your WordPress site which can be frustrating at times. There are multiple types of RSS feed errors and they can be caused by changes in plugins and themes.
What causes WordPress RSS Feed Errors?
Most common WordPress RSS feed errors are caused by poor formatting. WordPress outputs RSS feeds in XML which is a strict markup language. A missing line break or an extra tab can break your RSS feed.
The RSS error message will look something like this:
XML Parsing Error: XML or text declaration not at start of entity Location: http://example.com/feed Line Number 2, Column 1:
Depending on what browser you are using, your RSS feed error message may vary. You can also see this error message when visiting your feed in a browser.
Warning: Cannot modify header information – headers already sent by (output started at /home/username/example.com/wp-content/themes/twentysixteen/functions.php:433) in /home/username/example.com/wp-includes/pluggable.php on line 1228
If you are using FeedBurner, then your errors may look different. Having said that, let’s take a look at what causes these RSS feed errors and how to fix them.
Fixing RSS Feed Errors in WordPress Manually
The most probable reason for your RSS feeds to show error is poor formatting. This poor formatting can be caused by a blank space after closing php tag in a plugin or in your theme’s functions.php file.
If you recently added a code snippet to your theme or child theme’s functions.php file. Then you need to edit your functions file.
If there is a closing php tag at the end of your functions file, make sure that there is no extra space or line breaks after it.
Ideally, the closing PHP tag is not required at the end of the file. This is why it would be best if you remove the closing php tag altogether.
This should fix the problem in most cases.
Fixing WordPress RSS Feed Errors Using Plugin
You can also fix RSS Feed Errors using plugins. First thing you need to do is install and activate the Fix My Feed RSS Repair plugin. Upon activation, simply go to Tools » RSS Feed Fix page.
Click on the Fix feed button and that’s it. You can now visit your feed in a browser window or test it with a feed validator tool.
Latest posts by Christine (see all)
- Recommended 15 Free WordPress Plugins for Successful Blogging - December 18, 2016
- Why are Contextual Links Important For WordPress SEO - October 16, 2016
- How to Implement Ajax to your WordPress Blog - October 11, 2016