Yoast SEO
[Plugin: WordPress SEO by Yoast] Sitemap Error (4 posts)

  1. Cultivate
    Posted 5 years ago #

    Im getting the following error on the sitemap being automatically generated:

    This page contains the following errors:

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

    Heres the page being generated http://www.communitycentres.org.uk/sitemap_index.xml

    Im using the latest version (0.4.2) of the the plugin.
    Any ideas?

  2. Bryan Hoffman
    Posted 4 years ago #

    Cultivate, I see you've repaired your WordPress SEO sitemap. Can you post your fix?

    Was it due to a blank line somewhere in your theme?

    ~ Bryan

  3. Cultivate
    Posted 4 years ago #

    Yes i should've returned and posted the solution.

    It turned out to be a couple of extra returns in my functions file that was creating whitespace in the theme.

    Hope that helps!

  4. Bryan Hoffman
    Posted 4 years ago #

    That's what I assumed, I just wish that was my issue... I'm having trouble with the W3 Total Cache and blank line errors on both the sitemaps and the feeds.

    Thanks for the update!

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Yoast SEO
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic