Support » Fixing WordPress » invalid rss feed

  • According to, my rss feed is broken. I have no idea where to look to fix it, any help?
    Here’s what it says:
    * line 3, column 0: XML Parsing error: <unknown>:3:0: xml declaration not at start of external entity [help]
    <?xml version=”1.0″ encoding=”utf-8″?>
    3. <?xml version=”1.0″ encoding=”utf-8″?>
    4. <!– generator=”wordpress/1.3-alpha-4″ –>
    5. <rss version=”2.0″
    6. xmlns:content=””
    7. xmlns:wfw=””
    8. >

Viewing 3 replies - 1 through 3 (of 3 total)
  • Here is the first bit of wp-rss2.php:

    if (!isset($feed) || !$feed) {
    $blog = 1;
    $doing_rss = 1;
    header('Content-type: text/xml; charset=' . get_settings('blog_charset'), true);
    $more = 1;
    <?php echo '<?xml version="1.0" encoding="'.get_settings('blog_charset').'"?'.'>'; ?>

    I tried squishing everything up into 1 php block with no blank lines, but that didn’t make any difference. I also tried commenting out the header call, but that just made things worse.

    phew, that was a journey…
    I went from wp-rss2.php to wp-blog-header.php to wp-settings.php and finally tracked it down to the moment when the plugins get loaded. Then I went through each plugin until I tracked it down to random_file.php, which turned out to have a couple of stray ctrl-m characters at the end. Cleaned that up, et voila, a valid rss feed!

    in my case a beta of Textile 2 was messing up the feed

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘invalid rss feed’ is closed to new replies.