• I am working on a staging copy of an ecommerce site containing products with many variations. I discovered the following issue after I upgaraded Woocommerce from 2.2.10 to 2.4.6. I have since upgraded to 2.5.2 and am still experiencing the same issue.

    On some products with 800+ variations, the single product page loads as far as the product title then dies. I see the following error in the error log:
    Maximum execution time of 60 seconds exceeded in /wp-includes/formatting.php on line 1538
    (different line numbers but always formatting.php)

    I tried disabling any plugins and customization on the single product page and still experience the same issue on the same products.

    I discovered a workaround that seems to solve the problem. If I edit the product in the dashboard and make even the tiniest change to the product description (post content), such as adding a space at the end, and click Update Product, the product will load normally. This “fix” scares me because I can’t imagine why it works or if it really solves the problem.

    Do you have any idea what would be causing this timeout or why editing the post content fixes it?

    https://www.ads-software.com/plugins/woocommerce/

Viewing 1 replies (of 1 total)
  • Plugin Contributor Mike Jolley (a11n)

    (@mikejolley)

    Hard to say; that function in formatting.php could be called from anywhere. There is backwards compatibility code in place which may be causing a time out of older variations whilst their data is out of date.

    Export and compare data before and after update.

Viewing 1 replies (of 1 total)
  • The topic ‘WC 2.4 – formatting.php timing out on products with 800 variations’ is closed to new replies.