WPML
상태
개발자가 해결함
관련 플러그인/테마
Avada
주제 태그
Compatibility

문제 개요

Avada 테마를 사용 중인 경우, 포트폴리오 글 번역 시 문제가 발생할 수 있습니다. 글 번역에 로딩 아이콘이 표시되며 디버그 정보에서 이와 유사한 오류를 확인할 수 있습니다:


Call to a member function get_cart_contents_count() on null .../wp-content/themes/Avada/includes/avada-functions.php:662

임시 해결 방법

진행하기 전에 사이트의 전체 백업을 완료했는지 확인하세요.


  • …/wp-content/themes/Avada/includes/avada-functions.php 파일을 여세요.

  • 다음 코드를:
    	function fusion_add_woo_cart_to_widget_html() {
    		$items = '';
    
    		if ( class_exists( 'WooCommerce' ) && ! is_admin() ) {

  • 다음과 같이 변경하세요:
    	function fusion_add_woo_cart_to_widget_html() {
    		$items = '';
    
    		if ( class_exists( 'WooCommerce' ) && ! is_admin()  && ! ( defined( 'REST_REQUEST' ) && REST_REQUEST ) ) {

알려진 모든 문제 →