-
Hi, I have this problem, Critical error on Sitemap.xml, Please help me to fix it
-
Hello,
Thank you for contacting Rank Math and bringing your concern to our attention. I’m sorry for any inconvenience this issue may have caused you.
From your other ticket, it seems that the issue was resolved upon increasing the memory of your site. Could you please confirm if this is the same site?
For initial troubleshooting, please make sure that your sitemap is not getting cached. Please follow these steps:
1. Ensure you’re using the latest version of your plugins/theme including the Rank Math plugin.
2. Flush the Sitemap cache by following this video screencast:
https://i.rankmath.com/xXXhDt3. Exclude the Sitemap files of the Rank Math plugin in your caching plugin. The cache could be via a plugin or from the server:
https://rankmath.com/kb/exclude-sitemaps-from-caching/Let us know how this goes.
Thank you.
Hi, about my previous ticket that was another site with another Server
1. Am using the latest Version of the Plugin
2. Followed Step 2 but could not fix the problem
3. Am using w3 Total cache when I try to add this rule:
sitemap?\.xml? [a-z0-9_\-]*sitemap[a-z0-9_\-]*\xml|xsl)? ([az0-9_\-]*?)sitemap([a-z0-9_\-]*)?.xml
Am getting Error
"Contains invalid regexp [a-z0-9_\-]*sitemap[a-z0-9_\-]*\xml|xsl)?"
so I can’t saveHello,
Can you please share the error log with us?
Having an error log will help us determine what is causing the critical error on your website.
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, they will help you locate the log file.We really look forward to helping you.
Hello,
I have updated the sensitive data as requested. Can you please check further?
Thank you.
Hello,
The error seems to be pointing to your theme. Have you tried checking this with your theme provider?
Assuming you are using the latest version of all the plugins and the themes (please update if not yet), it would seem like a conflict with one of the plugins or the theme you are using.
To determine that, please follow this troubleshooting guide:
https://rankmath.com/kb/check-plugin-conflicts/Here is a video you can follow as well: https://www.youtube.com/watch?v=FcIWRhcUP2c
Only the site admin would know and your users won’t be affected by this troubleshooting.
Let us know how that goes. Looking forward to helping you on this one.
Hi, I tested PLugin and theme conflict one by one.. The error did not appear.. I don know why
Hello,
Can you please set the links per sitemap to 100 and see if that fixes the issue?
Navigate to Rank Math > Sitemap settings > General > Links per sitemap.
If the issue persists, 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,
I have updated the sensitive data as requested. Can you please check further?
Thank you.
Hi, I updated my Logins Access in Sensitive Data section. Please check
Hello,
The issue on the first website is caused by the lack of memory to generate all the data for the sitemap. You need to increase the server resources because you have a lot of data that needs to be added to the sitemap.
This is the error message that gets triggered:
PHP Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 20480 bytes)
On the second website, we could not debug the issue because the login credentials are very limited and we couldn’t enter the admin dashboard to see the Rank Math settings.
Don’t hesitate to get in touch if you have any other questions.
Ooops Sorry for the second website.. I forget to update user role, I updated it now Please Try again with the same login details
About the first Website.. I increased Memory limit to 512M and I think it solved it.. Sitemap Loaded..
Same to Second Website it loading well now.. Thank you.. But you can still check if there will be any conflict
What are requirements for Rankmath to function well? I ran in VPS.. I can extend things I think
Hello,
I checked the sitemap, it is not working and returning a 504 error.
Also, the backend of your website is slow.
Can you please increase the memory limit on your website and see if that fixes the issue?
We recommend the following values, but these mostly depend on the number of posts on the website:
PHP Memory Limit: 512M Max input time: 150 PHP time limit: 120 PHP max input variables: 1000
Hope this helps.
Thank you.
Hi Increased the values
PHP Memory Limit: 512M Max input time: 150 before was 60 PHP time limit: 120 PHP max input variables: 10000 set by default in my PHP settings
Thank you.. Can you check again
Hello,
I checked the sitemap, it is working fine now.
I have also checked the sitemap settings, and everything is configured correctly.
If you face this issue again, please let us know.
We are here to assist you.
Thank you, I see they are all Working fine now
You must be logged in to reply to this ticket.