Sitemap error

#558984
  • Resolved Anonymous
    Rank Math free

    Hi there,

    I’ve been through the support articles, but couldn’t figure out how to fix this. I’m seeing this error on the sitemap page:

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

    the rest of the page is just blank.

    I’m using Astra theme if that’s any help.

    Thanks for any assistance! 🙂

Viewing 1 replies (of 1 total)
  • Hello,

    Thank you for contacting Rank Math and bringing your concern to our attention.

    This sitemap error usually indicates that there is some white space before the start of the XML codes. You can also look at the source code of the sitemap and see there is an extra blank line before the XML. This is caused by a blank line or space in your wp-config.php or functions.php file.

    If there is no such blank line in your wp-config.php or functions.php file, check for a plugin conflict. Please use this guide to check for the plugin conflict: https://rankmath.com/kb/check-plugin-conflicts/

    You can read more about this error here:
    https://rankmath.com/kb/fix-sitemap-issues/#xml-text-declaration

    Let me know how it goes.

    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 ‘Sitemap error’ is closed to new replies.