Skip Navigation

This is the technical support forum for WPML - the multilingual WordPress plugin.

Everyone can read, but only WPML clients can post here. WPML team is replying on the forum 6 days per week, 22 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 12:00 – 14:00 12:00 – 14:00 12:00 – 14:00 12:00 – 14:00 12:00 – 14:00 -
- 17:00 – 21:00 17:00 – 21:00 17:00 – 21:00 17:00 – 21:00 17:00 – 21:00 -

Supporter timezone: Europe/Vienna (GMT+01:00)

Tagged: 

This topic contains 8 replies, has 2 voices.

Last updated by Bigul 4 months ago.

Assisted by: Bigul.

Author Posts
July 19, 2024 at 10:16 am #15977395

valerioG-9

Hey,

About this I get this error very often even when I just delete or save products: Maximum execution time exceeded in /home/degyefs/public_html/wp-content/plugins/woocommerce-multilingual/inc/class-wcml-url-translation.php on line 580

Now I did some database optimizaion myself but I still having problems with "Maximum execution". When deleteting 100 posts at the same time. I get and 500 network timeout error only when wpml plugins are active.

Can you please investigate that and tell me how to fix this?

I alreeady upped all php limits

July 19, 2024 at 11:25 am #15977802

Bigul
Supporter

Languages: English (English )

Timezone: Europe/Vienna (GMT+01:00)

Hello,

Welcome to the WPML support forum. I will do my best to help you to resolve the issue.

For your kind information, bulk deleting will always take more time. Additionally, most of your products are variable products. For example, if you have a product with three variations, it will be considered as four products (with a subproduct for each variation), resulting in many entries in the database as well.

So please upgrade to the latest version of WooCommerce(9.1.2) and WPML(4.6.12) after a full site backup. Then delete 50 products as a batch and make sure the issue exist or not.

Hope you have enabled WordPress Debug mode. If the bug exists, please share the debug.log with us. If you can paste your debug.log to http://pastebin.com/index.php and provide me that link it would be great! (This is the cleanest way because sometimes the logs are long and create a complete mess of discussion).

--
Thanks!

Bigul

July 22, 2024 at 9:48 am #15985931

valerioG-9

Please make this ticket private

July 23, 2024 at 8:41 am #15991276

Bigul
Supporter

Languages: English (English )

Timezone: Europe/Vienna (GMT+01:00)

Hello,

Thank you for the details. How many products you have deleted together? Hope you have only deleted the default language products.

--
Thanks!

Bigul

July 23, 2024 at 12:29 pm #15992402

valerioG-9

I deleted 100 default languag products

July 25, 2024 at 7:28 am #16001703

Bigul
Supporter

Languages: English (English )

Timezone: Europe/Vienna (GMT+01:00)

Hello,

Thank you for the updates. I made a new Duplicator copy of the site. We will debug it further and get back to you as soon as possible. Please wait.

--
Thanks!

Bigul

July 29, 2024 at 8:22 am #16014382

Bigul
Supporter

Languages: English (English )

Timezone: Europe/Vienna (GMT+01:00)

Hello,

We had a detailed testing in our local test environment. However, we cannot reproduce the following error while updating a product or deleting products in a group of 50 (both in the original language).

Maximum execution time exceeded in /********/woocommerce-multilingual/inc/class-wcml-url-translation.php on line 580

So I have a request, please try the following steps on your staging site after a full site backup and let us know your feedback.

1) Upgrade to the latest version of WPML(4.6.12 series)
2) Upgrade to the latest version of all the plugins including WooCommerce
3) Clear all types of caches
4) Try to update a Product or delete Products as a group of 50
5) If the issue exists, deactivate all other plugins except WooCommerce
6) Reactivate the plugins as a group of 3-4
7) Try to update a Product or delete Products as a group of 50

--
Thanks!

Bigul

July 30, 2024 at 2:22 pm #16021023
valerioG-9

Hey I sill have these problems. I did all things you said

I installed Query montor and I see most of the querries are from wpml, also I have 80 dublicated querries on product pages, most from WPML. This is not normal.

New threads created by Bigul and linked to this one are listed below:

https://wpml.org/forums/topic/duplicated-wpml-queries-on-product-pages/

Screenshot 2024-07-30 162029.png
July 31, 2024 at 7:28 am #16023212

Bigul
Supporter

Languages: English (English )

Timezone: Europe/Vienna (GMT+01:00)

Hello,

Thank you for the updates. Have you got the following error while deleting the products as a batch of 50?

Maximum execution time exceeded in /********/woocommerce-multilingual/inc/class-wcml-url-translation.php on line 580

The login URL you have shared is expired now. So please share it again. Maybe you are facing this issue because of compatibility conflicts. So to make sure if possible, please do the following steps.

a) Backup your site first[Mandatory]
b) Switch for a moment to a WordPress default theme like 2023 or 2024
c) Deactivate all the plugins that are not related to WPML except WooCommerce
d) Then check whether the issue exists or not
e) If the issue is gone, activate the plugins as a group of three or four to find which one has an interaction issue
f) Switch back to the original theme of the site

--
Thanks!

Bigul

The topic ‘[Closed] Maximum execution time exceeded in’ is closed to new replies.