• When I click on the RSS Feed button on my site, this is what I get:

    XML Parsing Error: xml declaration not at start of external entity
    Location: https://www.agenotes.com/feed
    Line Number 3, Column 1:<?xml version=”1.0″ encoding=”UTF-8″?>
    ^

    Being a complete dummy, my eyes glaze over. I wouldn’t know an ?xml or UTF8 if they hit me in the face. Any suggestions? Thanks for looking.

Viewing 12 replies - 1 through 12 (of 12 total)
  • Your RSS feed starts with two blank lines. That’s no bueno.

    Odds are, you have a plugin file (or your wp-config.php file) that has extra carriage returns or line feeds.

    You might pop each open (or the most recently modified/uploaded) and check. There should be no empty space before the file’s opening <?php nor should there be any lines or space after the file’s closing ?>.

    Hopefully that’ll help.

    Thread Starter potentmix

    (@potentmix)

    Thanks for getting back to me. I still have no idea what to do. Before deactivating plugins could you please tell me if the wp-config.php code is in error? Here it is:

    <?php
    // ** MySQL settings ** //
    define(‘DB_NAME’, ‘acneecom_wrdp1’); // The name of the database
    define(‘DB_USER’, ‘acneecom_wrdp1’); // Your MySQL username
    define(‘DB_PASSWORD’, ‘xxxxxxxxxxx’); // …and password
    define(‘DB_HOST’, ‘localhost’); // 99% chance you won’t need to change this value
    define(‘DB_CHARSET’, ‘utf8’);
    define(‘DB_COLLATE’, ”);

    // You can have multiple installations in one database if you give each a unique prefix
    $table_prefix = ‘wp_’; // Only numbers, letters, and underscores please!

    // Change this to localize WordPress. A corresponding MO file for the
    // chosen language must be installed to wp-content/languages.
    // For example, install de.mo to wp-content/languages and set WPLANG to ‘de’
    // to enable German language support.
    define (‘WPLANG’, ”);

    /* That’s all, stop editing! Happy blogging. */

    define(‘ABSPATH’, dirname(__FILE__).’/’);
    require_once(ABSPATH.’wp-settings.php’);
    ?>

    Thanks

    Nope, I couldn’t. Your copy & paste doesn’t show us if you have any extra blank lines at the very beginning or very end of the file. Only you (and your editor) can tell that.

    Thread Starter potentmix

    (@potentmix)

    Well it starts at line 1 and ends with no additional lines that are numbered. I haven’t added any plugins lately.

    1) Is this a brand new problem?

    2) If so, what changed in between when it worked and when the problem started?

    Any theme changes recently? If you change the theme to Default, does this issue continue?

    Does your theme have a functions file? If so, check for line feeds there.

    Have you checked plugin files yet?

    Thread Starter potentmix

    (@potentmix)

    Ah ha! No problem with the default theme. So, it seems it’s theme related, I’ve have always used the problem theme and the feed worked previous to upgrading to 2.3.1, I use that theme for another site that’s still 2.2.2 and the feed works fine. Since I only know how to use Fantastico, I don’t know how to revert to 2.2.2.

    So, I guess I need to change themes, and I liked that one so well. Oh well. Thanks for your help.

    Well, your other option would be to fix the problem and continue to use the theme.

    (that whole “find the extra/bad line feeds” thing I keep harping on…)

    Thread Starter potentmix

    (@potentmix)

    As I mentioned earlier, wp-config.php has no open lines top or bottom. I’m in way over my head here, and really have no idea where to look, since I’m new to wordpress and php.

    ARe there any other files that might be likely culprits? None of my plugins have anything to do with RSS. Again, thanks for your efforts at support.

    Even though the plugins have nothing to do with RSS, they may still be the culprit.

    However, since changing themes cleaned things up, it is more likely that you have theme file at fault. Does your current theme have a functions.php file? I’d start with that.

    Hey — I just checked your feed again. You fixed it!

    Thread Starter potentmix

    (@potentmix)

    I changed themes and that fixed it, but I would prefer the previous theme if I can make it work.

    It does have a functions.php file. Any suggestions for what to do with it?

    The same thing: check for blank lines… isn’t the error about blank lines?

    Thread Starter potentmix

    (@potentmix)

    Blank lines was the problem.

    What I did was download the theme again. Then I deleted the old theme and uploaded the new download. I then uploaded old files again, as required, and the RSS feed works just fine now with the theme I have used from the beginning – the one I like.

    No more blank lines! What caused the problem? I haven’t a clue. All I know is that it’s now resolved.

    Thanks for all the help.

Viewing 12 replies - 1 through 12 (of 12 total)
  • The topic ‘RSS Feed Broken’ is closed to new replies.