Support » Plugin: Yoast SEO » Error in Sitemaps.xml

  • Resolved sytou34

    (@midi-vin)


    Hi,
    I use Yoast 12.1
    I have this error when i click to the link https://www.acobiom.com/sitemap_index.xml
    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.

    This website is in two languages : fr and en
    I use Polylang extension.

    Thank for your help.

Viewing 3 replies - 1 through 3 (of 3 total)
  • sytou34

    (@midi-vin)

    I forget to say something.
    I don’t have any file sitemap_index.xml at the root of the website.

    Plugin Support jerparx

    (@jerparx)

    Hi @midi-vin

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

    Also, Yoast SEO generates the XML Sitemap on the fly. This means there won’t be any physical sitemap located in your server root directory.

    Plugin Support amboutwe

    (@amboutwe)

    This thread has been marked as resolved due to lack of activity.

    You’re always welcome to re-open this topic. Please read this post before opening a new request.

    Thanks for understanding!

Viewing 3 replies - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.