• Resolved ritut

    (@ritut)


    Hi,

    Yoast plugin doesn`t creates xml sitemap to my page. When I click on “See the XML sitemap” I get this error message: “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.”.
    I tried to solve this problem with saving the permalinks, but nothing changed. Can you help me, please?

    Thank you very much in advance!

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

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hi @ritut,

    You mentioned you’re having an issue with your sitemap where it returns the error: error on line 2 at column 6: XML declaration allowed only at the start of the document.

    This error typically happens when a plugin or theme function incorrectly adds empty whitespace at the beginning of the sitemap. The Yoast SEO plugin does not cause this issue.

    However, the cause most often is an empty line at the end of the functions.php file.

    To troubleshooting the issue, please follow the steps indicated in this guide.

    If there is no empty line in this file, we highly recommend running a conflict check to identify what outputs the empty white spaces. If you are not familiar with How to perform a conflict check, we have useful documentation here to guide you in the process.

    Finally, you may also need to clear your cache from your plugins/theme/CDN, such as Cloudflare/server caching, etc. If you are not sure how to clear the cache, please speak with your developers or contact your host provider.

    Once you have identified whether your theme or a plugin causes the issue, please contact the developers of the theme or plugin to find and remove the whitespace.

    I hope it helps and please let us know if some other question comes up, and we can be of further assistance.

    Plugin Support devnihil

    (@devnihil)

    We are going ahead and marking this issue as resolved due to inactivity. If you require any further assistance please create a new issue.

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