Expert Group of programming

XML Declaration RSS feed Error – WordPress

Posted by : Heycode Tech | Posted in : wordpress, WordPress Functions | Mar 16,2016 | 0 comments

As we know that wordpress have a very special feature of Feedburner RSS feed that have the XML of the post listing. We can get it easily,just hit a very simple URL like. or etc .

Sometime, our RSS FEED have not generated i.e it got an error. Here we are describing the problem as well as solution.

The Problem: XML declaration RSS feed Error

Sometime when we try to generate the XML(Like then it gives an error like

In the browser Internet Explorer,it gives an error like this.

Invalid xml declaration.
Line: 2 Character: 3

And when you will viewsource of this page then it will gives a BLANK SPACE on the top. See here
Screenshot from 2016-03-16 22:41:12

This BLANK SPACE is the main cause of this Error.

The Solution: XML declaration RSS feed Error

For this issue, we need to remove this white space i.e BLANK SPACE. So we need to check the following files.

i – File : functions.php : (wp-content/themes/youractivatedtheme/functions.php) Please check this file at the end and if it have any white space i.e Blank space on the bottom then remove it .

Screenshot from 2016-03-16 22:56:17

I ‘m sure,your problem have been resolved. If you have included any other file then please also check the WHITE SPACE i.e BLANK SPACE and remove on that also.

2: You need to check other template also like ” header.php , footer.php , comments.php, author.php,search.php,page.php etc ” .

3: If you are using any CACHE plugin then first de-activate and again active or remove the CACHE so that it can able to store the new content.

Note : If still have any problem then add this function : ob_start() : at the top on the file : functions.php : Now it will use for buffering but hopefully it can resolved all the error.

But I ‘m sure above solution will resolved and you don’t need it.

Let me know in the comments, if this helped for you or if you know of any other better solutions!

Author information - Heycode Tech

Every world can ask question and my website registered user give the suggestion.

See all posts by Author

Connect to author

Leave a Reply

Your email address will not be published. Required fields are marked *

About us

Heycodetech is a platform where you can ask any questions related to the programming like PHP,jQuery, MYSQL,HTML , CSS and more Here is the Expert group of programming.