Page Sitemap Not Working

#854521
  • Resolved Sarkis
    Rank Math free

    Hello,

    I recently signed up for a new RankMath account and installed the plugin in our website.

    But, the page sitemap doesn’t seem to be working. Every time I try to access the file, I get an error message that reads:

    “There has been a critical error on this website.”

    Screenshot attached: https://ibb.co/z8Tv4Bf

    How can we get the sitemap fixed?

    Thank you for your help.

    Sarkis

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

    We apologize for the issue you are facing with the page sitemap. The error message you are encountering, "There has been a critical error on this website," typically indicates a conflict with another plugin or theme.

    Here are some steps you can take to troubleshoot and potentially resolve the issue:

    1. Check for Plugin Conflicts: Use the Health Check plugin to identify if there is a conflict with another plugin.

    2. Clear Cache: If you are using any caching plugins, make sure to clear the cache after making changes.

    3. Check for Static Files: Ensure that there are no static files with the same name as your sitemap file (_sitemapindex.xml) in your server. You can check this via FTP.

    4. Add Filter to Theme’s rank-math.php File: If the above solutions don’t work, you can add a filter to your theme’s rank-math.php file. Here’s how:

      • Navigate to WordPress Dashboard → Tools → Theme File Editor (Block Editor) or WordPress Dashboard → Appearance → Theme File Editor (Classic Editor).
      • Choose the rank-math.php file from the right sidebar and add the following filter:
        add_filter( 'rank_math/sitemap/enable_caching', '__return_false');
      • Click on the Update button to save your changes.
    5. Validate Your Sitemap: After making these changes, validate your sitemap using the Validate XML Sitemap tool to ensure it is correctly configured.

    If you continue to experience issues after trying these steps, please reply to this ticket, and a human agent from the Rank Math Support team will assist you further.

    Thank you for raising this concern!

    Sources:
    Rank Math Sitemap Issues and Their Fixes » Rank Math
    Troubleshooting the “Couldn’t Fetch” Error in Google Search Console » Rank Math
    How to Fix "Incorrect HTTP Header Content-Type" Error in Sitemaps » Rank Math

    Hello,

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

    We checked your page sitemap and we can see it is working properly without any issues:

    If you’re still facing the error, please try to clear your browser cache and check again.

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

The ticket ‘Page Sitemap Not Working’ is closed to new replies.