• Resolved joshfassbind

    (@joshfassbind)


    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 @ https://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

Viewing 7 replies - 1 through 7 (of 7 total)
  • 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:
    https://validator.w3.org/feed/docs/error/WPBlankLine.html

    Thread Starter joshfassbind

    (@joshfassbind)

    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.

    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

    Thread Starter joshfassbind

    (@joshfassbind)

    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!

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

    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.

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

    THANK YOU!

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Permanent feed error? No fix?’ is closed to new replies.