Skip Navigation

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

Problem:
The client was attempting to translate an Elementor popup template into French but encountered a critical error when clicking the plus sign next to French.

Solution:
We recommend taking the following steps after ensuring you have a backup of your site:
1. Go to WPML → Support → Troubleshooting.
2. Click on the buttons in this order:
Clear the cache in WPML
Remove ghost entries from the translation tables
Fix element_type collation
Set language information
Fix post type assignment for translations

If the issue persists, deactivate all plugins except for WPML to check for a conflict with another plugin. Additionally, try creating and translating a new popup to determine if the problem is specific to the post type or a general issue.

Please note that the solution provided might be outdated or not applicable to your case. If the problem continues, we highly recommend checking related known issues, verifying the version of the permanent fix, and confirming that you have installed the latest versions of themes and plugins. If none of these steps resolve the issue, please open a new support ticket with us.

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.

This topic contains 1 reply, has 2 voices.

Last updated by Ilyes 1 year, 1 month ago.

Assisted by: Ilyes.

Author Posts
May 3, 2024 at 11:14 am #15591133

antonioM-14

I am trying to: translate a popup Elementor template to French by clicking in the plus sign next to French (image attached).

Link to a page where the issue can be seen: Templates > Popups and then edit the original popup in Spanish.

I expected to see: editor for new translation in French.

Instead, I got: critical error (image attached).

Error Details
=============
An error of type E_ERROR was caused in line 501 of the file /home/skinvity/webapps/skinvity/wp-content/plugins/sitepress-multilingual-cms/inc/functions-load-tm.php. Error message: Uncaught Error: Call to a member function get_source_language_code() on bool in /home/skinvity/webapps/skinvity/wp-content/plugins/sitepress-multilingual-cms/inc/functions-load-tm.php:501
Stack trace:
#0 /home/skinvity/webapps/skinvity/wp-content/plugins/sitepress-multilingual-cms/classes/ATE/Hooks/class-wpml-tm-ate-jobs-actions.php(153): wpml_tm_create_ATE_job_creation_model()
#1 [internal function]: WPML_TM_ATE_Jobs_Actions->{closure}()
#2 /home/skinvity/webapps/skinvity/wp-content/plugins/sitepress-multilingual-cms/vendor/wpml/fp/core/Fns.php(164): array_map()
#3 [internal function]: WPML\FP\Fns::WPML\FP\{closure}()
#4 /home/skinvity/webapps/skinvity/wp-content/plugins/sitepress-multilingual-cms/vendor/wpml/fp/core/functions.php(154): call_user_func_array()
#5 [internal function]: WPML\FP\Fns::WPML\FP\{closure}()
#6 /home/skinvity/webapps/skinvity/wp-content/plugins/sitepress-multilingual-cms/vendor/wpml/collect/src/Illuminate/Support/Traits/Macroable.php(56): call_user_func_array()
#7 /home/skinvity/webapps/skinvity/wp-content/plugins/sitepress-multilingual-cms/classes/ATE/Hooks/class-wpml-tm-ate-jobs-actions.php(152): WPML\FP\Fns::__callStatic()
#8 /home/skinvity/webapps/skinvity/wp-includes/class-wp-hook.php(324): WPML_TM_ATE_Jobs_Actions->added_translation_jobs()
#9 /home/skinvity/webapps/skinvity/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters()
#10 /home/skinvity/webapps/skinvity/wp-includes/plugin.php(517): WP_Hook->do_action()
#11 /home/skinvity/webapps/skinvity/wp-content/plugins/sitepress-multilingual-cms/inc/translation-management/translation-management.class.php(1478): do_action()
#12 /home/skinvity/webapps/skinvity/wp-content/plugins/sitepress-multilingual-cms/classes/class-wpml-translation-job-factory.php(112): TranslationManagement->send_jobs()
#13 /home/skinvity/webapps/skinvity/wp-content/plugins/sitepress-multilingual-cms/classes/jobs/Manual.php(164): WPML_Translation_Job_Factory->create_local_job()
#14 /home/skinvity/webapps/skinvity/wp-content/plugins/sitepress-multilingual-cms/classes/jobs/Manual.php(43): WPML\TM\Jobs\Manual->createLocalJob()
#15 /home/skinvity/webapps/skinvity/wp-content/plugins/sitepress-multilingual-cms/vendor/wpml/fp/core/Either.php(207): WPML\TM\Jobs\Manual->createOrReuse()
#16 /home/skinvity/webapps/skinvity/wp-content/plugins/sitepress-multilingual-cms/classes/editor/Editor.php(92): WPML\FP\Right->map()
#17 /home/skinvity/webapps/skinvity/wp-content/plugins/sitepress-multilingual-cms/classes/menu/translation-queue/class-wpml-translations-queue.php(52): WPML\TM\Editor\Editor->open()
#18 /home/skinvity/webapps/skinvity/wp-includes/class-wp-hook.php(324): WPML_Translations_Queue->load()
#19 /home/skinvity/webapps/skinvity/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters()
#20 /home/skinvity/webapps/skinvity/wp-includes/plugin.php(517): WP_Hook->do_action()
#21 /home/skinvity/webapps/skinvity/wp-admin/includes/class-wp-screen.php(424): do_action()
#22 /home/skinvity/webapps/skinvity/wp-admin/includes/screen.php(243): WP_Screen->set_current_screen()
#23 /home/skinvity/webapps/skinvity/wp-admin/admin.php(212): set_current_screen()
#24 {main}
thrown

Captura de pantalla 2024-05-03 131004.png
Captura de pantalla 2024-05-03 125733.png
May 3, 2024 at 8:51 pm #15592814

Ilyes
Supporter

Languages: English (English ) French (Français ) Arabic (العربية )

Timezone: Pacific/Easter (GMT-06:00)

Hello,

Thank you for contacting WPML support team,

After running a backup of your site, we recommend the following steps:
1. Navigate to WPML → Support → Troubleshooting.
2. Click on the following buttons in this order:
• "Clear the cache in WPML"
• "Remove ghost entries from the translation tables"
• "Fix element_type collation"
• "Set language information"
• "Fix post type assignment for translations"

If the problem continues, try deactivating all plugins except for WPML to check if there is a conflict with another plugin.

Finally, does the same error occur if you create a new pop-up and translate it? this will let us verify if the issue is related to this post type or if it is a general issue.

Please let me know if that helped,

Best,

May 10, 2024 at 7:12 am #15612750

antonioM-14

Thank you! That solved the issue.