Resolved
Resolved in: 4.12.0
Overview of the issue
In some rare cases where another plugin also manages currencies, WooCommerce Multilingual “supported currencies” filter can be triggered when WooCommerce Multilingual Multi-Currency is actually disabled.
So far, this issue has only been reported for websites using certain specific plugins that are not officially compatible with WPML / WooCommerce Multilingual. Please attempt the workaround below if you experience the following error on your website, either directly on the page, or as a result of an AJAX call when switching currencies or location:
Fatal error: Uncaught Error: Call to a member function get_client_currency() on null in /wp-content/plugins/woocommerce-multilingual/classes/multi-currency/payment-gateways/class-wcml-payment-gateway-paypal.php:158
Workaround
We’re working on a permanent fix for this issue. In the meantime, please use this workaround:
- Back up your website files and database.
- Modify woocommerce-multilingual/classes/multi-currency/payment-gateways/class-wcml-payment-gateway-paypal.php LINES 156 – 158
fromglobal $woocommerce_wpml; $client_currency = $woocommerce_wpml->multi_currency->get_client_currency();
to
global $woocommerce_wpml; if ( is_null( $woocommerce_wpml->multi_currency ) ) { return $supported_currencies; } $client_currency = $woocommerce_wpml->multi_currency->get_client_currency();
If you have any questions or wish to report a related problem, please mention this known issue so that our team can provide you with efficient support.
Hello, I have Currency Converter on my page
I added 2 languages TURKISH ENGLISH
Everything works in Turkish, active currency y, but when I translate it to English, it shows 4-digit numbers as 0.01
They said Wpml Solves it
Help Me Pls
Hey Özgün,
It seems that your case is different from the one reported here. Could you please open a ticket in our support forum so we can investigate it better?
Thank you for your help.
I tried to open support but I couldn’t sign up
https://www.hizliresim.com/7sepswt
I mean the main money of the site is TL wplm There are 2 languages, everything is normal in Turkish, but it gives an error in English in this way.
For having access to our support, you need to use your WPML license credentials.
If for any reason they are not working, you can always reset your password and try again.
Hey everyone,
We just released WCML 4.12.0 which should solve this issue. Don’t hesitate to make a full backup before proceeding.
Regards