Skip Navigation

[Resolved] Plugin is interfering with RankMath Sitemap generation

This support ticket is created 2 years, 8 months ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Hong_Kong (GMT+08:00)

This topic contains 11 replies, has 2 voices.

Last updated by Luo Yang 2 years, 7 months ago.

Assisted by: Luo Yang.

Author
Posts
#2475481

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.

#2475483

I've also found the same issue here: hidden link

#2475925

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

#2475961
#2477393

Thanks for the details, I am downloading the files, will update here if find anything

#2477417
sitemap.jpg
image-block-source.jpg

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

#2477545

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

#2477969

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?

#2478089

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

#2478629

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.

#2482451

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

#2486905

Hello?!?!?!

#2487553

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 );