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.
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/
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.