Hello,
We apologize for the issue you are facing with your Rank Math-generated sitemap showing up as blank. This can indeed affect your website’s SEO performance, as sitemaps are essential for search engines to discover and index your pages effectively.
To troubleshoot this issue, please follow these steps:
-
Check the Source Code: First, determine if the sitemap is truly blank or if it shows a white page. You can check the source code of the sitemap page to see if there is any data present. If the source code is empty, it may indicate a conflict with another plugin or theme.
-
Use the Health Check Plugin: If the source code is empty, we recommend using the Health Check plugin to identify any conflicts with other plugins or themes that might be causing this issue.
-
Flush Sitemap Cache: If there is data in the source code but the sitemap still appears blank, try flushing the sitemaps cache and ensure that it is excluded from any caching plugins you might be using. You can find more information on how to do this here.
-
Check for Static Files: Another possibility is that there might be a static file named _sitemap_index.xml_ on your server. You should FTP into your server and remove any such file if it exists.
If you continue to experience issues after trying these steps, please reply to this ticket, and a human agent from the Rank Math Support team will assist you further.
Thank you for raising this concern!
Sources:
Rank Math Sitemap Issues and Their Fixes » Rank Math
It’s strange that the sitemap works correctly on one Google account where i handle my website but not on another, especially since the sitemap source code shows as blank when you check it. Now what to do
Hello,
Thank you for contacting us. We apologize for any inconvenience this issue may have caused.
Please follow the steps below for initial troubleshooting:
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 then try disabling the transient cache for the sitemap. This will make sure that your XML sitemap always reflects the latest changes on your site. Kindly add this code snippet to your site:
/**
* Filter if XML sitemap transient cache is enabled.
*
* @param boolean $unsigned Enable cache or not, defaults to true
*/
add_filter( 'rank_math/sitemap/enable_caching', '__return_false');
If you’re not sure how to add this code, you can follow this guide: https://rankmath.com/kb/wordpress-hooks-actions-filters/.
After you add the code, please clear any cache on your site or server and check your XML sitemap again. If you’re still facing issues with the sitemap, please let us know – we are happy to investigate further.
You can also go through this article on fixes to common sitemap issues: https://rankmath.com/kb/fix-sitemap-issues/
We look forward to hearing back from you.
Thanks.
I’ve added the code and cleared the cache on your site, but the issue persists. The sitemap is still coming up blank. However, i have added a debug plugin that shows
WordPress database error Table .wpb7_rank_math_analytics_gsc’ doesn’t exist
Error message: The cron event list could not be saved., Data:
schedule => false
args => (array)
Hello,
The error you reported has nothing to do with the sitemap. That error indicates that a database table related to the Analytics module is missing.
To correct that particular error you can follow the steps here: https://rankmath.com/kb/recreate-missing-database-tables/
As for the sitemap, please share the URL of the sitemap that is coming up empty so we can check and advise further.
Thank you.
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.