Sitemap Error

#842745
  • Resolved Josh Kohn
    Rank Math free

    Hello,
    We have an error on one of our websites with the sitemap:
    “xml parsing error xml or text declaration not at start of entity wordpress”

    We have changed the theme, deactivated the plugins and reviewed the wp-config file. The sitemap is excluded from caching. We also tried adding to the htaccess file, and that did not help.
    At the point, we created a manual sitemap.

    Is there anything that we haven’t mentioned that could help to resolve the issue?
    Thanks.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hello,

    We apologize for the issue you are facing with the sitemap. Thank you for providing detailed information about the steps you’ve already taken.

    The error message "XML or text declaration not at the start of entity" typically indicates that there are unwanted spaces or blank lines before the XML declaration in your sitemap file. Here are a few additional steps you can take to troubleshoot this issue:

    1. Check for Blank Spaces: Ensure there are no blank lines or spaces before the `

    Sources:
    Rank Math Sitemap Issues and Their Fixes » Rank Math
    Why the Sitemap_Index.xml is Throwing a 404 Error » Rank Math

    Hello,

    Thank you for contacting us and sorry for any inconvenience that this issue might have caused.

    Please follow this guide to apply a whitespace fix to your site: https://wejn.org/stuff/wejnswpwhitespacefix.php.html

    Let us know how this goes. Also, let us know if you have further questions or concerns.

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

The ticket ‘Sitemap Error’ is closed to new replies.