Title: Invalid feed
Last modified: August 19, 2016

---

# Invalid feed

 *  Resolved [pshoeg](https://wordpress.org/support/users/pshoeg/)
 * (@pshoeg)
 * [17 years, 3 months ago](https://wordpress.org/support/topic/invalid-feed/)
 * I’ve used feedvalidator.org to validate my feed, but it isn’t valid. The reason
   it gives is “Blank line before XML declaration”, and the help they provided for
   this is here. I’ve done everything: I’ve deactivated all plugins, I’ve changed
   the theme back to default, I’ve looked at wp-config.php, and the feed files, 
   I’ve checked functions.php, but nothing seems to work.
 * When I view the source, there are 7 blank lines before my DOCTYPE declaration,
   and I don’t know why they are there.
 * My site is at [stiern.com](http://stiern.com) and the feed is at /feed
 * Has anyone else experienced this problem? And does anyone have a solution for
   it?
 * Thanks!

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

 *  [Ryan S](https://wordpress.org/support/users/ryan_accuwebhosting/)
 * (@ryan_accuwebhosting)
 * [17 years, 3 months ago](https://wordpress.org/support/topic/invalid-feed/#post-947596)
 * By default, WordPress comes with various feeds. They are generated by template
   tag for bloginfo() for each type of feed and are typically listed in the sidebar
   and/or footer of most WordPress Themes.
 * > They look like this:
   > URL for RDF/RSS 1.0 feed
   >  <?php bloginfo(‘rdf_url’); ?>
   > URL for RSS 0.92 feed
   >  <?php bloginfo(‘rss_url’); ?>
   > URL for RSS 2.0 feed
   >  <?php bloginfo(‘rss2_url’); ?>
   > URL for Atom feed
   >  <?php bloginfo(‘atom_url’); ?>
   > URL for comments RSS 2.0 feed
   >  <?php bloginfo(‘comments_rss2_url’); ?>
 * You can check in this area for the cause of error..
 * [http://codex.wordpress.org/WordPress_Feeds](http://codex.wordpress.org/WordPress_Feeds)
 *  Thread Starter [pshoeg](https://wordpress.org/support/users/pshoeg/)
 * (@pshoeg)
 * [17 years, 3 months ago](https://wordpress.org/support/topic/invalid-feed/#post-947599)
 * Well, I know the address for my feed, as I mentioned in my post (stiern.com/feed).
   I couldn’t find anything on the topic in the link you mentioned… Where exactly
   is that?
 *  [Ryan S](https://wordpress.org/support/users/ryan_accuwebhosting/)
 * (@ryan_accuwebhosting)
 * [17 years, 3 months ago](https://wordpress.org/support/topic/invalid-feed/#post-947602)
 * in your issue, there must be some coding error in your feed function. You can
   check the same in your themes sidebar or footer file..
 *  Thread Starter [pshoeg](https://wordpress.org/support/users/pshoeg/)
 * (@pshoeg)
 * [17 years, 3 months ago](https://wordpress.org/support/topic/invalid-feed/#post-947604)
 * It seems to be a general error… I found [this site](http://wejn.org/stuff/wejnswpwhitespacefix.php.html),
   which has a great script for it… But thanks anyway…

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

The topic ‘Invalid feed’ is closed to new replies.

## Tags

 * [invalid](https://wordpress.org/support/topic-tag/invalid/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 4 replies
 * 2 participants
 * Last reply from: [pshoeg](https://wordpress.org/support/users/pshoeg/)
 * Last activity: [17 years, 3 months ago](https://wordpress.org/support/topic/invalid-feed/#post-947604)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
