-
Hi Rank Math Support Team,
I am experiencing an XML parsing error on my sitemap generated by Rank Math. When I access https://hamershopping.com/sitemap_index.xml, I receive the following error:
pgsql
复制
编辑
error on line 3 at column 6: XML declaration allowed only at the start of the document
This indicates there is extra whitespace or invisible characters before the XML declaration.I have already tried the following troubleshooting steps without success:
Deactivated all plugins except Rank Math
Switched to the default WordPress theme (Twenty Twenty-Four)
Cleared all caches including server, CDN, and browser cache
Reinstalled Rank Math plugin
Checked my theme’s functions.php and other custom PHP files for BOM, extra whitespace, or unexpected output
Verified server does not inject ads or analytics scripts
Confirmed other XML feeds (like RSS) on my site work fine without errors
Despite these steps, the sitemap XML error persists.
Could you please assist me in identifying the cause or provide guidance on further troubleshooting?
Thank you very much for your support.
Best regards,
Vic
The ticket ‘Sitemap XML Error: “XML declaration allowed only at the start of the document’ is closed to new replies.