Forums

RSS feed: Error with Upgrade to 2.5 (8 posts)

  1. Valerie123
    Member
    Posted 1 year ago #

    I just updated to 2.5, and I'm getting an error with my RSS feed.

    This is what it says

    XML Parsing Error: xml declaration not at start of external entity
    Location: http://christianpreschoolprintables.com/blog1/?feed=rss2
    Line Number 2, Column 1:<?xml version="1.0" encoding="UTF-8"?>

    Here's my blog http://www.christianpreschoolprintables.com/blog1

    and it's doing this for the post feed, and the comments feed.

    Is there something I can do to fix this? Kinda strange because it was working fine before I upgraded? Perhaps I did something wrong?

    I appreciate any help you can provide....

    In Christ,

    Valerie

  2. Otto42
    Moderator
    Posted 1 year ago #

    You have the blank line problem.

    Read this: http://feedvalidator.org/docs/error/WPBlankLine.html

    Check your wp-config.php file for blank lines. I recommend removing the ending ?> from that file.

  3. Valerie123
    Member
    Posted 1 year ago #

    Wow, thanks for the quick reply!

    I went to my wp-config.php file and couldn't find any blank lines (outside the ?> right?

    I removed that from the bottom, but still not working?

    I went to the link and did all the steps in looking for blank lines but I couldn't find any blank lines.

    (PLease let me make sure I understand right though....

    This is my wp-rss2.php file

    <?php

    if (empty($wp)) {
    require_once('./wp-config.php');
    wp('feed=rss2');
    }

    require (ABSPATH . WPINC . '/feed-rss2.php');

    ?>

    Are you talking about blank lines within the code or a blank line before or after the code?

    I checked for lines before or after the code, and couldn't find anything and the problem still exists?

  4. Otto42
    Moderator
    Posted 1 year ago #

    Forget the wp-rss2.php file, that's probably not it. I don't know why that site tells you to check that one.

    The most likely candidates are:
    wp-config.php
    The theme's functions.php file
    A plugin (any plugin)

    Check those. And for any of those files that end with ?>, then the ?> can be safely removed to ensure that it produces no blank lines at the end. But only if that last bit in the file is ?>. If it's anything else, leave it be.

  5. Valerie123
    Member
    Posted 1 year ago #

    Hmmm? Okay I went through the

    wp-config.php
    functions.php file

    and all plugins

    I erased the ?> and any blank lines that were at the end.

    Still not working?

    Any guesses as to what's going on?

    I appreciate your time, this is really confusing!

    Blessings,

    Valerie

  6. moshu
    Member
    Posted 1 year ago #

  7. Valerie123
    Member
    Posted 1 year ago #

    Hmmm? Thats weird, yesterday they wern't working, and now this morning they're doing just fine...perhaps I needed to wait a minute or something for them to register the changes I made!

    Oh, I am sooooo excited! Thank you SOOOO much for helping me fix this!

    I can't wait to start promoting my feed!

    Blessings,

    Valerie

  8. flyaga
    Member
    Posted 10 months ago #

    Please try this plugin fix-rss-feed, it will fix your rss error automatically, and you can get more information from http://wordpress.org/extend/plugins/fix-rss-feed/, and you also can get help from the author website http://www.flyaga.info/en/wordpress/plugins/fix-rss-feed-error-wordpress-plugins.htm

Topic Closed

This topic has been closed to new replies.

About this Topic