Sitemap error: error on line 2 at column 84: Extra content at the end of the doc

#107855
  • Resolved abcde
    Rank Math pro

    The sitemap is not working on my newly installed WP site.

    First, the URL is in this odd format: domain/index.php/sitemap_index.xml (why is the index.php there?)

    And when I open the sitemap, it gives this error:

    This page contains the following errors:
    error on line 2 at column 84: Extra content at the end of the document
    Below is a rendering of the page up to the first error.

Viewing 9 replies - 16 through 24 (of 24 total)
  • This page (https://saez.law/wp-sitemap.xml) contains the following errors:
    error on line 2 at column 84: Extra content at the end of the document
    Below is a rendering of the page up to the first error.

    Hello, I have the same problem. I need help.

    Same problem here but on stories sitemap. Please advise!

    RS
    Rank Math free

    I was only getting the error on my product category pages. In Settings -> Titles & Meta -> Product categories I had enabled Category Archives Robots Meta and set Noindex there. My intent was to then individually set Index on the product categories I wanted to be in the sitemap.

    By doing the reverse and setting the global Product Category archives meta to Index and then setting the individual categories I wanted to avoid as noindex, the product sitemap started working again.

    I have no idea if this is a general solution. Some response from RankMath would be nice.

    still the same problem, and its been a week, NO RESOLUTION
    I thought RankMath is better than all in seo and yoast seo
    but this problem is holding me back from using RankMath SEO :((((((

    here’s the FIX for this issue 🙂

    XML Sitemaps Error on line 2 at column 84

    seems to be having this problem a lot

    Will you solve this problem?

    Hello,

    Thank you for contacting Rank Math and sorry for any inconvenience that might have been caused due to that.

    This ticket has been marked as resolved.

    If anyone is still facing this issue, please check the following:

    1. Check and make sure you have not set your global/pages/posts/categories robots meta as noindex in Rank math > Titles & Meta

    2. Make sure your individual pages/posts/categories are set to index

    If all the above is set, can you please follow these steps?
    3. Flush the Sitemap cache by following this video screencast:
    https://i.rankmath.com/pipRDp

    4. Exclude the Sitemap files of the Rank Math plugin in your caching plugin. The cache could be via a plugin or from the server. For plugins or Cloudflare, please follow this article:
    https://rankmath.com/kb/exclude-sitemaps-from-caching/

    If the issue still persists,please open individual tickets so we can look into this closely.

    Thank you.

Viewing 9 replies - 16 through 24 (of 24 total)

The ticket ‘Sitemap error: error on line 2 at column 84: Extra content at the end of the doc’ is closed to new replies.