XML error in the site map

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

    Thanks for contacting us, and sorry for any inconvenience that might have been caused due to that.

    It seems the images in your sitemap containing some invalid characters at the end of the image URL that causing the issue. Such as &nocache=1

    For initial troubleshooting, kindly apply the following filter code to your site.

    add_filter( 'rank_math/sitemap/enable_caching', '__return_false');
    

    Here’s how you can add filter/hook to your WordPress site:
    https://rankmath.com/kb/wordpress-hooks-actions-filters/

    If the issue persists, disable the option Images in sitemap from sitemap settings temporarily to see if your sitemap is working on not. If it’s working, then make sure your images are not adding the &nocache=1 at the end of the URL.

    Let us know how it goes. Looking forward to helping you.

    Thank 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 ‘XML error in the site map’ is closed to new replies.