How To Fix Your RSS Feed Error – “Syntax error: line 1, column 0”

This site may contain affiliate links for which a small commission is received.

Fb Syntax Error Line 1, Column 0

This isn’t a typical article I write but I was kinda stumped when I had the issue. Once I figured it out I thought to write a quick article for others facing this problem. If you’re wondering how to fix your RSS feed because you’re seeing the error “syntax error: line 1, column 0” you might be like me. I looked at that and thought “What the heck”?  The error message can be irritating to troubleshoot but there are several things you can try to resolve it and get back on track. First, understand there are a couple of syntax issues that cause this.  The first may be a blank space in either the closing PHP tag in a plugin or in your WordPress functions file.  So review your functions.php file and confirm that there is no extra space(s) or line breaks after it.  Just as an FYI a closing PHP tag at the end of the file isn’t really required anyway.

If in fact you do have an extra space in a PHP file that shouldn’t be there and can’t locate them you can upload a plugin that may help. Google “Fix RSS Feed” and download the plugin. It’s been around awhile and I’m not sure how much longer it will be available as it appears not to be maintained but as long as it is available you can download and try it.

WP Rocket - WordPress Caching Plugin


If it were only that easy you’d be done.  However, if you can’t find extra space in your functions file or running the plugin doesn’t work, then here are a couple of other things to try that worked for me.

Before going further you should try using these two validation sites that can help you better understand what broke in your RSS feed.

RSS Feed Validation and Syntax Help

  1. NU HTML Checker
  2. WWW Feed Validation Service

The first will at least give you a better error message to work with then the useless “syntax error: line 1, column 0” which in my opinion gives little to no help at all. The second will check and confirm whether your RSS feed can be parsed properly. Once you actually fix your issue these 2 tools will confirm that you RSS feed is functioning properly.

In my case I continued to have errors testing with both feed URL checkers.  That meant something was still wrong.  I determined that some special characters that aren’t usable in the XML file. For my issue there was a “<” in part of my Site description.  Once I removed that the  W3 Validation check worked.

Fixing the Schema Error” XML document with no namespace; cannot determine any schema to use for validation

This doesn’t mean you have the exact same problem but in case you do you can see what I fixed.

Xml Err

So once I changed my Site description and removed the ampersand it validated using both the NU HTML Checker and the WWW Feed Validation Service but I had other errors with several of the post descriptions and eventually needed to force the RSS feed to update to correct the post descriptions.

Xml Fix

Now to force an instant RSS Feed update.

That required using one of 2 methods.

The first is to add a line into the functions file to force an RSS feed update every minute. Importantly that line has to be removed once the update occurs or it can become a resource problem. I decided that wasn’t the way to go, but still you can use this if you want to try it and then either comment it out or remove altogether once your feed updates.  If you do nothing your feed will update on a 12 or 24-hour window.

add_filter(‘wp_feed_cache_transient_lifetime’, create_function(”, ‘return 60;’));

The other method is easy. I simply went to Settings > Reading > Syndication feeds show the most recent. I changed the number and saved the changes which forced the feed to update immediately to reflect the number of postings and their descriptions in the feed.

If this helped, consider sharing. Thanks.

Syntax Error Line 1, Column 0 Fix

How To Fix Your RSS Feed Error - "Syntax error: line 1, column 0"

If you found this useful, consider sharing. Thanks

Make a cool logo in less than 5 minutes with Inkscape. Here's 24 ways to do it. >>> 24 Inkscape Filter Effects With Text

Scroll to Top