Hello,
Thank you for contacting Rank Math, and sorry for any inconvenience caused.
This error suggests there must be some white-spaces before the XML Sitemap’s source code.
Please follow this troubleshooting guide to fix that issue:
https://rankmath.com/kb/fix-sitemap-issues/#xml-text-declaration
Hope that helps.
Looking forward to helping you.
Hello Anas,
Thank You for such a fast response! Is that a whitespace that can trigger that error?
https://share.getcloudapp.com/llu9Ovk8
Kind Regards,
Inga
Hello,
Yes, please remove the blank lines from your wp-config.php and functions.php
If the issue persists, it would seem like a conflict with a theme or plugin.
Please update all the themes and plugins and follow this troubleshooting guide:
https://rankmath.com/kb/check-plugin-conflicts/
I hope this helps. Looking forward to helping you.
Hello Anas,
I’ve deleted all the blank lines from wp-congig.php and functions.php and nothing changed. I’ve followed your troubleshooting guide with health check plugin and unfortunately with:
1/ rankmath enabled
2/ woocommerce enabled (problem occurs with product sitemap)
3/ twenty twenty theme enabled
4/ and all the other plugins disabled
there is still the same error:(
What should I do next?
Kind Regards,
Inga
Hello,
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.
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,
Thanks for your reply!
In addition to what my colleague suggested, upon visiting your website I found that you have disabled Rank Math and activated the Yoast SEO plugin. If you ever thought of returning to Rank Math, it will be our pleasure to assist you.
Thanks!
Hello,
OMG! I am amazed at how quickly support responds to requests!!!
That is strange – I have not enabled Yoast. I was using Yoast for several years and two weeks ago I’ve decided to switch to Rankmath. I have Yoast plugin disabled, but I still keep it just in case (i have all data there).
I have updated credencials for ftp and wp login.
Thank You very much!
Kind Regards,
Inga
Hello,
Thanks for sharing the details.
You had set the links per sitemap to 10000 and that’s why the product sitemap was throwing an error and this line was being added at the beginning of it:
Alter HTML was skipped because the HTML is too big to process! (limit is set to 600000 bytes)
I reduced the links per sitemap to 200 and now your product sitemap is working fine.
Please check and confirm.
We are looking forward to hearing from you.
Hello,
Thank You very much for your immediate help!
So Rankmath cannot generate sitemap with more than 200 products? I have almost 4000 products in my woocommerce and I just have to add 5000 more!
And of course I want googlbot to index all of them, so is there any solution to make rankmath generate more than 200 links?
Thank You once more for Your amazing support!
Kind Regards,
Inga
Hello again,
I have read other support tickets and now I understand that Rankmath is generating several xml files with sitemaps:) I guess all the links to all the products will be covered there?
Thank You once more for your help! Your support is just amazing! This is the best incentive for Rankmath pro version!
Kind Regards,
Inga
Hello,
Rank Math can handle more than 200 links in a sitemap. The issue was the HTML limit set by your host.
And yes, Rank Math will create multiple sitemaps to index all your products.
Hope this helps. Let us know if you need any further assistance.
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.