WordPress.org

Ready to get started?Download WordPress

Forums

XML Sitemap & Google News feeds
[resolved] [Plugin: XML & Google News Sitemap Feeds] This page contains the following errors (6 posts)

  1. Jack
    Member
    Posted 1 year ago #

    This page contains the following errors:

    error on line 2 at column 6: XML declaration allowed only at the start of the document
    Below is a rendering of the page up to the first error.

    Please advise, a bit of a noob at this.

    Thank you,

    Jack.

    http://wordpress.org/extend/plugins/xml-sitemap-feed/

  2. RavanH
    Member
    Plugin Author

    Posted 1 year ago #

    That should not be happening. Something in your setup is causing the XML declaration to move from the first line to (probably) the second line. Can you give me a link to your sitemap?

  3. Jack
    Member
    Posted 1 year ago #

  4. RavanH
    Member
    Plugin Author

    Posted 1 year ago #

    Like I suspected, there is a blank line inserted at the top of the sitemap. That first blank line is visible in all your pages source code but only in feeds like http://www.wfo-media.com/feed/ or http://www.wfo-media.com/sitemap.xml this causes the error to show.

    This can be caused by many things. Start by looking at your wp-config.php file. It should start with <?php on the VERY first line...

    Else, you could try disabling all other plugins to see if the issue is fixed and then enable them one by one and check each time to find out which one is responsible for this blank line.

  5. Jack
    Member
    Posted 1 year ago #

    Thank you :-)

  6. RavanH
    Member
    Plugin Author

    Posted 1 year ago #

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic