• I upgraded WordPress to 3.4 on a site I am working on and now when I go to the RSS feed I get this error:

    XML Parsing Error: XML or text declaration not at start of entity
    Location: http://keepersministry.com/feed
    Line Number 2, Column 1:<?xml version=”1.0″ encoding=”UTF-8″?>
    ^

    I have deactivated all of the plugins, I have looked for a blank line in the files, I have used the fix rss feed plugin, I have switched to the Twenty Eleven theme and none of this fixes the issue.

    The site is http://www.keepersministry.com

    Any other suggestions?

Viewing 4 replies - 1 through 4 (of 4 total)
  • .. did you know that the feed is cached?

    Even if you did all of those things, that you need to actually “update” a post to create the event to clear the feed cache?

    So when you checked with Twenty Eleven, did you update a post so it refreshes the feed cache THEN look at it?

    Thread Starter SaraGraybill

    (@saragraybill)

    Of course not, I completely forgot about that. 🙂 I have done that now for every fix but I still get the same error message.

    Any other ideas?

    I have also reloaded WordPress.

    k, well here’s the last trick.

    If the first line of your functions.php (of your theme) file is <?php with nothing in front of it of course and no extra lines check the last line of your functions.php file.

    With PHP you can ‘omit’ the last ?> of the file so that it doesn’t exist and PHP will “relationally add the ending ?> for that file based on it’s EOF.

    Code example a full file: somecode.php

    <?php
    
    funciton somefunction() {
    }

    Notice there’s no ?> at the end. This actually works and makes PHP designate where the end is.

    If you were to disable all of your plugins, load the twentyten theme and then edit a post and click update it will refresh the cache (You still have to “control R” reload it in your browser as well since browsers cache rss as well as the system.

    If you do that and it still has that broken RSS then it’s more then likely the wp-config.php file that has it in it, so do the little trick I said above and remove that last trailing ?> part of the file and then give the ole update – control-R refresh on the feed WITH plugins disabled and twentyten (stock nothing edited on it) from the repo.

    Thread Starter SaraGraybill

    (@saragraybill)

    Well, I’ve narrowed it down to the theme. Now I just have to find what in the theme broke it. Thanks for your help in narrowing it down to that.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘RSS Feed broke when upgraded to WordPress 2.4’ is closed to new replies.