Support » Plugin: Yoast SEO » Sitemap error

  • Resolved jt2g

    (@jt2g)


    The sitemap https://firefly.online/sitemap_index.xml generated by Yoast contains the following error:

    error on line 3 at column 6: XML declaration allowed only at the start of the document

    We found out in the view-source that the sitemap that Yoast creates contains 2 blank lines at the beginning of the sitemap. Because of this Google the sitemap isn’t recognized and Google can’t read it. How can we change this? We can’t delete the first two lines, which is the solution to the problem.

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • I have the same problem with https://foecity.ru/build-sitemap6.xml

    Plugin Support Maybellyne

    (@maybellyne)

    Hello @jt2g,

    Thanks for reaching out regarding your sitemap. I am sorry to hear about that XML declaration error. An empty whitespace or a blank line appears due to a conflict with another plugin or your theme. Usually, there is an empty space or a blank line before or after the closing PHP opening or closing tag, which shouldn’t be there.

    You can narrow down the exact source of conflict by performing a conflict check. Once you have identified whether your theme or a plugin causes the issue, please contact the developers of that theme or plugin for assistance in finding and removing the white space.

    @screamson Yours is a different issue; your sitemap does not show that error. Please open a new request/topic. That way it’s easier to track issues and provide assistance. Thanks!

    I marked this thread as resolved due to a lack of activity by the original poster. The original poster is always welcome to re-open this topic.

    If you are not the original poster but have a similar issue, please read this post before opening a new request.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Sitemap error’ is closed to new replies.