• Resolved pshoeg

    (@pshoeg)


    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!

Viewing 4 replies - 1 through 4 (of 4 total)
  • Ryan S

    (@ryan_accuwebhosting)

    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..

    https://codex.www.ads-software.com/WordPress_Feeds

    Thread Starter pshoeg

    (@pshoeg)

    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?

    Ryan S

    (@ryan_accuwebhosting)

    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..

    Thread Starter pshoeg

    (@pshoeg)

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

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Invalid feed’ is closed to new replies.