Skip to content Skip to sidebar

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

Problem:
The client is experiencing a fatal error when selecting a shipping method during the manual creation of an order on their WooCommerce site. The error message indicates an issue with the WooCommerce Multilingual & Multicurrency plugin, specifically a call to a member function on a boolean value.
Solution:
We recommend updating WPML and its addons to the latest versions. This issue appears similar to a known problem that was resolved in WooCommerce Multilingual & Multicurrency version 5.4.0. For more details, please check the related issue on our forum: https://wpml.org/forums/topic/call-to-a-member-function-get_title-on-bool-fatal-error/#post-16661924.

If this solution does not resolve your issue or seems irrelevant due to being outdated or not applicable to your case, we highly recommend checking related known issues at https://wpml.org/known-issues/, verifying the version of the permanent fix, and confirming that you have installed the latest versions of themes and plugins. If the problem persists, please open a new support ticket for further assistance.

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 0 reply, has 0 voices.

Last updated by Bruno Kos 1 year ago.

Assisted by: Bruno Kos.

Author Posts
February 17, 2025 at 6:46 am #16711714

sidneyv-2

Background of the issue:
I am trying to create a manual order on my website hidden link. When I select a shipping method, the site generates a fatal error, and the order is not created. However, if I leave the shipping method as 'NB', I can create the order. The error seems related to WPML. I am using WordPress version 6.6.2, the Betheme theme version 27.5.9, and the WooCommerce Multilingual & Multicurrency plugin version 5.4.0-rc.1 with PHP version 8.1.2-1ubuntu2.20.

When the order is placed on the website there isn't a problem.

Symptoms:
Als je om hulp vraagt voor dit probleem, wordt er misschien gevraagd om de volgende informatie:
WordPress versie 6.6.2
Actief thema: Betheme (versie 27.5.9)
Huidige plugin: WooCommerce Multilingual & Multicurrency (versie 5.4.0-rc.1) PHP versie 8.1.2-1ubuntu2.20

Foutdetails
===========
Een fout van het type E_ERROR werd veroorzaakt op regelnummer 52 van het bestand /var/www/threedee.nl/wp-content/plugins/woocommerce-multilingual/classes/OrderItems/Shipping/ShippingMethod.php. Fout bericht: Uncaught Error: Call to a member function get_title() on bool in /var/www/threedee.nl/wp-content/plugins/woocommerce-multilingual/classes/OrderItems/Shipping/ShippingMethod.php:52
Stack trace:
#0 /var/www/threedee.nl/wp-content/plugins/woocommerce-multilingual/classes/OrderItems/Hooks.php(187): WCMLOrderItemsShippingShippingMethod->translateItem()
#1 /var/www/threedee.nl/wp-content/plugins/woocommerce-multilingual/classes/OrderItems/Hooks.php(160): WCMLOrderItemsHooks->translateShipping()
#2 /var/www/threedee.nl/wp-content/plugins/woocommerce-multilingual/classes/OrderItems/Hooks.php(76): WCMLOrderItemsHooks->translateOrderItems()
#3 /var/www/threedee.nl/wp-includes/class-wp-hook.php(326): WCMLOrderItemsHooks->getOrderItems()
#4 /var/www/threedee.nl/wp-includes/plugin.php(205): WP_Hook->apply_filters()
#5 /var/www/threedee.nl/wp-content/plugins/woocommerce/includes/abstracts/abstract-wc-order.php(918): apply_filters()
#6 /var/www/threedee.nl/wp-content/plugins/woocommerce/includes/abstracts/abstract-wc-order.php(972): WC_Abstract_Order->get_items()
#7 /var/www/threedee.nl/wp-content/plugins/sendy-woocommerce/lib/Modules/AdminModule.php(105): WC_Abstract_Order->get_shipping_methods()
#8 /var/www/threedee.nl/wp-includes/class-wp-hook.php(324): SendyRuntimeModulesAdminModule->manage_shop_order_posts_custom_column()
#9 /var/www/threedee.nl/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters()
#10 /var/www/threedee.nl/wp-includes/plugin.php(517): WP_Hook->do_action()
#11 /var/www/threedee.nl/wp-admin/includes/class-wp-posts-list-table.php(1398): do_action()
#12 /var/www/threedee.nl/wp-admin/includes/class-wp-list-table.php(1802): WP_Posts_List_Table->column_default()
#13 /var/www/threedee.nl/wp-admin/includes/class-wp-posts-list-table.php(1432): WP_List_Table->single_row_columns()
#14 /var/www/threedee.nl/wp-admin/includes/class-wp-posts-list-table.php(834): WP_Posts_List_Table->single_row()
#15 /var/www/threedee.nl/wp-admin/includes/class-wp-posts-list-table.php(810): WP_Posts_List_Table->_display_rows()
#16 /var/www/threedee.nl/wp-admin/includes/class-wp-list-table.php(1712): WP_Posts_List_Table->display_rows()
#17 /var/www/threedee.nl/wp-admin/includes/class-wp-list-table.php(1639): WP_List_Table->display_rows_or_placeholder()
#18 /var/www/threedee.nl/wp-admin/edit.php(503): WP_List_Table->display()
#19 {main}
thrown

Questions:
Please help me to solve this issue so I can select a shipping method in manual created orders.

February 17, 2025 at 11:34 am #16713719

Bruno Kos
WPML Supporter since 12/2018

Languages: English (English ) German (Deutsch ) French (Français )

Timezone: Europe/Zagreb (GMT+01:00)

Can you update WPML and its adons to the latest versions and try then?

Because this sounds like https://wpml.org/forums/topic/call-to-a-member-function-get_title-on-bool-fatal-error/#post-16661924, and it should have been resolved already in WooCommerce Multilingual & Multicurrency 5.4.0.

checkfor.png