I am trying to: Generate sitemaps for my site. There is an ongoing issue with white space in the sitemaps which is causing errors. I have now gone through their entire help process twice and also disabled all cache functions. On closer inspection is seems the Toolset plugin is potentially causing the whitespace and errors.
Link to a page where the issue can be seen: hidden link
I expected to see: A sitemap.
Instead, I got: The error above.
I've also found the same issue here: hidden link
Hello,
Since it is a compatibility issue with other plugins(RankMath), please provide a copy of your website in below private message box, you can put the package files in your own google drive disk, share the link only, I need to test and debug it in my localhost without breaking your website, thanks
Thanks for the details, I am downloading the files, will update here if find anything
The RankMath Sitemap feature does not compatible with Toolset image block, you can try these:
1) Edit those "Tools for Change" posts one by one, in the post content, find and remove Toolset image block, replace them with WordPress built-in image block, and choose the source to featured image, see my screenshot image-block-source
2) Test it in frontend, it works fine in my localhost with your duplicator package, see my screenshot sitemap.jpg
Hi Luo, yes, that seems to have fixed the problem. I has involved me also removing all ToolSet Views from pages too, as these were also causing problems.
Will this bug be fixed in a future release of ToolSet? RankMath is a very popular plugin and it seems strange that they can't work together.
Thank you for your help in looking into this,
James
Is there any action hook triggered before load RankMath sitemaps?
I have searched google, but can not find any document, can you check it with RankMath support?
I will ask them for information, and let you know. Is it possible to raise this as a bug anyway? So it can be monitored?
Thanks,
James
Hi ,
This is the response I got from RankMath. Would you be able to give me more technical information I can share with them so they can understand the issue better? Thanks.
-----------
Hello,
Thank you for contacting us for help with a conflict between Rank Math and Toolset that is causing an issue with your sitemap.
Please may you share details of the issue you are facing with your sitemap so we can better understand it. We do not have code snippets for your specific requirements, but you can refer to our knowledge base article for filters related to sitemaps: hidden link
You can also share your login details by adding them to the designated sensitive data area.
Hope that helps. Please let us know if you have questions.
Hi, is there an update on this? Are you able to help? Can you let me know if this bug will be fixed?
Thank you
James
It is a compatibility issue, we can not fix all such kind of issue, and there is a workaround, you can use their filter hook "rank_math/sitemap/content_before_parse_html_images" to remove Toolset hooks, for example, add below codes in your theme file functions.php:
add_filter( 'rank_math/sitemap/content_before_parse_html_images', function( $content, $post_id ) {
// Process content..
remove_all_filters('the_content');
return $content;
}, 10, 2 );