This thread is resolved. Here is a description of the problem and solution.
Problem:
The client was encountering a critical error in the WooCommerce orders panel after updating to RC 5.4.0-rc.1. The error, 'Call to a member function get_title() on bool', occurred due to the WooCommerce Multilingual plugin not finding a specific shipping method, causing the function
WC_Shipping_Zones::get_shipping_method($shippingInstanceId)
to return false.
Solution:
We recommended the following steps:
1. Ensure you have a backup of your site.
2. Deactivate all plugins except for WPML and WooCommerce, and switch to a default WordPress theme to check if the issue persists.
3. If the problem continues, create a staging site and provide us with admin access for further investigation.
4. As a temporary workaround, modify the file
wp-content/plugins/woocommerce-multilingual/classes/OrderItems/Shipping/ShippingMethod.php
. After the line:
$shippingMethod = \WC_Shipping_Zones::get_shipping_method($shippingInstanceId);
Add the following code:
if ($shippingMethod === false){<br /> return;<br />}
This change prevents the error by stopping the function execution if the shipping method is not found.
If this solution does not resolve your issue, or if it seems outdated or irrelevant to your case, please visit our support forum to open a new ticket. We also 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.
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 contains 0 replies, has 0 voices.
Last updated by 1 week, 2 days ago.
Assisted by: Dražen.