Resolved by author
Reported for: WooCommerce Multilingual & Multicurrency 5.3.5
Overview of the issue
If you are using the ELEX WooCommerce Role Based Pricing (BASIC) plugin, you may encounter a fatal error when configuring different prices for each user role if the WooCommerce Multilngual multicurrency feature is not activated:
PHP Fatal error: Uncaught Error: Call to a member function get_client_currency() on null in .../wp-content/plugins/elex-woocommerce-role-based-pricing-plugin-basic/includes/elex-price-discount-admin.php:642
Workaround
Please, make sure of having a full backup of your site before proceeding.
- Open …/wp-content/plugins/elex-woocommerce-role-based-pricing-plugin-basic/includes/elex-price-discount-admin.php file.
- Look for line 639.
- Replace:
if ( is_plugin_active( 'woocommerce-multilingual/wpml-woocommerce.php' ) ) {
- With:
if ( is_plugin_active( 'woocommerce-multilingual/wpml-woocommerce.php' ) && wcml_is_multi_currency_on() ) {