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 |
|---|---|---|---|---|---|---|
| - | 10:00 – 17:00 | 10:00 – 17:00 | 10:00 – 17:00 | 10:00 – 17:00 | 10:00 – 17:00 | - |
| - | 18:00 – 19:00 | 18:00 – 19:00 | 18:00 – 19:00 | 18:00 – 19:00 | 18:00 – 19:00 | - |
Supporter timezone: Asia/Kathmandu (GMT+05:45)
Tagged: Exception
This topic contains 20 replies, has 1 voice.
Last updated by Menno van den Heuvel 23 hours, 16 minutes ago.
Assisted by: Shekhar Bhandari.
| Author | Posts |
|---|---|
| April 2, 2026 at 12:13 pm #17945905 | |
|
Menno van den Heuvel |
I'm having trouble with a site regularly overwriting translations with the untranslated original. To track down the culprit I added the following code to log the call stack: add_action('wp_insert_post', function ($post_id, $post, $update) { // Check if this is during cron // Get current hook // Get backtrace (who triggered it) // Simplify trace // Log everything So today I get a page overwritten, and I got the call stack logged. [02-Apr-2026 06:45:31 UTC] PHP Warning: Undefined array key 0 in /data/sites/web/sitenamecom/www/wp-content/plugins/wpml-media-translation/classes/class-wpml-media-attachment-by-url-query.php on line 163 [1] => Array [2] => Array [3] => Array [4] => Array [5] => Array [6] => Array [7] => Array [8] => Array [9] => Array [10] => Array [11] => Array [12] => Array [13] => Array [14] => Array [15] => Array [16] => Array [17] => Array [18] => Array [19] => Array [20] => Array [21] => Array [22] => Array [23] => Array [24] => Array [25] => Array [26] => Array [27] => Array [28] => Array [29] => Array [30] => Array [31] => Array [32] => Array [33] => Array [34] => Array [35] => Array [36] => Array [37] => Array [38] => Array [39] => Array [40] => Array [41] => Array [42] => Array [43] => Array [44] => Array ) |
| April 2, 2026 at 1:42 pm #17946245 | |
|
Lucas Vidal de Andrade WPML Supporter since 11/2023
Languages: English (English ) Spanish (Español ) German (Deutsch ) Portuguese (Brazil) (Português ) Timezone: Europe/Vienna (GMT+02:00) |
Hello there, Thank you for contacting WPML support. While you are waiting for one of my colleagues to take this ticket and work on it, let me provide you with first debugging steps or if I can perhaps help with the issue quickly. It's possible that your translations were duplicated from the original. When translations are duplicates, they stay in sync with the original content, so every change made to the original you overwrite the translation with its latest version. Please check if that's the case. You can check that direclty inside the WordPress editor of the translation. Please check the image attached. If that box is there, it means that the translation is a duplicate. Please let us know if that's the case. More information: If that does not help, one of my colleagues will soon come to continue support. |
| April 2, 2026 at 2:27 pm #17946422 | |
|
Menno van den Heuvel |
Hi, Thanks for getting back to me so quickly. I just checked, and best I can tell my translation is not a duplicate. I'm attaching a screenshot of the language tab. Menno |
| April 7, 2026 at 5:20 am #17952520 | |
|
Shekhar Bhandari WPML Supporter since 03/2015
Languages: English (English ) Timezone: Asia/Kathmandu (GMT+05:45) |
Hello, Thank you for reaching out to WPML support—I'm happy to assist you with this issue. Do you happen to know which cron action is triggering the problem? In the meantime, please add the following constant to your **wp-config.php** file and check if the issue persists: define( 'WPML_TRANSLATION_AUTO_UPDATE_ENABLED', false ); Also, navigate to WPML → Settings → Posts and Page Synchronizations and ensure that "Copy publishing date to translations" is enabled. Please let me know if this resolves the issue. Thanks, |
| April 7, 2026 at 2:42 pm #17954659 | |
|
Menno van den Heuvel |
Hi Shekhar, Thanks for your advice. I added the setting in my wp_config.php file, and verified that "Copy publishing date to translations" was enabled (it was). I have no idea which cron action triggers the problem. I was hoping the call stack I posted would give you guys a bit of direction. If not I could hook into every cron action, and log it. Let's first see if it's fixed now though. |
| April 8, 2026 at 3:16 am #17955430 | |
|
Shekhar Bhandari WPML Supporter since 03/2015
Languages: English (English ) Timezone: Asia/Kathmandu (GMT+05:45) |
Sure, I will wait for your feedback. |
| April 10, 2026 at 7:37 am #17961232 | |
|
Menno van den Heuvel |
Hi Shekhar, Unfortunately, four hours ago a cron run overwrote a french translation again. So it turns out the same problem is still happening, even after adding define( 'WPML_TRANSLATION_AUTO_UPDATE_ENABLED', false ); What is the next thing we could try? Some extra logging I could add to pinpoint the issue? For reference, the following stack trace was logged in the WordPress log: [10-Apr-2026 02:56:41 UTC] --- Revision created during cron --- [1] => Array [2] => Array [3] => Array [4] => Array [5] => Array [6] => Array [7] => Array [8] => Array [9] => Array [10] => Array [11] => Array [12] => Array [13] => Array [14] => Array [15] => Array [16] => Array [17] => Array [18] => Array [19] => Array [20] => Array [21] => Array [22] => Array [23] => Array [24] => Array [25] => Array [26] => Array [27] => Array [28] => Array [29] => Array [30] => Array [31] => Array [32] => Array [33] => Array [34] => Array [35] => Array [36] => Array [37] => Array [38] => Array [39] => Array [40] => Array [41] => Array [42] => Array [43] => Array [44] => Array ) |
| April 10, 2026 at 11:57 am #17962108 | |
|
Shekhar Bhandari WPML Supporter since 03/2015
Languages: English (English ) Timezone: Asia/Kathmandu (GMT+05:45) |
Hello there, To debug this issue further, I would need to check your site settings once, for this I would need temporary access (wp-admin and ftp) to your site. So could you please provide me with those details, you will find the needed fields for this below the comment area when you log in to leave your next reply. This info is private and available to you and WPML supporters only. Note: Look forward to your reply. Thanks |
| April 13, 2026 at 10:53 am #17965576 | |
|
Shekhar Bhandari WPML Supporter since 03/2015
Languages: English (English ) Timezone: Asia/Kathmandu (GMT+05:45) |
Hello there, Thank you for the details. We've recently rolled out a new version of WPML plugins. Could you please update your plugins to the latest version and inform me if it resolves the issue? Our WPML updates are distributed gradually. If your websites haven't received this update yet, please be patient, and you should see it within a few days. If you want to expedite the process and receive the update immediately, follow these steps: Please remember to create a backup before updating, as a precaution. Look forward to your reply. Thanks |
| April 14, 2026 at 3:16 pm #17969136 | |
|
Menno van den Heuvel |
Hi Shekhar, Sorry for the delay. I'm trying to get around to updating the plugins, but turns out that the WPML license is not activated on the staging version of the site (on a different domain), and just running the update on production without testing it ahead of time feels a bit dodgy as well. So I'm trying to figure out how to copy the license - but I'm not even sure if that would work without having to jump through a bunch of hoops. |
| April 15, 2026 at 3:36 am #17970241 | |
|
Shekhar Bhandari WPML Supporter since 03/2015
Languages: English (English ) Timezone: Asia/Kathmandu (GMT+05:45) |
Hello, You can easily generate a site key for your development or staging sites from here: https://wpml.org/account/sites/ You’re currently using an outdated version of the WPML plugins, and troubleshooting issues on older versions isn’t practical within the WordPress ecosystem. Updating to the latest version is necessary to effectively resolve this problem. Looking forward to your reply. Thank you. |
| April 15, 2026 at 2:10 pm #17971750 | |
|
Menno van den Heuvel |
Hiya, I got around to updating the various WPML plugins. Menno |
| April 16, 2026 at 2:43 am #17972480 | |
|
Shekhar Bhandari WPML Supporter since 03/2015
Languages: English (English ) Timezone: Asia/Kathmandu (GMT+05:45) |
Hello there, Can you confirm if the same problem happens after updating. Look forward to your reply. Thanks |
| April 16, 2026 at 3:10 pm #17974886 | |
|
Menno van den Heuvel |
Hi Shekhar, Yep, same thing's still happening. Menno |
| April 17, 2026 at 7:41 am #17976136 | |
|
Shekhar Bhandari WPML Supporter since 03/2015
Languages: English (English ) Timezone: Asia/Kathmandu (GMT+05:45) |
Hello there, Can you please share few pages/posts that were overridden recently? Look forward to your reply. Thanks |

