Forums

[resolved] Invalid feed (5 posts)

  1. pshoeg
    Member
    Posted 3 years ago #

    I've used feedvalidator.org to validate my feed, but it isn't valid. The reason it gives is "Blank line before XML declaration", and the help they provided for this is here. I've done everything: I've deactivated all plugins, I've changed the theme back to default, I've looked at wp-config.php, and the feed files, I've checked functions.php, but nothing seems to work.

    When I view the source, there are 7 blank lines before my DOCTYPE declaration, and I don't know why they are there.

    My site is at stiern.com and the feed is at /feed

    Has anyone else experienced this problem? And does anyone have a solution for it?

    Thanks!

  2. Ryan S
    Member
    Posted 3 years ago #

    By default, WordPress comes with various feeds. They are generated by template tag for bloginfo() for each type of feed and are typically listed in the sidebar and/or footer of most WordPress Themes.

    They look like this:

    URL for RDF/RSS 1.0 feed
    <?php bloginfo('rdf_url'); ?>

    URL for RSS 0.92 feed
    <?php bloginfo('rss_url'); ?>

    URL for RSS 2.0 feed
    <?php bloginfo('rss2_url'); ?>

    URL for Atom feed
    <?php bloginfo('atom_url'); ?>

    URL for comments RSS 2.0 feed
    <?php bloginfo('comments_rss2_url'); ?>

    You can check in this area for the cause of error..

    http://codex.wordpress.org/WordPress_Feeds

  3. pshoeg
    Member
    Posted 3 years ago #

    Well, I know the address for my feed, as I mentioned in my post (stiern.com/feed). I couldn't find anything on the topic in the link you mentioned... Where exactly is that?

  4. Ryan S
    Member
    Posted 3 years ago #

    in your issue, there must be some coding error in your feed function. You can check the same in your themes sidebar or footer file..

  5. pshoeg
    Member
    Posted 3 years ago #

    It seems to be a general error... I found this site, which has a great script for it... But thanks anyway...

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags