Hello,
I apologize for the issue you are facing with the pages sitemap generating a critical error. It sounds like you’ve already taken several troubleshooting steps, which is great. Here are a few additional suggestions that might help resolve the issue:
-
Check for Plugin Conflicts: Sometimes, other plugins can conflict with Rank Math. You can use the Health Check plugin to identify if there’s a conflict with another plugin or your theme.
-
Clear Cache: Ensure that any caching plugins you have are cleared and that the sitemap is excluded from caching. You can refer to this article on how to exclude sitemaps from caching.
-
Increase Links Per Sitemap: Navigate to Rank Math SEO → Sitemap Settings, increase the value of Links Per Sitemap by one, and save your settings. Then, flush permalinks again by going to Settings → Permalinks and clicking Save Changes.
-
Check for Custom Canonicals: If you have custom canonical URLs set for your pages, they may not appear in the sitemap. Ensure that you are not using custom canonicals that could be affecting the sitemap generation.
-
Review Error Logs: Check your server’s error logs for any specific messages related to the sitemap generation. This might give you more insight into what is causing the critical error.
If these steps do not resolve the issue, please reply to this ticket with your site URL so that a human agent from our support team can assist you further. Thank you for your patience!
Sources:
Rank Math Sitemap Issues and Their Fixes » Rank Math
Troubleshooting the “Couldn’t Fetch” Error in Google Search Console » Rank Math
Hello,
You must have received an email from WordPress with the details about the error. Please share it with us here so we can check.
If you haven’t received the email with the error code, you can follow this guide to enable debugging in WordPress
https://wordpress.org/support/article/debugging-in-wordpress/ or you can get in touch with your web host, and they will help you locate the log file.
Having an error log will help us determine what is causing the critical error.
Looking forward to helping you.
Hello,
I have updated the sensitive data as requested. Can you please check further?
Thank you.
Thanks, have added the error into the sensitive data section
Hello,
We might need to take a closer look at the settings. Please edit the first post on this ticket and include your WordPress & FTP logins in the designated Sensitive Data section.
Please do take a complete backup of your website before sharing the information with us.

It is completely secure and only our support staff has access to that section. If you want, you can use the below plugin to generate a temporary login URL to your website and share that with us instead:
https://wordpress.org/plugins/temporary-login-without-password/
You can use the above plugin in conjunction with the WP Security Audit Log to monitor what changes our staff might make on your website (if any):
https://wordpress.org/plugins/wp-security-audit-log/
We really look forward to helping 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.