WPML
상태
개발자가 해결함
관련 플러그인/테마
Themify Ultra

문제 개요

WPML 4.5.0과 함께 Themify 테마를 사용하는 경우, 홈페이지를 열 때 프런트엔드 도구 모음에 “Builder is not available on this page. Turn On Builder”라는 오류 메시지가 표시됩니다.

또한 다음과 같은 PHP 오류도 표시됩니다.

Fatal error: Uncaught Error: Cannot use object of type Closure as array in …/wp-content/themes/themify-ultra/themify/themify-template-tags.php:1824 Stack trace: #0 …/wp-content/themes/themify-ultra/header.php(120): themify_menu_nav() #1 …/wp-includes/template.php(770): require_once('/var/www/sites/…') #2 …/wp-includes/template.php(716): load_template() #3 …/wp-includes/general-template.php(48): locate_template() #4 …/wp-content/themes/themify-ultra/index.php(8): get_header() #5 …/wp-includes/template.php(772): require('/var/www/sites/…') #6 …/wp-includes/template.php(716): load_template() #7 …/wp-includes/general-template.php(204): locate_template() #8 …/wp-content/themes/themify-ultra/page.php(4): get_template_part() #9 /var/www/sites/sepia-m in …/wp-content/themes/themify-ultra/themify/themify-template-tags.php on line 1824

임시 해결 방법

진행하기 전에 사이트를 전체 백업하세요.


  1. 다음 파일을 여세요: /wp-content/themes/themify-ultra/themify/themify-template-tags.php.

  2. 1824번째 줄을 찾으세요.

  3. 다음 줄을:
    if ( is_a( $filter['function'][0], 'WPML_LS_Render' ) ) {


  4. 다음으로 교체하세요:
    if ( is_array( $filter['function'] ) && is_a( $filter['function'][0], 'WPML_LS_Render' ) ) {

알려진 모든 문제 →