Sitemap not loading

#446945
  • Resolved Joshua Larson
    Rank Math free

    Hi There,

    We previously reached out about our sitemap not loading and were provided the “whitespace fix” PHP file. This worked at the time; however, the whitespace fix provided is no longer working, and our sitemap is not loading. Here’s a URL showing the error (URL added to sensitive data section)

    When we add the whitespace fix, the above sitemap URL loads a blank white page.

    We need a permanent solution to this error. Should we start looking for a sitemap solution outside of Rank Math?

    Thank you for your guidance.

Viewing 7 replies - 1 through 7 (of 7 total)
  • Hello,

    Thank you for contacting Rank Math support, and sorry for the unexpected delays and any inconvenience that might have been caused due to that.

    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.

    Anas
    Rank Math business

    Hello,

    I have added include("wejnswpwhitespacefix.php"); in the index.php file and that fixed the issue.

    The issue is being caused because one of your site’s files has whitespace in it and it is affecting the sitemap of our plugin. To fix this, you will have to check all the files and figure out which file has that space and remove it. The whitespacefix is an easy way to fix this but it has to be done every time there is a WordPress core update.

    If you don’t want to do this, you can disable our sitemap module and use some other plugin to generate the sitemap.

    Looking forward to helping you.

    Hi Anas,

    Thanks for your assistance. I can see the sitemap now loading as expected. Very good.

    I have two follow-up questions:

    1. What is the best way to globally search for whitespace causing Rank Math to break? Is this whitespace only at the beginning/end of a file, or also whitespace within the middle of a file?
    2. Do you have recommendations for other sitemap plugins that your other customers are using successfully?

    Hello,

    I am glad that your issue has been addressed.

    As for your follow-up questions:

    1. This may require you to individually open the file and manually look for the white-space. This can be in the beginning or in between the file as long as it’s outside the <?php ... ?> scope. Here’s our detailed info about it: https://rankmath.com/kb/fix-sitemap-issues/#xml-text-declaration

    2. You may try this plugin as this is also commonly used: https://wordpress.org/plugins/google-sitemap-generator/

    If you wish to make use of this sitemap instead of ours, you can go ahead and disable the Sitemap module under Rank Math > Dashboard > Modules.

    Hope that helps and please do not hesitate to let us know if you need our assistance with anything else.

    Thank you! Have a wonderful day.

    Anas
    Rank Math business

    Hello,

    If you have any questions in the future, please feel free to create a new forum topic, and it will be our pleasure to assist you again.

    Thank you.

Viewing 7 replies - 1 through 7 (of 7 total)

The ticket ‘Sitemap not loading’ is closed to new replies.