RankMath sitemap.xml issue

#934482
Viewing 1 replies (of 1 total)
  • Hello,

    Thank you for contacting Rank Math and bringing your concern to our attention. I’m sorry for any inconvenience this issue may have caused you.

    This error means that there is some extra content or whitespace before the XML declaration in your sitemap. This can make your sitemap invalid and unreadable by search engines.

    The most common reason for this error is a whitespace in your theme code, such as a blank line or space in your wp-config.php file or your theme’s functions.php file. This can happen when you edit these files manually or use a plugin or theme that modifies them.

    To fix this error, you need to find and remove the whitespace from your theme code.

    You can follow this guide to troubleshoot and resolve this issue: https://rankmath.com/kb/fix-sitemap-issues/#xml-text-declaration

    Looking forward to helping you.

Viewing 1 replies (of 1 total)

You must be logged in to reply to this ticket.