WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Permanent feed error? No fix? (8 posts)

  1. joshfassbind
    Member
    Posted 4 years ago #

    Hi all,

    I know this subject has been covered over and over. I've been reading forums for the past month now and still haven't solved my problem.

    Like many, I get an error when I try to see my feed @ http://joshfassbind/feed.

    The error is the following: error on line 2 at column 6: XML declaration allowed only at the start of the document.

    I have tried everything possible and imaginable.

    • I've deactivated every single plugin
    • I've run the Fix-Rss-Feed plugin
    • I've re-uploaded all WordPress files to the server

    But what is really strange is the fact that if I type my feed address directly into Google Reader, the feed works.

    Can anybody help me? I've been struggling with this issue for months, litteraly!

    Thank you in advance to anybody who can help.

    josh

  2. alism
    Member
    Posted 4 years ago #

    You've got a blank line somewhere it shouldn't be. Tracking it down might be a bit tedious I'm afraid. Check the files suggested here:
    http://validator.w3.org/feed/docs/error/WPBlankLine.html

  3. joshfassbind
    Member
    Posted 4 years ago #

    Thanks for your quick reply alism. I've unfortunately checked those files already and they are clean.

    I don't know how I've managed but I think the situation is hopeless.

  4. Rev. Voodoo
    Volunteer Moderator
    Posted 4 years ago #

    I fixed my invalid feed last week, I had a blank line between 2 php tags in my functions.php file....like:

    <?php
    code
    ?>
    
    <?php
    code
    ?>

    and apparently that was enough to throw the error...I found it quite by accident, but deleting it fixed things. Can't say I understand....as the rest of my templates have all sorts of spaces between things, but apparently in functions.php it was an issue

  5. joshfassbind
    Member
    Posted 4 years ago #

    Unbelievable! I think it worked!

    RVoodoo, you are my god right now! I've been pulling my hair out on this one for weeks if not months!

    Thank you!

  6. captainhendry
    Member
    Posted 4 years ago #

    Anyone have a line number? I couldn't find any such gap, but I'm still having the same error.

  7. ejewelrysource
    Member
    Posted 4 years ago #

    Hello, I have been having problems with my feeds. I am been at it for 2 weeks. The solutions that I found in your link shown above, it says:

    •PHP also uses a similar notation: <?php ... ?>. Note that the final php ?> should be omitted from all PHP code files—modules, includes, etc. The closing delimiter is optional in PHP (but not in XML), and removing it helps prevent unwanted white space at the end of files which can cause problems with your feeds.
    •Check your wp-rss2.php and wp-atom.php files for blank lines outside of <? and ?> bracketed sections.
    •Check your wp-config.php file for blank lines outside of <? and ?> bracketed sections.
    •Check your theme's functions.php file for blank lines outside of <? and ?> bracketed sections.
    •One by one, disable plugins and revalidate until you isolate the one causing the problem.

    ------------------------

    <?php ... ?>. Note that the final php ?> I am not sure how to omit it. In my feed-rss.php, there is one line - <?php bloginfo_rss('url') ?>, in this case should i make it

    <?php bloginfo_rss('url')

    above shows I omited ?>
    Is this correct?

    When checking for blank lines outside of <? and ?> bracketed sections.
    Does this mean
    blank<?... and ?>blank?

    PLease help. Thank you.

  8. ejewelrysource
    Member
    Posted 4 years ago #

    Hi, Alism, I FIXED IT. I am so glad to find your http://validator.w3.org/feed/docs/error/WPBlankLine.html and followed the instruction. Now I can go to sleep.zzzzzzzzzzzzz.

    THANK YOU!

Topic Closed

This topic has been closed to new replies.

About this Topic