[64] XML declaration allowed only at the start of the document on line 2

#170404
  • Resolved George Drew
    Rank Math free

    Greetings, I’m not exactly sure what is happening with our sitemaps and RankMath, however, I’m receiving the error on all of our sitemaps when verifying using the https://www.xml-sitemaps.com verification tool; yet somehow Google Search Console reports the sitemaps have been processed successfully.

    https://kodawariyoga.com/page-sitemap.xml

    Any assistance with this would be appreciated.

    P.S. Thanks for such an amazing tool!

Viewing 1 replies (of 1 total)
  • Anas
    Rank Math business

    Hello,

    Thank you for contacting Rank Math, and sorry for any inconvenience caused.

    There must be some white-spaces before the XML Sitemap’s source code.

    This might be added by a blank line/space in your wp-config.php file or your theme’s functions.php file. If there is no such blank space in your wp-config.php or functions.php file, check for a plugin conflict using the Health Check plugin.

    Also, make sure your cache is disabled as it is highly likely that the cache is interfering with the working of Sitemap functionality of Rank Math.

    I hope this helps. Looking forward to helping you.

    Hello,

    Since we did not hear back from you for 15 days, we are assuming that you found the solution. We are closing this support ticket.

    If you still need assistance or any other help, please feel free to open a new support ticket, and we will be more than happy to assist.

    Thank you.

Viewing 1 replies (of 1 total)

The ticket ‘[64] XML declaration allowed only at the start of the document on line 2’ is closed to new replies.