-
Hello!
Sitemap file displays empty
ULR : https://mahmoudshams.com/sitemap_index.xml
I have tried all the solutions in this article “https://rankmath.com/kb/fix-sitemap-issues/”, but to no avail
Please help me to solve this problem
-
Hello,
Thank you for contacting us and we regret the inconvenience caused.
Please follow the below steps and see if that fixes the issue:
1. Flush the Sitemap cache by following this video screencast:
https://i.rankmath.com/pipRDp2. Exclude the Sitemap files of the Rank Math plugin in your caching plugin. The cache could be via a plugin or from the server. For plugins or Cloudflare, please follow this article:
https://rankmath.com/kb/exclude-sitemaps-from-caching/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.
Please take a look
Hello,
I went ahead and checked your sitemap in my browser and I can see that there’s a code/script from litespeed injected in your sitemap page which cause the issue:
The issue you are facing is a known issue with the LiteSpeed plugin. Please follow this thread instead to resolve this: https://wordpress.org/support/topic/litespeed-break-rankmath-sitemap/
Let us know how that goes. Looking forward to your update.
Thanks.
Hello,
I tried the above solution but to no avail
what should I do?Hello,
Could you please add the FTP login details in the sensitive data section so we can check further?
We look forward to helping you.
Hello!
The login information on the site already exists
You can go to the site and take a lookHello,
You have only added the WordPress login details, to edit the wp-config file, we would need the FTP logins.
You can add this code in your wp-config.php file:
if (strpos($_SERVER['REQUEST_URI'], "sitemap") !== FALSE) { define( 'LITESPEED_DISABLE_ALL', true ); }
You can place the code after this line in your
wp-config.php
file:
Once done, clear your website and browser’s cache and let us know if the issue still persists.
I hope that helps.
Thank you.
Hello,
I have updated the sensitive data as requested. Can you please check further?
Thank you.
Unfortunately, this did not solve the problem
*I added the FTP logins data
I hope this helps to solve the problemHello,
I have updated the sensitive data as requested. Can you please check further?
Thank you.
Hello,
It seems that you have also removed the WordPress credentials in the sensitive data section. Could you please add it again and retain the FTP credentials as well?
Looking forward to helping you.
Thank you.
Hello,
I have updated the sensitive data as requested. Can you please check further?
Thank you.
You have added the required information
Thanks for followingHello,
Thanks for sharing the sensitive data.
I have investigated your
wp-config.php
and I was able to debug the issue.Now, the sitemap of your site is working fine – https://mahmoudshams.com/sitemap_index.xml
Please have a look at this screenshot –
If you want to understand the cause behind this issue, please have a look at the below screenshot. It shows the code that you added to the
wp-config.php
–The below screenshot shows how the code was supposed to be added –
If you notice carefully, there is a difference in the format of the quotes that were added. Your code had circular quotes and that was the cause of the issue. The ideal way is to use the default quotes.
Hope this helps.
Looking forward to helping you. Thank you.
You must be logged in to reply to this ticket.