WordPress.org

Ready to get started?Download WordPress

Forums

WordPress SEO by Yoast
XML Sitemap Broken v (3 posts)

  1. pixrite
    Member
    Posted 1 year ago #

    WordPress version: 3.4.2
    WordPress SEO version: 1.2.8.7

    --------------------------
    I did this:
    Checked the box to enable XML sitemap functionality and then pushed the "You can find your XML Sitemap here:" button.

    --------------------------
    I expected the plugin to do this:
    Show me my XML site map

    --------------------------
    Instead it did this:
    This page contains the following errors:

    error on line 5 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.

    http://wordpress.org/extend/plugins/wordpress-seo/

  2. pmfox
    Member
    Posted 1 year ago #

    I'm receiving a similar error. Mine reads the following with nothing after the last line:
    ---------------
    This page contains the following errors:

    error on line 7 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.

  3. Dasha1000
    Member
    Posted 1 year ago #

    I'm getting the same error message when simply accessing the rss feed. Sitemaps, Atom and comments feeds are fine. I've replaced the config file removed the spaces from it and from the rss.php, wp-rss.php and feed-rss.php files. Still getting the error.

    The problem first appeared after installing Better WP Security. Then the error message was regarding line 3; now it's line 5. I was able to revise/replace the config file and that resolved the line 3 problem. But then the site's server went down and I had to restore the site to an earlier version. Now the config fix isn't working for the line 5 problem.

    Any advice? I've since deleted Better WP Security and disable Wp Super Cache. I've also deactivated/reactivated the remaining plugins. Further I have removed the white space from rr.php, feedrss.php, feedrss2.php, feed.php and unctions.php.

    Here's my site: bit.ly/2OZnrw

Topic Closed

This topic has been closed to new replies.