XML sitemap error

#364034
  • Resolved Amy Heath
    Rank Math free

    This page contains the following errors:
    error on line 1 at column 10: XML declaration allowed only at the start of the document
    Below is a rendering of the page up to the first error.

    Hello, my client’s website is [Moved to sensitive data section] – I have completed the setup for the sitemap previously but Im getting the error above.
    [Moved to sensitive data section]

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

    Hello,

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

    The error on your sitemap page suggests there must be some white spaces before the XML Sitemap’s source code.

    Please follow this troubleshooting guide to fix that issue:
    https://rankmath.com/kb/fix-sitemap-issues/#xml-text-declaration

    I hope this helps.

    Looking forward to helping you.

    Hello

    Thanks for the advice – I followed the steps and it seems that Rankmath is conflicting with the website’s theme – does this mean I cannot use Rankmath on the website?

    Hello,

    Your theme somehow added a white space causing issues to our sitemap. Please contact your theme author as they are in the best position to locate that white space, remove it and resolve the issue.

    Let us know how that goes. Looking forward to helping you on this one.

    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 3 replies - 1 through 3 (of 3 total)

The ticket ‘XML sitemap error’ is closed to new replies.