Skip Navigation

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

Problem:
The client received an automated email from WordPress indicating a fatal error caused by the WPML Multilingual CMS plugin. The error message specified an issue with the file

class-wpml-tm-icl-translations.php

and mentioned 'No translation entry found for query'.
Solution:
If you're experiencing a similar issue, we recommend searching for existing tickets that address this error. You can use this custom search URL to find relevant solutions: Google Search for WPML Support Forum.
Additionally, you may find a solution in this specific ticket: WPML Support Forum Ticket.
Following these steps should help you resolve the issue more quickly. If this solution doesn't seem relevant to your situation, please open a new support ticket in our support forum.

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 1 reply, has 2 voices.

Last updated by Mihai Apetrei 1 year, 4 months ago.

Assisted by: Mihai Apetrei.

Author Posts
December 6, 2023 at 10:20 am #15006123

kelumP

I received below email today

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, WPML Multilingual CMS.

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

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

If your site appears broken and you can't access your dashboard normally, WordPress now has a special "recovery mode". This lets you safely login to your dashboard and investigate further.

hidden link

To keep your site safe, this link will expire in 1 day. Don't worry about that, though: a new link will be emailed to you if the error occurs again after it expires.

When seeking help with this issue, you may be asked for some of the following information:
WordPress version 6.4.1
Active theme: Selo (version 1.18)
Current plugin: WPML Multilingual CMS (version 4.6.7)
PHP version 8.0.30

Error Details
=============
An error of type E_ERROR was caused in line 193 of the file /var/www/wp-content/plugins/sitepress-multilingual-cms/classes/records/class-wpml-tm-icl-translations.php. Error message: Uncaught InvalidArgumentException: No translation entry found for query: s:34:" trid = %d AND language_code = %s ";a:2:{i:0;s:5:"27839";i:1;s:2:"de";} in /var/www/wp-content/plugins/sitepress-multilingual-cms/classes/records/class-wpml-tm-icl-translations.php:193
Stack trace:
#0 /var/www/wp-content/plugins/sitepress-multilingual-cms/classes/records/class-wpml-tm-icl-translations.php(67): WPML_TM_ICL_Translations->select_translation_id(' trid = %d AND ...', Array)
#1 /var/www/wp-content/plugins/sitepress-multilingual-cms/classes/records/class-wpml-tm-icl-translations.php(43): WPML_TM_ICL_Translations->build_from_trid(Array)
#2 /var/www/wp-content/plugins/sitepress-multilingual-cms/classes/records/class-wpml-tm-records.php(161): WPML_TM_ICL_Translations->__construct(Object(WPML_TM_Records), Array, 'trid_lang')
#3 /var/www/wp-content/plugins/sitepress-multilingual-cms/inc/actions/wpml-tm-post-actions.class.php(67): WPML_TM_Records->icl_translations_by_trid_and_lang('27839', 'de')
#4 /var/www/wp-content/plugins/sitepress-multilingual-cms/inc/functions-load-tm.php(943): WPML_TM_Post_Actions->save_post_actions(32140, Object(WP_Post), false)
#5 /var/www/wp-includes/class-wp-hook.php(324): wpml_tm_save_post(32140, Object(WP_Post), false)
#6 /var/www/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters('', Array)
#7 /var/www/wp-includes/plugin.php(517): WP_Hook->do_action(Array)
#8 /var/www/wp-content/plugins/sitepress-multilingual-cms/inc/post-translation/wpml-post-translation.class.php(213): do_action('wpml_tm_save_po...', 32140, Object(WP_Post), false)
#9 /var/www/wp-content/plugins/sitepress-multilingual-cms/inc/post-translation/wpml-admin-post-actions.class.php(123): WPML_Post_Translation->after_save_post('27839', Array, 'gb', 'en')
#10 /var/www/wp-includes/class-wp-hook.php(326): WPML_Admin_Post_Actions->save_post_actions(32140, Object(WP_Post))
#11 /var/www/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters(NULL, Array)
#12 /var/www/wp-includes/plugin.php(517): WP_Hook->do_action(Array)
#13 /var/www/wp-includes/post.php(4760): do_action('save_post', 32140, Object(WP_Post), true)
#14 /var/www/wp-includes/post.php(4862): wp_insert_post(Array, false, true)
#15 /var/www/wp-admin/includes/post.php(453): wp_update_post(Array)
#16 /var/www/wp-admin/includes/post.php(2148): edit_post(Array)
#17 /var/www/wp-admin/includes/misc.php(1357): wp_autosave(Array)
#18 /var/www/wp-includes/class-wp-hook.php(326): heartbeat_autosave(Array, Array)
#19 /var/www/wp-includes/plugin.php(205): WP_Hook->apply_filters(Array, Array)
#20 /var/www/wp-admin/includes/ajax-actions.php(3494): apply_filters('heartbeat_recei...', Array, Array, 'post')
#21 /var/www/wp-includes/class-wp-hook.php(324): wp_ajax_heartbeat('')
#22 /var/www/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters('', Array)
#23 /var/www/wp-includes/plugin.php(517): WP_Hook->do_action(Array)
#24 /var/www/wp-admin/admin-ajax.php(188): do_action('wp_ajax_heartbe...')
#25 {main}
thrown

December 6, 2023 at 10:41 am #15006543

Mihai Apetrei
Supporter

Languages: English (English )

Timezone: Europe/Bucharest (GMT+03:00)

Hi there.

Before this ticket gets assigned to my colleagues, I will try to help.

I created this custom search URL for you so that you can find the existing tickets for this exact same error message that already contain the solutions recommended by my colleagues for this type of error:
hidden link

Multiple solutions can be found in this specific existing ticket for example:
https://wpml.org/forums/topic/uncaught-invalidargumentexception-no-translation-entry-found-for-query/

By following this procedure, I think you will find the solution faster and we can spend less time on this ticket.

I hope that you will find this information helpful 🙂

Please let us know how things go and if you managed to get this fixed.

Kind regards,
Mihai Apetrei