Skip to content Skip to sidebar

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

Problem:
The client is experiencing persistent 500 errors linked to WPML on their staging site, despite extensive troubleshooting including deactivating less essential plugins, reverting to older WPML versions, and consulting forum topics. The errors persist even after enabling WordPress debugging and updating plugins.

Solution:
We recommended the following steps to further diagnose and potentially resolve the issue:
1. Enable WordPress debugging to capture specific error messages. This involves adding specific lines of code to the

wp-config.php

file to log errors without displaying them on the site.
2. Reproduce the error to trigger and log specific error messages, then share these messages for further analysis.
3. Ensure all WPML components are updated to the latest versions after ensuring a complete backup of the site and database.
4. If the issue persists, we advised checking the PHP memory limit and using WPML’s troubleshooting tools.

If these steps do not resolve the issue or if the solution becomes outdated, we recommend opening a new support ticket. We also highly recommend checking related known issues at https://wpml.org/known-issues/, verifying the version of the permanent fix, and confirming that you have installed the latest versions of themes and plugins. For further assistance, please visit our support forum at https://wpml.org/forums/.

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.

Tagged: 

This topic contains 29 replies, has 0 voices.

Last updated by Carlos Rojas 1 month, 3 weeks ago.

Assisted by: Carlos Rojas.

Author Posts
November 17, 2025 at 10:04 pm #17586225

Paola Mendiburu
WPML Supporter since 11/2020

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

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

Hi there!

You’re right that it’s tricky to reproduce, especially on a staging site without traffic.

In the meantime, could you also ask your hosting provider to check the server logs to see if there are any PHP memory, timeout or resource-related errors when the issue happens?

November 18, 2025 at 3:57 am #17586381

myleneG

I've replicated ...hidden link

November 18, 2025 at 10:48 am #17587473

Paola Mendiburu
WPML Supporter since 11/2020

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

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

Hi there!

As you can see on the debug.log there are no errors related to WPML plugins.

Maybe is a hosting related issue. Pleas ask the hosting support as maybe you need to increase resources.

November 19, 2025 at 2:44 pm #17592370

myleneG

I have more than plenty of resources and it doesn't do it on my main site where updates have not been done. And I know it might not be directly caused by wpml but the bug does not happen if I deactivate it. So it's a conflict with wpml, but if you can't help me figure this out, ok

November 19, 2025 at 5:46 pm #17593025

Paola Mendiburu
WPML Supporter since 11/2020

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

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

Hi there!

Thanks for the update. Since the issue only happens on the live site and not on staging, it’s very likely related to the higher traffic or load on the production environment. Even if the hosting resources look fine, a specific query or process may be reaching the limits temporarily and triggering the 500 errors.

To identify exactly which query or process is causing this, please follow our performance debugging guide:
https://wpml.org/faq/how-to-debug-performance-problems/

It will help you pinpoint the query that slows things down or causes the error under high traffic.

November 20, 2025 at 2:05 pm #17596024

myleneG

No, it's actually the opposite, it only happens on staging site, the url I gave you is staging. the live site has not your updates and Ive done the standard procedure if wpml is off, it doens't do it. we're really going in circles

November 20, 2025 at 3:29 pm #17596368

Paola Mendiburu
WPML Supporter since 11/2020

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

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

But please do this https://wpml.org/faq/how-to-debug-performance-problems/ so we can know what is the queries that is causing the issue.

November 22, 2025 at 3:17 am #17600828

myleneG

Ok, si installed the plugin, but if I replicate the bug, a 500 page doesn't have the admin bar?

November 22, 2025 at 3:22 am #17600829

myleneG

Total Queries:628
Total query time:1,804.8 ms

WARNING: wp-content/plugins/sitepress-multilingual-cms/classes/translations/TranslationElements/FieldCompression.php:150 - gzuncompress(): data error
require('wp-blog-header.php'), require_once('wp-includes/template-loader.php'), include('/themes/electro/woocommerce/archive-product.php'), get_footer, locate_template, load_template, require_once('/themes/electro/footer.php'), electro_get_footer, get_footer, locate_template, load_template, require_once('/themes/electro/footer-v2.php'), wp_footer, do_action('wp_footer'), WP_Hook->do_action, WP_Hook->apply_filters, wp_admin_bar_render, do_action_ref_array('admin_bar_menu'), WP_Hook->do_action, WP_Hook->apply_filters, wp_admin_bar_edit_menu, current_user_can, user_can, WP_User->has_cap, apply_filters('user_has_cap'), WP_Hook->apply_filters, WPML\LIB\WP\Hooks::{closure:WPML\LIB\WP\Hooks::onHook():49}, WPML\FP\Promise->resolve, WPML\FP\Right->chain, WPML\FP\Right->map, {closure:WPML\FP\spreadArgs():16}, WPML\TM\ATE\Review\ReviewTranslation->{closure:WPML\TM\ATE\Review\ReviewTranslation::add_hooks():51}, WPML\TM\API\Jobs::__callStatic, call_user_func_array, WPML\TM\API\Jobs::{closure:{closure:WPML\FP\curryN():136}:137}, call_user_func_array, WPML\TM\API\Jobs::{closure:WPML\TM\API\Jobs::init():54}, WPML\TM\API\Jobs::getElementJob, call_user_func_array, {closure:{closure:WPML\FP\curryN():136}:137}, call_user_func_array, WPML\TM\API\Jobs::{closure:WPML\TM\API\Jobs::getElementJob():351}, WPML\TM\API\Jobs::__callStatic, call_user_func_array, WPML\TM\API\Jobs::{closure:{closure:WPML\FP\curryN():136}:137}, call_user_func_array, WPML\TM\API\Jobs::{closure:WPML\TM\API\Jobs::init():59}, WPML_Translation_Job_Factory->get_translation_job_as_stdclass, WPML_Translation_Job_Factory->get_translation_job, WPML_Translation_Job_Factory->complete_job_data, WPML_Translation_Job_Factory->add_job_elements, WPML\Translation\TranslationElements\FieldCompression::decompress, gzuncompress

November 22, 2025 at 3:24 am #17600832

myleneG

hidden link

November 25, 2025 at 10:26 am #17607438

Carlos Rojas
WPML Supporter since 03/2017

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

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

Hello again,
I'm continuing with this ticket because my colleague Paola is on vacation

Thanks for sharing the log file. We traced the issue to how the COD gateway description is being handled in your site: the translation system of WPML String Translation is trying to register/lookup the string 'cod_gateway_description' under the context admin_texts_woocommerce_gateways. The SQL query is using a value='1.…' which suggests the description value may be malformed or duplicated, and this is triggering the fault.

Please follow these steps:
- Update all outdated plugins that appear outdated in this link: hidden link
- Deactivate all plugins, including the WPML ones
- Activate a default WordPress theme, like Twenty Twenty
- Activate the WPML plugins, WooCommerce and WPML Multilingual & Multicurrency for WooCommerce
- If the issue disappeared, start by activating the theme and the rest of the plugins, one by one, until the issue appears again, and you find the culprit

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

November 26, 2025 at 5:13 am #17610166

myleneG

One question before I complete reactivating each plugin one by one, it would take me 15 minutes to try to trigger this problem for every plugin I reactivate, any way to trigger this bug faster? It's currently the xmas rush, the worst time for me ?

Thank you

November 26, 2025 at 9:57 am #17610807

Carlos Rojas
WPML Supporter since 03/2017

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

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

Hi there,

Unfortunately, we don't have enough information to know what triggers the error or the steps to follow to reproduce it. But according to the log you shared, if you follow the steps described, you should be able to find the culprit of the problem faster.

November 26, 2025 at 1:46 pm #17612234

myleneG

This will might be resolves only after xmas done, because 15minutes x each plugin is not possible right now, the procedure given is the standard dfebugging, not really faster

November 27, 2025 at 9:26 am #17614228

Carlos Rojas
WPML Supporter since 03/2017

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

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

Hi,

To effectively identify the root cause and resolve the issue, we need to be able to reproduce the problem consistently. If the issue cannot be reproduced on demand or the exact steps to trigger it are unclear, the steps we've shared are the most reliable way to collect the necessary information and move forward with troubleshooting. We appreciate your collaboration in helping us gather these details so we can assist you as efficiently as possible.