• This is not a conflict with other plugins, as mentioned here. This is a “Easy Table of Contents” issue. It causes my WooCommerce checkout to crash:

    PHP message: PHP Fatal error: Allowed memory size of 536870912 bytes exhausted (tried to allocate 2621440 bytes)

    This only happens with ETC active. Tested with both with the Storefront theme as well as Twenty Twenty-Five.

Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Support Akshay A

    (@akshaycode1)

    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.

    Thread Starter Marco Almeida | Webdados

    (@webdados)

    No TOC on product descriptions. Also no automatic placing of TOC in any CPT.

    Thread Starter Marco Almeida | Webdados

    (@webdados)

    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.

    Plugin Support Akshay A

    (@akshaycode1)

    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.

    Thread Starter Marco Almeida | Webdados

    (@webdados)

    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

    Thread Starter Marco Almeida | Webdados

    (@webdados)

    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 );
    Plugin Support Akshay A

    (@akshaycode1)

    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.

    Thread Starter Marco Almeida | Webdados

    (@webdados)

    My “solution” is not really a solution. It’s a band-aid.

    Thread Starter Marco Almeida | Webdados

    (@webdados)

    Any developments on a fix?

Viewing 9 replies - 1 through 9 (of 9 total)

The topic ‘WooCommerce checkout crashes with this plugin active’ is closed to new replies.