تخطي التنقل

الوسوم: 

يحتوي هذا الموضوع 0 ردود ، لديه 0أصوات.

آخر تحديث بواسطة support@onenonly.info قبل 3 أشهر، 3 أسابيع.

يساعده: Bruno Kos.

الكاتب المشاركات
مارس 3, 2025 في 11:52 ص

support@onenonly.info

Background of the issue:
I am working on a site under development and was translating a post using WPML when the content disappeared. My ISP provided an error log indicating an issue with the WPML plugin.

Symptoms:
An error of type E_ERROR was caused in line 193 of the file /www/wwwkeytalkcom_402/public/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:6:"214816";i:1;s:2:"fr";}.

Error Details
=============
An error of type E_ERROR was caused in line 193 of the file /www/wwwkeytalkcom_402/public/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:6:"214816";i:1;s:2:"fr";} in /www/wwwkeytalkcom_402/public/wp-content/plugins/sitepress-multilingual-cms/classes/records/class-wpml-tm-icl-translations.php:193
Stack trace:
#0 /www/wwwkeytalkcom_402/public/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 /www/wwwkeytalkcom_402/public/wp-content/plugins/sitepress-multilingual-cms/classes/records/class-wpml-tm-icl-translations.php(43): WPML_TM_ICL_Translations->build_from_trid(Array)
#2 /www/wwwkeytalkcom_402/public/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 /www/wwwkeytalkcom_402/public/wp-content/plugins/sitepress-multilingual-cms/inc/actions/wpml-tm-post-actions.class.php(67): WPML_TM_Records->icl_translations_by_trid_and_lang('214816', 'fr')
#4 /www/wwwkeytalkcom_402/public/wp-content/plugins/sitepress-multilingual-cms/inc/functions-load-tm.php(947): WPML_TM_Post_Actions->save_post_actions(14495, Object(WP_Post), false)
#5 /www/wwwkeytalkcom_402/public/wp/wp-includes/class-wp-hook.php(324): wpml_tm_save_post(14495, Object(WP_Post), false)
#6 /www/wwwkeytalkcom_402/public/wp/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters('', Array)
#7 /www/wwwkeytalkcom_402/public/wp/wp-includes/plugin.php(517): WP_Hook->do_action(Array)
#8 /www/wwwkeytalkcom_402/public/wp-content/plugins/sitepress-multilingual-cms/inc/post-translation/wpml-post-translation.class.php(213): do_action('wpml_tm_save_po...', 14495, Object(WP_Post), false)
#9 /www/wwwkeytalkcom_402/public/wp-content/plugins/sitepress-multilingual-cms/inc/post-translation/wpml-admin-post-actions.class.php(123): WPML_Post_Translation->after_save_post('214816', Array, 'es', 'en')
#10 /www/wwwkeytalkcom_402/public/wp/wp-includes/class-wp-hook.php(326): WPML_Admin_Post_Actions->save_post_actions(14495, Object(WP_Post))
#11 /www/wwwkeytalkcom_402/public/wp/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters(14495, Array)
#12 /www/wwwkeytalkcom_402/public/wp/wp-includes/plugin.php(517): WP_Hook->do_action(Array)
#13 /www/wwwkeytalkcom_402/public/wp/wp-includes/post.php(5060): do_action('save_post', 14495, Object(WP_Post), true)
#14 /www/wwwkeytalkcom_402/public/wp/wp-includes/post.php(5162): wp_insert_post(Array, false, true)
#15 /www/wwwkeytalkcom_402/public/wp/wp-admin/includes/post.php(453): wp_update_post(Array)
#16 /www/wwwkeytalkcom_402/public/wp/wp-admin/includes/post.php(2161): edit_post(Array)
#17 /www/wwwkeytalkcom_402/public/wp/wp-admin/includes/misc.php(1355): wp_autosave(Array)
#18 /www/wwwkeytalkcom_402/public/wp/wp-includes/class-wp-hook.php(326): heartbeat_autosave(Array, Array)
#19 /www/wwwkeytalkcom_402/public/wp/wp-includes/plugin.php(205): WP_Hook->apply_filters(Array, Array)
#20 /www/wwwkeytalkcom_402/public/wp/wp-admin/includes/ajax-actions.php(3503): apply_filters('heartbeat_recei...', Array, Array, 'news')
#21 /www/wwwkeytalkcom_402/public/wp/wp-includes/class-wp-hook.php(324): wp_ajax_heartbeat('')
#22 /www/wwwkeytalkcom_402/public/wp/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters('', Array)
#23 /www/wwwkeytalkcom_402/public/wp/wp-includes/plugin.php(517): WP_Hook->do_action(Array)
#24 /www/wwwkeytalkcom_402/public/wp/wp-admin/admin-ajax.php(192): do_action('wp_ajax_heartbe...')
#25 {main}
thrown

Questions:
Why did the content disappear when translating a post?
How can I resolve the E_ERROR related to WPML?
What does the error message 'No translation entry found for query' mean?

مارس 3, 2025 في 1:29 م