The Sitemap is Showing a Blank or White Page

#318696
Viewing 15 replies - 1 through 15 (of 17 total)
  • Prabhat
    Rank Math agency

    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/pipRDp

    2. 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.
    Sensitive Data Section

    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:

    litespeed

    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?

    Anas
    Rank Math business

    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 look

    Anas
    Rank Math business

    Hello,

    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:
    edit

    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 problem

    Hello,

    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 following

    Hello,

    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 – Sitemap Working Fine

    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

    Sitemap Quotes

    The below screenshot shows how the code was supposed to be added –

    Correct Code

    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.

Viewing 15 replies - 1 through 15 (of 17 total)

You must be logged in to reply to this ticket.