WPML
상태
개발자가 해결함
보고된 제품
WPML Multilingual & Multicurrency for WooCommerce 5.3.5
관련 플러그인/테마
ELEX WooCommerce Role Based Pricing (BASIC)
주제 태그
Compatibility

문제 개요

ELEX WooCommerce Role Based Pricing (BASIC) 플러그인을 사용하는 경우, WooCommerce Multilingual 다중 통화 기능이 활성화되어 있지 않으면 각 사용자 역할별로 다른 가격을 설정할 때 치명적인 오류가 발생할 수 있습니다:


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

임시 해결 방법

진행하기 전에 사이트의 전체 백업을 완료하세요.


  • …/wp-content/plugins/elex-woocommerce-role-based-pricing-plugin-basic/includes/elex-price-discount-admin.php 파일을 여세요.

  • 639번째 줄을 찾으세요.

  • 다음을:
    				if ( is_plugin_active( 'woocommerce-multilingual/wpml-woocommerce.php' ) ) {

  • 다음으로 변경하세요:
    				if ( is_plugin_active( 'woocommerce-multilingual/wpml-woocommerce.php' ) && wcml_is_multi_currency_on() ) {

알려진 모든 문제 →