Skip Navigation

This thread is resolved. Here is a description of the problem and solution.

Problem:
If you're experiencing critical errors with messages indicating that the 'Maximum execution time of 180 seconds exceeded' in your WooCommerce logs, and these are linked to WPML, we recommend taking the following steps to isolate and resolve the issue.

Solution:
First, ensure you create a full backup of your site. Then, proceed with the following troubleshooting steps:
1. Update any outdated plugins or themes.
2. Flush any cache memory that might exist on your site.
3. Deactivate all plugins, including WPML ones.
4. Activate a default WordPress theme, such as Twenty Twenty.
5. Reactivate the WPML plugins, WooCommerce, and WooCommerce Multilingual & Multicurrency.
6. If the issue is resolved, begin reactivating your theme and then the other plugins one by one. This will help you identify the plugin or theme causing the conflict.

If you prefer not to perform these steps on your live site, consider creating a staging site to test these changes without affecting your production environment.

Please note that the solution provided might be irrelevant if it's outdated or not applicable to your case. If after following these steps the problem persists, we highly recommend checking related known issues, verifying the version of the permanent fix, and confirming that you have installed the latest versions of themes and plugins. If you still need assistance, please do not hesitate to open a new support ticket with us.

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.

Our next available supporter will start replying to tickets in about 4.52 hours from now. Thank you for your understanding.

This topic contains 3 replies, has 2 voices.

Last updated by Carlos Rojas 4 months, 4 weeks ago.

Assisted by: Carlos Rojas.

Author Posts
April 23, 2024 at 7:54 am #15554104

gustavG-2

Hi!

I have a site that runs WPML and Woocommerce. In Woocommerce logs, I get lots of registrations in the fatal-error log that various functions reach "Maximum execution time of 180 seconds" and almost all of them are linked to WPML.

Here is a draft from this morning:

---

**Date and Time:** 2024-04-23 00:13:12 UTC
**Severity:** CRITICAL
**Message:** Maximum execution time of 180 seconds exceeded
**File:** /home/rehabshop/public_html/web/app/plugins/sitepress-multilingual-cms/classes/utilities/class-wpml-wp-cache.php
**Line:** 56

---

**Date and Time:** 2024-04-23 01:19:56 UTC
**Severity:** CRITICAL
**Message:** Maximum execution time of 180 seconds exceeded
**File:** /home/rehabshop/public_html/web/app/plugins/sitepress-multilingual-cms/sitepress.class.php
**Line:** 3269

---

**Date and Time:** 2024-04-23 04:56:50 UTC
**Severity:** CRITICAL
**Message:** Maximum execution time of 180 seconds exceeded
**File:** /home/rehabshop/public_html/web/app/plugins/sitepress-multilingual-cms/classes/utilities/class-debug-backtrace.php
**Line:** 137

---

April 23, 2024 at 8:01 am #15554113

Carlos Rojas
Supporter

Languages: English (English ) Spanish (Español )

Timezone: Europe/Madrid (GMT+02:00)

Hello,
Thank you for contacting us

These type of errors usually happens due to an interaction issue with another functionality. I kindly ask you to follow these steps to isolate the cause of the problem:
- Create a full backup of the site
- Update any outdated plugins or themes
- Flush any cache memory that might exist
- Deactivate all plugins, including the WPML ones
- Activate a default WordPress theme, like Twenty Twenty
- Activate the WPML plugins, Woocommerce and Woocommerce Multilingual & Multicurrency
- If the issue disappears, start by activating the theme and then the rest of the plugins, one by one, until the issue appears again and you find the culprit.

Could you tell me the results of the steps described above?

Regards,
Carlos

April 26, 2024 at 7:15 am #15568091

gustavG-2

I understand. Is there any other way we can trace these issues? Where do the jobs come from that take so much time? Is the only way to do this to exclude all the plugins and activate them one by one?

I changed the time limit to 300 seconds now and the issue is gone, but still, it's very strange that something that is recurring takes that long.

April 26, 2024 at 8:50 am #15569384

Carlos Rojas
Supporter

Languages: English (English ) Spanish (Español )

Timezone: Europe/Madrid (GMT+02:00)

Hi there,

Yes, the steps described are the best ones to isolate the cause of the issue. As an alternative, you can create a staging site with a copy of the live site and run the steps there. That way the production site won't be affected.

This ticket is now closed. If you're a WPML client and need related help, please open a new support ticket.