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 is split from https://wpml.org/forums/topic/issues-with-woocommerce-advanced-shipping/
Tagged: Bug
This topic contains 2 replies, has 2 voices.
Last updated by Bigul 1 year, 5 months ago.
Assisted by: Bigul.
Author | Posts |
---|---|
June 29, 2023 at 2:50 pm #13918735 | |
dorothyC |
Please note that automatic translations are now paused because we are translating all site content manually. The issue of "fatal error" remains when translating the Advanced Shipping. Although when returning "back" to the page they seem to be completed. If you could let me know what could be the issue of that fatal error. Thank you. |
June 29, 2023 at 3:10 pm #13919001 | |
Bigul Supporter
Languages: English (English ) Timezone: Europe/Vienna (GMT+01:00) |
Hello, Welcome to the WPML support forum. I will do my best to help you to resolve the issue. The debug.log is showing the following error. We have a similar issue in the past and it is fixed already. Please check this URL for more details - https://wpml.org/errata/woocommerce-multilingual-fatal-error-uncaught-error-call-to-a-member-function-get_source_language_code-on-bool/ PHP Fatal error: Uncaught Error: Call to a member function get_source_language_code() on bool in C:\wamp330\www\alhayya\wp-content\plugins\sitepress-multilingual-cms\inc\functions-load-tm.php:497 Stack trace: #0 C:\wamp330\www\alhayya\wp-content\plugins\sitepress-multilingual-cms\classes\ATE\Hooks\class-wpml-tm-ate-jobs-actions.php(153): wpml_tm_create_ATE_job_creation_model('96', true) #1 [internal function]: WPML_TM_ATE_Jobs_Actions->{closure}('96', 0) #2 C:\wamp330\www\alhayya\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 C:\wamp330\www\alhayya\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 C:\wamp330\www\alhayya\wp-content\plugins\sitepress-multilingual-cms\vendor\wpml\collect\src\Illuminate\Support\Traits\Macroable.php(56): call_user_func_array(Object(Closure), Array) #7 C:\wamp330\www\alhayya\wp-content\plugins\sitepress-multilingual-cms\classes\ATE\Hooks\class-wpml-tm-ate-jobs-actions.php(152): WPML\FP\Fns::__callStatic('map', Array) #8 C:\wamp330\www\alhayya\wp-includes\class-wp-hook.php(308): WPML_TM_ATE_Jobs_Actions->added_translation_jobs(Array, 6, Object(WPML_TM_Translation_Batch)) #9 C:\wamp330\www\alhayya\wp-includes\class-wp-hook.php(332): WP_Hook->apply_filters('', Array) #10 C:\wamp330\www\alhayya\wp-includes\plugin.php(517): WP_Hook->do_action(Array) #11 C:\wamp330\www\alhayya\wp-content\plugins\sitepress-multilingual-cms\inc\translation-management\translation-management.class.php(1469): do_action('wpml_added_tran...', Array, 6, Object(WPML_TM_Translation_Batch)) #12 C:\wamp330\www\alhayya\wp-content\plugins\sitepress-multilingual-cms\inc\translation-management\translation-management.class.php(1307): TranslationManagement->send_jobs(Object(WPML_TM_Translation_Batch), 'post', 6) #13 C:\wamp330\www\alhayya\wp-includes\class-wp-hook.php(308): TranslationManagement->action_send_jobs(Object(WPML_TM_Translation_Batch), 'post', 6) #14 C:\wamp330\www\alhayya\wp-includes\class-wp-hook.php(332): WP_Hook->apply_filters('', Array) #15 C:\wamp330\www\alhayya\wp-includes\plugin.php(517): WP_Hook->do_action(Array) #16 C:\wamp330\www\alhayya\wp-content\plugins\sitepress-multilingual-cms\API\Batch.php(40): do_action('wpml_tm_send_po...', Object(WPML_TM_Translation_Batch), 'post', 6) #17 C:\wamp330\www\alhayya\wp-content\plugins\sitepress-multilingual-cms\API\Batch.php(56): WPML\TM\API\Batch::WPML\TM\API\{closure}(Object(WPML_TM_Translation_Batch)) #18 C:\wamp330\www\alhayya\wp-content\plugins\sitepress-multilingual-cms\API\Batch.php(44): WPML\TM\API\Batch::send(Object(Closure), Array, Object(WPML_TM_Translation_Batch)) #19 [internal function]: WPML\TM\API\Batch::sendPosts(Object(WPML\TM\Jobs\Dispatch\Messages), Object(WPML_TM_Translation_Batch), 6) #20 C:\wamp330\www\alhayya\wp-content\plugins\sitepress-multilingual-cms\vendor\wpml\fp\core\functions.php(100): call_user_func_array('WPML\\TM\\API\\Bat...', Array) #21 C:\wamp330\www\alhayya\wp-content\plugins\sitepress-multilingual-cms\classes\translation-jobs\Dispatch\Elements.php(49): WPML\FP\{closure}(Object(WPML\TM\Jobs\Dispatch\Messages), Object(WPML_TM_Translation_Batch)) #22 C:\wamp330\www\alhayya\wp-content\plugins\sitepress-multilingual-cms\classes\translation-jobs\Dispatch\Posts.php(19): WPML\TM\Jobs\Dispatch\Elements::dispatch(Object(Closure), Object(WPML\TM\Jobs\Dispatch\Messages), Object(Closure), Array, 'post') #23 C:\wamp330\www\alhayya\wp-content\plugins\sitepress-multilingual-cms\inc\translation-management\translation-management.class.php(488): WPML\TM\Jobs\Dispatch\Posts::dispatch(Object(Closure), Object(WPML\TM\Jobs\Dispatch\Messages), Object(Closure), Array) #24 C:\wamp330\www\alhayya\wp-content\plugins\sitepress-multilingual-cms\inc\translation-management\translation-management.class.php(285): TranslationManagement->process_request(Array) #25 C:\wamp330\www\alhayya\wp-includes\class-wp-hook.php(308): TranslationManagement->wp_loaded('') #26 C:\wamp330\www\alhayya\wp-includes\class-wp-hook.php(332): WP_Hook->apply_filters(NULL, Array) #27 C:\wamp330\www\alhayya\wp-includes\plugin.php(517): WP_Hook->do_action(Array) #28 C:\wamp330\www\alhayya\wp-settings.php(645): do_action('wp_loaded') #29 C:\wamp330\www\alhayya\wp-config.php(118): require_once('C:\\wamp330\\www\\...') #30 C:\wamp330\www\alhayya\wp-load.php(50): require_once('C:\\wamp330\\www\\...') #31 C:\wamp330\www\alhayya\wp-admin\admin.php(34): require_once('C:\\wamp330\\www\\...') #32 {main} thrown in C:\wamp330\www\alhayya\wp-content\plugins\sitepress-multilingual-cms\inc\functions-load-tm.php on line 497 So we will test it further and get back to you as soon as possible. Please wait. -- Bigul |
July 10, 2023 at 9:31 am #13976267 | |
Bigul Supporter
Languages: English (English ) Timezone: Europe/Vienna (GMT+01:00) |
Hello, Please try the following steps after a full site backup{mandatory} and make sure you can translate the shipping method posts or not. Refer to this article for more details - https://wpml.org/documentation/automatic-translation/#translating-individual-pages-posts-and-other-content-automatically 1) Visit WPML>>Settings>>Translation Mode In my local copy, the Fatal error is happening while following these steps. So please try it and let us know your feedback. Really sorry for the late response, due to the holidays. For your kind information, the *Advanced Flat Rate Shipping For WooCommerce* plugin is not included on the WPML official compatibility list for the Plugins - https://wpml.org/plugin/. It does not mean that this plugin is not compatible with WPML, but our compatibility team has not tested it yet. -- Bigul |