Skip to content Skip to sidebar

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.

Sun Mon Tue Wed Thu Fri Sat
9:00 – 18:00 9:00 – 18:00 9:00 – 18:00 9:00 – 18:00 9:00 – 18:00 - -
- - - - - - -

Supporter timezone: Asia/Yerevan (GMT+04:00)

This topic contains 2 replies, has 2 voices.

Last updated by Christopher Amirian 1 year, 10 months ago.

Assisted by: Christopher Amirian.

Author Posts
September 15, 2023 at 4:31 am #14400295

wei-cheng-wilsonk

Fatal error: Uncaught Error: Call to a member function get_source_language_code() on bool in /home/roycefur/public_html/wp-content/plugins/sitepress-multilingual-cms/inc/functions-load-tm.php:497 Stack trace: #0 /home/roycefur/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('1132', true) #1 [internal function]: WPML_TM_ATE_Jobs_Actions->{closure}('1132', 0) #2 /home/roycefur/public_html/wp-content/plugins/sitepress-multilingual-cms/vendor/wpml/fp/core/Fns.php(164): array_map(Object(Closure), Array, Array) #3 [internal function]: WPML\FP\Fns::WPML\FP\{closure}(Object(Closure), Array) #4 /home/roycefur/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]: WPML\FP\Fns::WPML\FP\{closure}(Object(Closure), Array) #6 /home/roycefur/public_html/wp-content/plugins/sitepress-multilingual-cms/vendor/wpml/collect/src/ in /home/roycefur/public_html/wp-content/plugins/sitepress-multilingual-cms/inc/functions-load-tm.php on line 497
There has been a critical error on this website. Please check your site admin email inbox for instructions.

September 15, 2023 at 12:44 pm #14403317

wei-cheng-wilsonk

Error Details
=============
An error of type E_ERROR was caused in line 497 of the file /home/roycefur/public_html/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/roycefur/public_html/wp-content/plugins/sitepress-multilingual-cms/inc/functions-load-tm.php:497
Stack trace:
#0 /home/roycefur/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('1132', true)
#1 [internal function]: WPML_TM_ATE_Jobs_Actions->{closure}('1132', 0)
#2 /home/roycefur/public_html/wp-content/plugins/sitepress-multilingual-cms/vendor/wpml/fp/core/Fns.php(164): array_map(Object(Closure), Array, Array)
#3 [internal function]: WPML\FP\Fns::WPML\FP\{closure}(Object(Closure), Array)
#4 /home/roycefur/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]: WPML\FP\Fns::WPML\FP\{closure}(Object(Closure), Array)
#6 /home/roycefur/public_html/wp-content/plugins/sitepress-multilingual-cms/vendor/wpml/collect/src/

September 17, 2023 at 8:55 am #14407881

Christopher Amirian
WPML Supporter since 07/2020

Languages: English (English )

Timezone: Asia/Yerevan (GMT+04:00)

Hi there,

Before this ticket is assigned to one of my colleagues, I'll give the initial answer.

We had a similar issue on the past with the workaround below:

https://wpml.org/errata/woocommerce-multilingual-fatal-error-uncaught-error-call-to-a-member-function-get_source_language_code-on-bool/

I also suggest that you have an updated version of WPML and WPML addons:

- IMPORTANT STEP! Create a backup of your website. Or better approach will be to test this on a copy/staging version of the website to avoid any disruption of a live website.
- Go to "WordPress Dashboard > Plugins > Add new > Commercial (tab)".
- Click the "Check for Updates" button.
- Update WPML and its addons there.

For more information:
https://wpml.org/faq/install-wpml/#automated-updates

Finally, to be able to have more information on your website setup, I'd appreciate it if you can share the debug information with us:

https://wpml.org/faq/provide-debug-information-faster-support/

Thanks.

The topic ‘[Closed] Fatal error: Uncaught Error: Call to a member function get_source_language_code(’ is closed to new replies.