• trinidadcitra

    (@trinidadcitra)


    Hi there,

    I am new to WP and, I see this question has been asked before, but I don’t know how to get to the place to solve it.

    I have just set my sitemap in Google Search Console and when I go to see it, it gives me: “error on line 2 at column 6: XML declaration allowed only at the start of the document”

    But I don’t know where to delete those lines.

    Many thanks,

    Trinidad

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

Viewing 4 replies - 1 through 4 (of 4 total)
  • Moderator Steven Stern (sterndata)

    (@sterndata)

    Volunteer Forum Moderator

    What plugins are you using to generate a sitemap? You have one at example.com/sitemap.xml and one at example.com/sitemap_index.xml

    Thread Starter trinidadcitra

    (@trinidadcitra)

    I am using Yoast and they only offer technical support if you have a premium account (which I don’t have).

    I tried both sitemap extensions and it still says the same:

    “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.”

    Moderator Steven Stern (sterndata)

    (@sterndata)

    Volunteer Forum Moderator

    I recommend asking at https://ww.wp.xz.cn/support/plugin/wordpress-seo/#new-post so the plugin’s developers and support community can help you with this.

    Thread Starter trinidadcitra

    (@trinidadcitra)

    Will do, thanks

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Error when setting sitemap’ is closed to new replies.