Skip Navigation

Resolved

Reported for: WooCommerce Multilingual & Multicurrency 4.6.1

Resolved in: 4.6.2.1

Overview of the issue

It is possible to encounter a problem with WooCommerce Multilingual 4.6.1 and possibly previous releases as well.

The error manifests itself with the following timeout:

PHP Fatal error: Maximum execution time of 60 seconds exceeded in /wp-includes/class-wp-hook.php on line 288

Workaround

The problem is caused by having a meta key of _thumbnail_id with value equal to 0 (zero).

You can check that with this query:

SELECT * FROM `wp_postmeta`
WHERE `meta_key` = '_thumbnail_id' AND `meta_value` = '0';

As a workaround, you can remove these values from the database OR apply the following patch:

1. Go to the ../wp-content/plugins/woocommerce-multilingual/inc/ folder and edit the class-wcml-products.php file.

2. Find the following line:

if( is_product() && !$this->woocommerce_wpml->products->is_original_product( $product_id ) ){

3. Change that line to:

$is_original_product = $this->woocommerce_wpml->products->is_original_product( $product_id );
			if( is_product() && !$is_original_product ){

4. Now, find the following line:

} elseif ( '_product_image_gallery' === $meta_key ) {

5. Change that line to:

} elseif ( '_product_image_gallery' === $meta_key && !$is_original_product ) {

6. Finally, find the following line:

} elseif ( '_thumbnail_id' === $meta_key ) {

7. Change that line to:

} elseif ( '_thumbnail_id' === $meta_key && !$is_original_product ) {

8. Save the file and test.

12 Responses to “Timeouts with WooCommerce Multilingual 4.6.1”

  1. Hello,

    We have tried the workaround and query but no result. I can not even save products now..

    Do you have soon an solution / update? Because, we can’t do nothing now. If I deactivate the Woocomerce Multilingual plugin, the site’s works fine but then al the images/variations (attributes) aren’t translated correctly.

    Kind Regards,
    Annette Hospers

    • Hello,

      If this fix didn’t do anything to you, then you’re probably not encountering this particular issue.

      In this case i suggest you open a ticket on our support forum or in the meantime rollback your WooCommerce Multilingual version to 4.5.0 and your WooCommerce Version to 3.5.8.

  2. Hello,

    We have tried the workaround and query but no result. I can not even save products now..

    Do you have soon an solution / update? Because, we can’t do nothing now. If I deactivate the Woocomerce Multilingual plugin, the site’s works fine but then al the images/variations (attributes) aren’t translated correctly.

    Kind Regards,
    Annette Hospers

  3. we still have errors like this from time to time and the website goes down

    2019/04/24 12:41:58 [error] 28213#28213: *1893273 upstream timed out (110: Connection timed out) while reading response header from upstream, client: 172.69.54.24, server: , request: “GET /en/product/bridal-lace-robe-and-chemise/?___from_store=ar&manufacturer=6&size=63%2C76%2C58%2C53 HTTP/1.1”, upstream: “fastcgi://unix:/var/run/php/php7.2-fpm.sock”, host: “kenzwoman.com”

  4. Our team is working on releasing a new beta version later today which should fix the performance issues.
    Please stand by and watch this errata page – we will update it as soon as we release the new beta with the fix.

  5. This (as applied in the last update 4.6.2) doesn’t work. My payment page never completes and redirects to the order summary page – it gets stuck and then timed out.

  6. Please test your performance issues with WooCommerce Multilingual 4.6.2.1 and if the performance issues persist, then please open a new ticket in our support forum so that we can help you.