Pular para o conteúdo Pular para a barra lateral
Sun Mon Tue Wed Thu Fri Sat
- 7:00 – 12:00 7:00 – 12:00 7:00 – 12:00 7:00 – 12:00 7:00 – 12:00 -
- 13:00 – 16:00 13:00 – 16:00 13:00 – 16:00 13:00 – 16:00 13:00 – 16:00 -

Fuso horário do suporte: America/Sao_Paulo (GMT-03:00)

Marcado: 

Este tópico contém 0, tem 1 voz.

Última atualização: tor-ingeO 2 meses, 1 semana atrás.

Assistido por: Lucas Vidal de Andrade.

Autor Posts
junho 19, 2025 às 12:10 pm

tor-ingeO

Background of the issue:
I am trying to translate a custom post type called 'employees' using WPML AI. Automatic translation worked for most employees, but some were not translated. When I attempt to re-run the automatic translation for these, nothing happens. Additionally, when I try to create a manual translation, I encounter a critical error on the website. The issue can be seen at the following URL: link oculto.

Symptoms:
I receive a critical error with the message:

En feil av typen E_ERROR ble forårsaket i linje 505 i filen /var/web/site/public_html/wp-content/plugins/sitepress-multilingual-cms/inc/functions-load-tm.php. Feilmelding: Uncaught Error: Call to a member function get_source_language_code() on false in /var/web/site/public_html/wp-content/plugins/sitepress-multilingual-cms/inc/functions-load-tm.php:505
Stack trace:
#0 /var/web/site/public_html/wp-content/plugins/sitepress-multilingual-cms/classes/ATE/Hooks/class-wpml-tm-ate-jobs-actions.php(153): wpml_tm_create_ATE_job_creation_model(306, true)
#1 [internal function]: WPML_TM_ATE_Jobs_Actions->{closure:WPML_TM_ATE_Jobs_Actions::added_translation_jobs():152}(306, 0)
#2 /var/web/site/public_html/wp-content/plugins/sitepress-multilingual-cms/vendor/wpml/fp/core/Fns.php(151): array_map(Object(Closure), Array, Array)
#3 [internal function]: WPMLFPFns::{closure:WPMLFPFns::init():141}(Object(Closure), Array)
#4 /var/web/site/public_html/wp-content/plugins/sitepress-multilingual-cms/vendor/wpml/fp/core/functions.php(154): call_user_func_array(Object(Closure), Array)
#5 [internal function]: WPMLFPFns::{closure:{closure:WPMLFPcurryN():136}:137}(Object(Closure), Array)
#6 /var/web/site/public_html/wp-content/plugins/sitepress-multilingual-cms/vendor/wpml/collect/src/Illuminate/Support/Traits/Macroable.php(56): call_user_func_array(Object(Closure), Array)
#7 /var/web/site/public_html/wp-content/plugins/sitepress-multilingual-cms/classes/ATE/Hooks/class-wpml-tm-ate-jobs-actions.php(152): WPMLFPFns::__callStatic('map', Array)
#8 /var/web/site/public_html/wp-includes/class-wp-hook.php(324): WPML_TM_ATE_Jobs_Actions->added_translation_jobs(Array, 1, Object(WPML_TM_Translation_Batch))
#9 /var/web/site/public_html/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters('', Array)
#10 /var/web/site/public_html/wp-includes/plugin.php(517): WP_Hook->do_action(Array)
#11 /var/web/site/public_html/wp-content/plugins/sitepress-multilingual-cms/inc/translation-management/translation-management.class.php(1518): do_action('wpml_added_tran...', Array, 1, Object(WPML_TM_Translation_Batch))
#12 /var/web/site/public_html/wp-content/plugins/sitepress-multilingual-cms/classes/class-wpml-translation-job-factory.php(112): TranslationManagement->send_jobs(Object(WPML_TM_Translation_Batch), 'post', 1)
#13 /var/web/site/public_html/wp-content/plugins/sitepress-multilingual-cms/classes/jobs/Manual.php(164): WPML_Translation_Job_Factory->create_local_job('3229', 'en', NULL, 'post_ansatte', 1, 'no')
#14 /var/web/site/public_html/wp-content/plugins/sitepress-multilingual-cms/classes/jobs/Manual.php(43): WPMLTMJobsManual->createLocalJob('3229', 'no', 'en', 'post_ansatte')
#15 /var/web/site/public_html/wp-content/plugins/sitepress-multilingual-cms/vendor/wpml/fp/core/Either.php(207): WPMLTMJobsManual->createOrReuse(Array)
#16 /var/web/site/public_html/wp-content/plugins/sitepress-multilingual-cms/classes/editor/Editor.php(103): WPMLFPRight->map(Array)
#17 /var/web/site/public_html/wp-content/plugins/sitepress-multilingual-cms/classes/menu/translation-queue/class-wpml-translations-queue.php(52): WPMLTMEditorEditor->open(Array)
#18 /var/web/site/public_html/wp-includes/class-wp-hook.php(324): WPML_Translations_Queue->load(Object(WP_Screen))
#19 /var/web/site/public_html/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters(NULL, Array)
#20 /var/web/site/public_html/wp-includes/plugin.php(517): WP_Hook->do_action(Array)
#21 /var/web/site/public_html/wp-admin/includes/class-wp-screen.php(424): do_action('current_screen', Object(WP_Screen))
#22 /var/web/site/public_html/wp-admin/includes/screen.php(243): WP_Screen->set_current_screen()
#23 /var/web/site/public_html/wp-admin/admin.php(213): set_current_screen()
#24 {main}

Questions:
Why are some employees not being translated automatically?
What causes the critical error when attempting manual translation?

junho 19, 2025 às 1:17 pm

O tópico '[Fechado] Critical error – translations not working' está fechado para novas respostas.