Skip Navigation

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

Problem:
The client is experiencing a fatal error when trying to translate a "project" with WPML Multilingual CMS, which is causing issues on their site.
Solution:
If you're experiencing a similar issue, 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. Remember to back up your database before making any changes.

Please note that the solution provided might be irrelevant due to it being outdated or not applicable to your case. If the issue persists, we highly recommend checking the related known issues, verifying the version of the permanent fix, and confirming that you have installed the latest versions of themes and plugins. If you still need assistance, please open a new support ticket.

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 5 replies, has 2 voices.

Last updated by Andrey 1 year, 1 month ago.

Assisted by: Andrey.

Author Posts
April 18, 2024 at 2:01 pm #15539379

kevinS-33

I am trying to: translate a "project"

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.5.2
Current theme: Avada (version 7.11.7)
Current plugin: WPML Multilingual CMS (version 4.6.10)
PHP version 8.1.2-1ubuntu2.14

Error Details
=============
An error of type E_ERROR was caused in line 501 of the file /app/data/public/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 /app/data/public/wp-content/plugins/sitepress-multilingual-cms/inc/functions-load-tm.php:501
Stack trace:
#0 /app/data/public/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 /app/data/public/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 /app/data/public/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 /app/data/public/wp-content/plugins/sitepress-multilingual-cms/vendor/wpml/collect/src/Illuminate/Support/Traits/Macroable.php(56): call_user_func_array()
#7 /app/data/public/wp-content/plugins/sitepress-multilingual-cms/classes/ATE/Hooks/class-wpml-tm-ate-jobs-actions.php(152): WPML\FP\Fns::__callStatic()
#8 /app/data/public/wp-includes/class-wp-hook.php(324): WPML_TM_ATE_Jobs_Actions->added_translation_jobs()
#9 /app/data/public/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters()
#10 /app/data/public/wp-includes/plugin.php(517): WP_Hook->do_action()
#11 /app/data/public/wp-content/plugins/sitepress-multilingual-cms/inc/translation-management/translation-management.class.php(1478): do_action()
#12 /app/data/public/wp-content/plugins/sitepress-multilingual-cms/classes/class-wpml-translation-job-factory.php(112): TranslationManagement->send_jobs()
#13 /app/data/public/wp-content/plugins/sitepress-multilingual-cms/classes/jobs/Manual.php(164): WPML_Translation_Job_Factory->create_local_job()
#14 /app/data/public/wp-content/plugins/sitepress-multilingual-cms/classes/jobs/Manual.php(43): WPML\TM\Jobs\Manual->createLocalJob()
#15 /app/data/public/wp-content/plugins/sitepress-multilingual-cms/vendor/wpml/fp/core/Either.php(207): WPML\TM\Jobs\Manual->createOrReuse()
#16 /app/data/public/wp-content/plugins/sitepress-multilingual-cms/classes/editor/Editor.php(92): WPML\FP\Right->map()
#17 /app/data/public/wp-content/plugins/sitepress-multilingual-cms/classes/menu/translation-queue/class-wpml-translations-queue.php(52): WPML\TM\Editor\Editor->open()
#18 /app/data/public/wp-includes/class-wp-hook.php(324): WPML_Translations_Queue->load()
#19 /app/data/public/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters()
#20 /app/data/public/wp-includes/plugin.php(517): WP_Hook->do_action()
#21 /app/data/public/wp-admin/includes/class-wp-screen.php(424): do_action()
#22 /app/data/public/wp-admin/includes/screen.php(243): WP_Screen->set_current_screen()
#23 /app/data/public/wp-admin/admin.php(212): set_current_screen()
#24 {main}
thrown

April 18, 2024 at 2:12 pm #15539448

Andrey
WPML Supporter since 06/2013

Languages: English (English ) Russian (Русский )

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

I’m sorry that you ran into trouble with this. Could you please show the screenshots of your steps before getting the error? Does this happen only on a particular page?

April 19, 2024 at 4:04 pm #15544653

kevinS-33

Every time we try to click on the "+" to translate on any page or any component it triggers this critical error where the translator does not work.

-> Happens on all pages

April 19, 2024 at 7:56 pm #15545056

Andrey
WPML Supporter since 06/2013

Languages: English (English ) Russian (Русский )

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

Please follow the instructions given below in order to troubleshoot the problem:

1. Go to WPML → Support → Troubleshooting.
2. Click on the following buttons in 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, you may try disabling all plugins except WPML to eliminate the possibility of a plugin conflict causing it.

However, make sure to backup your database before making any changes.

April 24, 2024 at 5:05 pm #15562075

kevinS-33

Hi Andrey,

We have tried the following steps and still haven't resolved the issue.

April 25, 2024 at 6:23 pm #15567054

Andrey
WPML Supporter since 06/2013

Languages: English (English ) Russian (Русский )

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

Thank you for your feedback.

I need to request temporary access (wp-admin and FTP) to your site – preferably to a test site where the problem has been replicated if possible – in order to be of better help. You will find the needed fields for this below the comment area when you log in to leave your next reply. The information you will enter is private which means only you and I can see and have access to it.

If I need to further debug the problem, I want to ask you about the possibility of replicating your site locally. For this, I'll need to install a "Duplicator" plugin on your site temporarily. This will allow me to create a copy of your site and your content. If you prefer to do it independently, you can provide me with the snapshot and send me the installer file and the zipped package you downloaded.

Let me know how you feel about this.