Skip to content Skip to sidebar

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
- 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: America/Los_Angeles (GMT-07:00)

This topic contains 17 replies, has 0 voices.

Last updated by karelV-8 2 days, 21 hours ago.

Assisted by: Bobby.

Author Posts
March 4, 2026 at 6:12 pm #17872781

karelV-8

Hello,

We are experiencing a fatal error on our WordPress site related to WPML during autosave / admin-ajax requests.

Environment:

WordPress: 6.7.2

Theme: Huber Child (v1.0)

WPML Multilingual CMS: 4.8.6

PHP: 8.2.30

The error appears when WordPress triggers autosave via wp-admin/admin-ajax.php (heartbeat).
WPML attempts to load a translation entry for a specific TRID but fails because the entry is missing.

Error message:

Uncaught InvalidArgumentException: No translation entry found for query:
trid = 48660621 AND language_code = fr

File:

wp-content/plugins/sitepress-multilingual-cms/classes/records/class-wpml-tm-icl-translations.php:193

Stack trace shows the error originates from:

WPML_TM_ICL_Translations->select_translation_id()
WPML_TM_ICL_Translations->build_from_trid()
WPML_TM_Records->icl_translations_by_trid_and_lang()
WPML_TM_Post_Actions->save_post_actions()
wpml_tm_save_post()
wp_ajax_heartbeat()

This suggests WPML is attempting to load a translation record for TRID 48660621 in language fr, but the translation entry does not exist in the icl_translations table.

Additionally, we recently experienced unusual behavior with translations where WPML appeared to merge translations incorrectly.

Example articles:

hidden link

hidden link

Our editor described the issue as follows:

She translated an article into German and French.

After publishing them, WPML merged the translations incorrectly.

The French translation content appeared inside the German draft.

The German translation became a standalone article instead of being linked as a translation.

She had to recreate the translations multiple times before they finally linked correctly.

This makes us suspect that translation records or TRIDs in the WPML tables may have become inconsistent or corrupted.

Questions:

Could this be caused by corrupted or inconsistent WPML translation tables?

Should we run the cleanup tools in WPML → Support → Troubleshooting, specifically:

Remove ghost entries from translation tables

Fix element_type collation

Clear WPML cache

Is there a recommended way to rebuild the translation entry for TRID 48660621?

Are there known issues with WPML 4.8.6 related to missing translation entries during autosave?

If needed, we can provide database access or a staging environment.

Thank you.

March 4, 2026 at 8:11 pm #17872963

Bobby
WPML Supporter since 04/2015

Languages: English (English )

Timezone: America/Los_Angeles (GMT-07:00)

Hi there,

Thank you for sharing this information!

First, it's recommended to update WPML to it's latest version via Plugins->Add new->Commercial tab.

The latest version (4.9.2) includes many fixes to known issues and the older versions are no longer supported.

Changelog: https://wpml.org/download/wpml-multilingual-cms/?section=changelog

Once that is finished, please go to WPML->Support->Troubleshooting and run the actions.

Let me know your results, please.

March 4, 2026 at 8:20 pm #17873001

karelV-8

Alright, but why I don't get any plugin update automatically??? I have 4.8.6 and the updates are NOT disabled for the plugin. That is very weird and all the other plugins are being updated correctly.

March 5, 2026 at 7:43 pm #17876241

Bobby
WPML Supporter since 04/2015

Languages: English (English )

Timezone: America/Los_Angeles (GMT-07:00)

Thank you for updating me! New releases usually go out in batches, however, by now it should have came through.

I will raise this with our team.

Did the latest version help or should we investigate further?

March 5, 2026 at 7:45 pm #17876244

karelV-8

Not sure, we must test it. I will reopen it if needed.

March 6, 2026 at 9:42 pm #17878690

Bobby
WPML Supporter since 04/2015

Languages: English (English )

Timezone: America/Los_Angeles (GMT-07:00)

Thank you, update us if needed and we can resume.

March 8, 2026 at 9:26 am #17879887

karelV-8

again I got this email, my translator was translating from English to French.

Détails de l’erreur
======================
Une erreur de type E_ERROR a été causée dans la ligne 193 du fichier /home/keengamer/public_html/wp-content/plugins/sitepress-multilingual-cms/classes/records/class-wpml-tm-icl-translations.php. Message d’erreur : Uncaught InvalidArgumentException: No translation entry found for query: s:34:" trid = %d AND language_code = %s ";a:2:{i:0;s:8:"48660713";i:1;s:2:"de";} in /home/keengamer/public_html/wp-content/plugins/sitepress-multilingual-cms/classes/records/class-wpml-tm-icl-translations.php:193
Stack trace:
#0 /home/keengamer/public_html/wp-content/plugins/sitepress-multilingual-cms/classes/records/class-wpml-tm-icl-translations.php(65): WPML_TM_ICL_Translations->select_translation_id()
#1 /home/keengamer/public_html/wp-content/plugins/sitepress-multilingual-cms/classes/records/class-wpml-tm-icl-translations.php(43): WPML_TM_ICL_Translations->build_from_trid()
#2 /home/keengamer/public_html/wp-content/plugins/sitepress-multilingual-cms/classes/records/class-wpml-tm-records.php(155): WPML_TM_ICL_Translations->__construct()
#3 /home/keengamer/public_html/wp-content/plugins/sitepress-multilingual-cms/inc/actions/wpml-tm-post-actions.class.php(67): WPML_TM_Records->icl_translations_by_trid_and_lang()
#4 /home/keengamer/public_html/wp-content/plugins/sitepress-multilingual-cms/inc/functions-load-tm.php(919): WPML_TM_Post_Actions->save_post_actions()
#5 /home/keengamer/public_html/wp-includes/class-wp-hook.php(324): wpml_tm_save_post()
#6 /home/keengamer/public_html/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters()
#7 /home/keengamer/public_html/wp-includes/plugin.php(517): WP_Hook->do_action()
#8 /home/keengamer/public_html/wp-content/plugins/sitepress-multilingual-cms/inc/post-translation/wpml-post-translation.class.php(213): do_action()
#9 /home/keengamer/public_html/wp-content/plugins/sitepress-multilingual-cms/inc/post-translation/wpml-admin-post-actions.class.php(123): WPML_Post_Translation->after_save_post()
#10 /home/keengamer/public_html/wp-includes/class-wp-hook.php(326): WPML_Admin_Post_Actions->save_post_actions()
#11 /home/keengamer/public_html/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters()
#12 /home/keengamer/public_html/wp-includes/plugin.php(517): WP_Hook->do_action()
#13 /home/keengamer/public_html/wp-includes/post.php(5060): do_action()
#14 /home/keengamer/public_html/wp-includes/post.php(5162): wp_insert_post()
#15 /home/keengamer/public_html/wp-admin/includes/post.php(453): wp_update_post()
#16 /home/keengamer/public_html/wp-admin/includes/post.php(2161): edit_post()
#17 /home/keengamer/public_html/wp-admin/includes/misc.php(1355): wp_autosave()
#18 /home/keengamer/public_html/wp-includes/class-wp-hook.php(326): heartbeat_autosave()
#19 /home/keengamer/public_html/wp-includes/plugin.php(205): WP_Hook->apply_filters()
#20 /home/keengamer/public_html/wp-admin/includes/ajax-actions.php(3503): apply_filters()
#21 /home/keengamer/public_html/wp-includes/class-wp-hook.php(324): wp_ajax_heartbeat()
#22 /home/keengamer/public_html/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters()
#23 /home/keengamer/public_html/wp-includes/plugin.php(517): WP_Hook->do_action()
#24 /home/keengamer/public_html/wp-admin/admin-ajax.php(192): do_action()
#25 {main}
thrown

March 9, 2026 at 7:08 pm #17883170

Bobby
WPML Supporter since 04/2015

Languages: English (English )

Timezone: America/Los_Angeles (GMT-07:00)

I would like to request temporary access (wp-admin and FTP) to your site to test the issue.
(preferably to a test site where the problem has been replicated if possible)

**Before we proceed It is necessary to take FULL BACKUP of your database and your website. Providing us with access, you agree that a backup has been taken **

I often use the Duplicator plugin for this purpose: http://wordpress.org/plugins/duplicator/
You will find the needed fields for this below the comment area when you log in to leave your next reply.
The information you enter is private which means only you and I have access to it.

NOTE: If access to the live site is not possible and the staging site does not exist please provide me with a duplicator package created with the duplicator plugin.

Thank you,
Bobby

March 11, 2026 at 7:36 pm #17890246

Bobby
WPML Supporter since 04/2015

Languages: English (English )

Timezone: America/Los_Angeles (GMT-07:00)

I am currently receiving an "Access Denied" error.

If possible, please verify that I have full admin access and something is not blocking me from accessing /wp-admin

Screenshot 2026-03-11 at 12.36.12 PM 1.png
March 11, 2026 at 9:21 pm #17890383

karelV-8

Fixed, you can sign in now.

March 11, 2026 at 10:27 pm #17890412

Bobby
WPML Supporter since 04/2015

Languages: English (English )

Timezone: America/Los_Angeles (GMT-07:00)

Thank you, I am in now.

When I go to hidden link and make a slight edit then update, it seems to work OK.

Then I click on French -> update.

Am I missing a step to reproduce the fatal error?

March 11, 2026 at 10:56 pm #17890471

karelV-8

To be frank, no idea. My translator is working with it. And it seems like she is able to translate 10 posts and then it happens. I've got just the error description above and how she has described it...

March 12, 2026 at 7:05 pm #17893692

Bobby
WPML Supporter since 04/2015

Languages: English (English )

Timezone: America/Los_Angeles (GMT-07:00)

When it happens, does it crash the site or do you simply receive this email?

March 12, 2026 at 7:51 pm #17893757

karelV-8

No, the site is working. Just the email. But earlier there was the problem below, but that was hopefully fixed with the new version...

Our editor described the issue as follows:

She translated an article into German and French.

After publishing them, WPML merged the translations incorrectly.

The French translation content appeared inside the German draft.

The German translation became a standalone article instead of being linked as a translation.

She had to recreate the translations multiple times before they finally linked correctly.

This makes us suspect that translation records or TRIDs in the WPML tables may have become inconsistent or corrupted.

March 12, 2026 at 10:41 pm #17894086

Bobby
WPML Supporter since 04/2015

Languages: English (English )

Timezone: America/Los_Angeles (GMT-07:00)

I see, it's hard to reproduce from my side, however I can recommend the following actions to make sure everything is OK.

Go to WPML->Support->Troubleshooting and run:

- Clear WPML Cache
- Remove Ghost Entries in translation tables
- fix element_type collation
- Fix WPML tables collation
- Set language information
- fix terms count
- fix post type assignments

Let me know your results, please.