Title: RSS XML Error &#8211; please help
Last modified: August 19, 2016

---

# RSS XML Error – please help

 *  [papernoose](https://wordpress.org/support/users/papernoose/)
 * (@papernoose)
 * [17 years ago](https://wordpress.org/support/topic/rss-xml-error-please-help/)
 * My blog is at [http://www.knowitalldiva.com](http://www.knowitalldiva.com) and
   resolves to [http://knowitalldiva.com](http://knowitalldiva.com)
 * Everything works great except for the RSS. If you go to the bottom left of the
   screen and click on the RSS image you are taken to –
    [http://knowitalldiva.com/?feed=rss2](http://knowitalldiva.com/?feed=rss2)
 * The error is –
    Invalid xml declaration. Line: 2 Character: 3
 * <?xml version=”1.0″ encoding=”UTF-8″?>
 * In my file wp-rss2.php I have the following code –
 * <?php
    /** * Outputs the RSS2 feed XML format using the feed-rss2.php file in
   wp-includes * folder. This file only sets the feed format and includes the feed-
   rss2.php. * * This file is no longer used in WordPress and while it is not deprecated
   now. * This file will most likely be deprecated or removed in a later version.**
   The link for the rss2 feed is /index.php?feed=rss2 with permalinks off. * * [@package](https://wordpress.org/support/users/package/)
   WordPress */
 * if (empty($wp)) {
    require_once(‘./wp-load.php’); wp(‘feed=rss2’); }
 * require (ABSPATH . WPINC . ‘/feed-rss2.php’);
 * ?>

Viewing 2 replies - 1 through 2 (of 2 total)

 *  [Samuel B](https://wordpress.org/support/users/samboll/)
 * (@samboll)
 * [17 years ago](https://wordpress.org/support/topic/rss-xml-error-please-help/#post-1088431)
 * likely causes
    blank line at start or end of wp-config.php blank line at start
   or end of plugin file (this happens a lot) blank line at start or end of theme’s
   function.php or other file
 * Check your wp-rss2.php and wp-atom.php files for blank lines outside of <? and?
   > bracketed sections.
 *  Thread Starter [papernoose](https://wordpress.org/support/users/papernoose/)
 * (@papernoose)
 * [17 years ago](https://wordpress.org/support/topic/rss-xml-error-please-help/#post-1088433)
 * Ok.. i totally just screwed it up (I thought it would be wise to do a find and
   replace to remove blank line #1’s, that didn’t work so well lol) and can’t even
   get to the admin now 🙂 Thanks for your suggestions though, after I do a complete
   reinstall I will reference your comment if I continue to have this issue. Thanks.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘RSS XML Error – please help’ is closed to new replies.

## Tags

 * [RSS](https://wordpress.org/support/topic-tag/rss/)
 * [xml](https://wordpress.org/support/topic-tag/xml/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 2 replies
 * 2 participants
 * Last reply from: [papernoose](https://wordpress.org/support/users/papernoose/)
 * Last activity: [17 years ago](https://wordpress.org/support/topic/rss-xml-error-please-help/#post-1088433)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
