RSS Feed error in WordPress, how to fix it?

ADVERTISEMENTS

RSS Feed of ‘Techno Life @ tothepc’  had gone for a toss. The default RSS Feed URL http://www.tothepc.com/feed/ was showing no feed items but a strange error. Even though WordPress is not a new thing for me but this error for sure was. Here is the error:

XML parsing failed: syntax error (Line: 1, Character: 1) Reparse document as HTML ErrorML declaration not at beginning of document Specification:http://www.w3.org/TR/REC-xml/ 1: 2:

Most likely reason for this error is some white space in any of the core WordPress file. In my case, it was wp-config.php file. Few days back this file was edited for some change and accidentally a white space was left in the end. To fix this, opened the file in edit mode, hit the backspace key to remove white space, cleared cache and feed started working fine.

Instead of looking for which file is causing this error, you can get started by updating and overwriting wordpress files. Since, wp-config.php is never overwritten during such procedure helped in isolating cause of the issue. As pointed by Rauru blank / white space in functions.php file can also cause this issue. To summarize, check wp-config, wp-functions files – otherwise overwrite wordpress files.

SHARE
 

Add a Comment

*