I have also tried trouble shooting mode of the health check plugin.
I have also flushed the perma link.
Hello,
Thank you for contacting us and sorry for any inconvenience that might have been caused due to that.
It seems that you are using LiteSpeed and there’s currently a bug in that plugin that prevents our sitemaps from loading.
We would recommend adding the following code to your functions.php
file to prevent this situation:
if (strpos($_SERVER['REQUEST_URI'], "sitemap") !== FALSE) {
define( 'LITESPEED_DISABLE_ALL', true );
}
Hope this helps solve your issues.
Don’t hesitate to get in touch if you have any other questions.
Where should I add that particular line?
I have added it right after
<?php
but the situation remains the same.
Hello,
Please flush again the Sitemap cache by following this video screencast:
https://i.rankmath.com/xXXhDt
If the issue still 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.
Thank you.
Hello,
I have updated the sensitive data as requested. Can you please check further?
Thank you.
Hello,
The FTP details you have provided are insufficient for us to check your wp-config file.
However, if you have already added the code right after the <?php
line, I would recommend getting in touch with Litespeed Cache support for further investigation about this issue.
Let us know how this goes.
Thank you.
I am also having the same problem with an empty sitemap.
I have a dedicated server running LiteSpeed Enterprise using the LiteSpeed Cache plugin.
Hello @senator94
The issue you are facing is a known issue with the LiteSpeed plugin. Please follow this thread to resolve this or refer to the code my colleague recommended: https://wordpress.org/support/topic/litespeed-break-rankmath-sitemap/
Let us know how that goes. Looking forward to your update.
Thanks.
Hello,
I tried checking your sitemap and it seems to be working now. Kindly check my screenshot here:
Please clear your browser cache and check if the issue persists from your end.
Looking forward to helping you with this one.
LiteSpeed is fixed with the latest DEV.
I submitted another ticket #322678 with another issue. Please help
Hello @Senator,
We have already replied to the ticket you have created. Please check your ticket.
Thanks.
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.