Vai al contenuto Vai alla barra laterale

Questo thread è stato risolto. Ecco una descrizione del problema e della soluzione.

Problem:
The client was experiencing issues with WPML on their WordPress site, including a failure to initialize the ATE dashboard, error 503 during management, and product duplication in different languages after attempting translations.
Solution:
We addressed the initialization issue by requesting access to the site to perform a detailed check and setup. For the error 503, we suggested checking if the PHP version could be temporarily downgraded and advised configuring the server to not cache specific WPML-related paths. To resolve the product duplication, we investigated and found that a custom script was causing repeated triggers of wp_update_post(), which confused WPML and led to duplicates. We identified and deactivated the problematic script, then proceeded with re-translating the products using existing translation credits, ensuring no further duplication occurred. We also adjusted WPML settings to prevent similar issues in the future.

Please note that this solution might be outdated or not applicable to your specific case. We highly recommend checking the related known issues, verifying the version of the permanent fix, and confirming that you have installed the latest versions of themes and plugins. If the issue persists, please open a new support ticket.

Questo è il forum di assistenza tecnica di WPML, il plug-in multilingue di WordPress.

La sua lettura è permessa a tutti, ma la pubblicazione è riservata esclusivamente ai clienti di WPML. Il team di WPML risponde sul forum 6 giorni su 7, 22 ore su 24.

Etichettato: 

Questo ticket contiene 39 risposte, ha 0 voci.

Ultimo aggiornamento da robertoS-79 2 mese fa.

Assistito da: Bobby.

Autore Post
Aprile 27, 2026 alle 13:11 #17997059

robertoS-79

hi i think the last added product, checking dates, is ID: 1160. All the other shall be duplicated. ordering products by date can find this (attached).

I hope this will help you.

Screenshot 2026-04-27 151057.png
Aprile 28, 2026 alle 7:37 #17998572

Bobby
Sostenitore di WPML dal 04/2015

Lingue: Inglese (English )

Fuso orario: America/Los_Angeles (GMT-07:00)

Hi there,

72 products removed.

Was the default language ever set to English?

It looks like the products were translated but the connection is mixed and both languages are showing under 1 language but are not connected.

91,260 credits left ---

Selected 18 products -> sent for automatic translation -> using PTC estimate 19,908 Credits

However, because this has been done already and you have already spent the credits, WPML uses the translation memory therefore, it does not cost any more credits.

Current remaining credits; 91,260

Please check now and let me know your results.

Screenshot 2026-04-28 at 12.35.27 AM.png
Screenshot 2026-04-28 at 12.34.06 AM.png
Aprile 28, 2026 alle 8:12 #17998906

robertoS-79

Hi sounds good. I see that there is a WPML update but i let to do you this i don't want to cause issues 🙂

Btw, actually i have these issues:

1. i have a product that is still duplicated, see attachment. I've try to remove, it said that has been moved in trash can, but is still in...

2. can you try to send for translation products? Eventually let me know how much charge for translate all the 300 and over products and i will put credits. I need only to be aligned, next products i will do manually.

3. link nascosto is the italian page, link nascosto the english one as you see, nothing is displayed.

4. I see is really slow. actually i've removed the cache and change as suggested the wp-config with wp memory at 512.

Screenshot 2026-04-28 100748.png
Aprile 30, 2026 alle 17:41 #18006658

Bobby
Sostenitore di WPML dal 04/2015

Lingue: Inglese (English )

Fuso orario: America/Los_Angeles (GMT-07:00)

Thank you for updating me! I am working on this and will update you as soon as I have feedback

Maggio 4, 2026 alle 19:33 #18011861

Bobby
Sostenitore di WPML dal 04/2015

Lingue: Inglese (English )

Fuso orario: America/Los_Angeles (GMT-07:00)

I just reproduced the issue.

Went to WPML->translation dashboard-> sent the following 2 products for auto translation

Ghostbusters Day 2025 – Mini-lotto tematico
Ghostbusters Crocs – Edizione firmata (Size M8 / W10)

Before sending the numbers

EN 22 IT 356

After sending now we have EN 0 IT 378

languages mixed.

I am escalating this to our second tier support and I will update you as soon as I have feedback.

Maggio 5, 2026 alle 6:10 #18012317

robertoS-79

ok, thank you! As i told i don't touch anymore until fixed 🙂

Maggio 5, 2026 alle 6:18 #18012366

robertoS-79

If can be useful, i've received this message from website, i think when you try to add:

WordPress has a built-in feature that detects when a plugin or theme causes a fatal error on your site, and notifies you with this automated email.

In this case, WordPress caught an error with one of your plugins, Query Monitor.

First, visit your website (link nascosto) and check for any visible issues. Next, visit the page where the error was caught (link nascosto) and check for any visible issues.

Please contact your host for assistance with investigating this issue further.

When seeking help with this issue, you may be asked for some of the following information:
WordPress version 6.9.4
Active theme: Extendable (version 2.1.4)
Current plugin: Query Monitor (version 4.0.6)
PHP version 8.4.20

Error Details
=============
An error of type E_ERROR was caused in line 419 of the file /data/sites/web/ghostbustersveneziait/www/wp-content/plugins/query-monitor/classes/Util.php. Error message: Uncaught TypeError: ReflectionMethod::__construct(): Argument #2 ($method) must be of type ?string, array given in /data/sites/web/ghostbustersveneziait/www/wp-content/plugins/query-monitor/classes/Util.php:419
Stack trace:
#0 /data/sites/web/ghostbustersveneziait/www/wp-content/plugins/query-monitor/classes/Util.php(419): ReflectionMethod->__construct('...', Array)
#1 /data/sites/web/ghostbustersveneziait/www/wp-content/plugins/query-monitor/dispatchers/Html.php(624): QM_Util::determine_callback(Array)
#2 /data/sites/web/ghostbustersveneziait/www/wp-content/plugins/query-monitor/collectors/php_errors.php(343): QM_Dispatcher_Html->output_fatal('...', Array)
#3 /data/sites/web/ghostbustersveneziait/www/wp-content/plugins/query-monitor/collectors/php_errors.php(138): QM_Collector_PHP_Errors->output_fatal('...', Array)
#4 /data/sites/web/ghostbustersveneziait/www/wp-content/plugins/insert-headers-and-footers/includes/class-wpcode-error.php(331): QM_Collector_PHP_Errors->exception_handler(Object(Error))
#5 /data/sites/web/ghostbustersveneziait/www/wp-content/plugins/insert-headers-and-footers/includes/class-wpcode-error.php(318): WPCode_Error->call_previous_exception_handler(Object(Error))
#6 [internal function]: WPCode_Error->track_errors(Object(Error))
#7 {main}
thrown

Maggio 5, 2026 alle 20:01 #18015212

Bobby
Sostenitore di WPML dal 04/2015

Lingue: Inglese (English )

Fuso orario: America/Los_Angeles (GMT-07:00)

Hi there,

After further testing this we noticed that the issue was not reproducible when using a minimal environment with most of third party plugins deactivated.

The custom code added via the WP Code Lite plugin is responsible for this issue.

Query Monitor also shows roughly 200 queries on back end pages with WP Code Lite deactivated, and more than 14k queries when it is activated.

There is a number of snippets active, we recommend going through them one-by-one to determine which is causing the issue.

Let me know your results, please.

Maggio 5, 2026 alle 20:24 #18015223

robertoS-79

Can you try to disable all the WP added code with the plugin an s send for translation the products?

And check If also the museum store page in English work disability the WP code add?

I need to solve translating all products, having the shop page in English working like the italan one and then I can try to activate wp custom code.

Can you?
Eventually let me know how to increase and how much for translated all

Maggio 6, 2026 alle 16:58 #18018438

Bobby
Sostenitore di WPML dal 04/2015

Lingue: Inglese (English )

Fuso orario: America/Los_Angeles (GMT-07:00)

Yes we can, however, this is your live site and I am not sure what all these custom scripts are doing.

Are you sure you would want us to start deactivating them?

Maggio 6, 2026 alle 17:11 #18018447

robertoS-79

Hi yes you can proceed. I need to have English version for all products as first priority and have the shop page in English with same contents of Italian one.

For the WP code I will check every single query after update. I think these was minor features thwf eventually I can move in plugins. You can also disable id needed the plugin that display product's value in dashboard.

Maggio 11, 2026 alle 18:08 #18028426

Bobby
Sostenitore di WPML dal 04/2015

Lingue: Inglese (English )

Fuso orario: America/Los_Angeles (GMT-07:00)

Hi there,

Still working on this and will update you shortly with my results.

I am testing the custom scripts to eliminate the one that potentially is causing this because otherwise you will have to re do the procedure again multiple times until you find the culprit and for the amount of products you have this can take a while.

Maggio 11, 2026 alle 18:31 #18028453

Bobby
Sostenitore di WPML dal 04/2015

Lingue: Inglese (English )

Fuso orario: America/Los_Angeles (GMT-07:00)

Hi there,

I have concluded my tests.

Based on my analysis Script #2 is the culprit. Abilita recensioni per tutti i prodotti

The problem is the code was meant to be run once and then disabled, but the direct function call was left active, so it keeps running on every page load, repeatedly triggering wp_update_post() on all your products and confusing WPML each time.

When wp_update_post() is called on a translated product, WordPress/WPML can reset or lose the language metadata associated with that post. WPML stores translation relationships in its own icl_translations table, and wp_update_post() can trigger WPML hooks that reassign the post's language — often defaulting it back to the site's default language.

I will process your product translations for 1/3 of the products and let me know your results, please.

Maggio 11, 2026 alle 18:31 #18028456

robertoS-79

Thank you! Please update me when is ok. Also let me know how to increase credit for let you do all translation of the products

Maggio 11, 2026 alle 18:34 #18028463

robertoS-79

Ok you can disable it. So please let me know after you test with 1/3 of products, how to let do all process of trsnlaaton. And please check also the shop page in English that seems is different.