Hi,
Could you please confirm whether you have recently added a TOC to any of your WooCommerce product descriptions using the shortcode [ez-toc]? If yes, please remove the [ez-toc] shortcode from the product description and check again.
No TOC on product descriptions. Also no automatic placing of TOC in any CPT.
I’ve tried it on clean install just with TOC, WooCommerce and a default theme and it does not crash, but on my production website, I’ve disabled everything but TOC and WooCommerce, and also used a default theme, and it keeps crashing.
Hi,
Thanks for the update. Since the issue doesn’t occur on a clean install with the same setup, it seems to be specific to your production site. It’s likely related to certain content or configuration on the checkout page that’s triggering high memory usage when the plugin is active.
It will require some debugging on your end and without closer inspection it’s difficult to pinpoint the exact cause.
I found the problem.
I used the [ez-toc] on the page set as the Terms and Conditions page for WooCommerce and it created a loop in which the checkout page would rendered over and over again on this area: https://snipboard.io/7QLlkw.jpg
This happens with the classic checkout only and I could easily replicate it on a clean install
A quick fix for anyone using the shortcode on the WooCommerce Terms and Conditions page, and the classic checkout, is to remove that content from the checkout and just leave the checkbox with the link top open the Terms and Conditions on a new tab (which is what happens on the blocks checkout anyway).
remove_action( 'woocommerce_checkout_terms_and_conditions', 'wc_terms_and_conditions_page_content', 30 );
Hi,
Thanks for your findings and solution. We will look into it and ensure compatibility for other users as well. Here’s the GitHub ticket we’ve created for this.
My “solution” is not really a solution. It’s a band-aid.
Any developments on a fix?