WPML

문제 개요

경우에 따라 WPML 및 Divi 테마를 최신 버전으로 업데이트한 후 다음과 같은 알림이 표시될 수 있습니다:

Warning: Undefined array key “display_conditions” in …/wp-content/plugins/sitepress-multilingual-cms/addons/wpml-page-builders/classes/Integrations/Divi/DisplayConditions.php on line 23

임시 해결 방법

이 문제는 해결되었습니다. 최신 버전으로 업데이트하면 사이트에서 이 문제가 해결되므로, 아직 업데이트할 수 없는 경우에만 이 임시 해결 방법이 필요합니다.

이 경고는 사이트에 영향을 주지 않지만 개발팀에서 문제를 해결하고 있습니다. 그동안 사이트를 전체 백업한 후 다음 두 가지 임시 해결 방법 중 하나를 적용할 수 있습니다.

  1. functions.php 파일을 여세요.
  2. 다음 코드를 추가하세요.
    PHP
    $should_i_run = get_transient( 'divifix' ); if ( $should_i_run == false ) { set_transient( 'divifix', true, 10000); $test = get_option( "et_divi" ); unset ( $test["builder_global_presets_history"] ); update_option( "et_divi", $test ); }
  3. 사이트의 프런트엔드를 방문하세요.
  4. 이전 코드를 제거하세요.

이 방법으로 해결되지 않으면 다음을 수행할 수 있습니다.

  1. /wp-content/plugins/sitepress-multilingual-cms/addons/wpml-page-builders/classes/Integrations/Divi/DisplayConditions.php 파일을 여세요.
  2. 23번째 줄을 찾으세요.
  3. 다음 코드를:
    PHP
    if ( $atts['display_conditions'] && self::BASE64_EMPTY_ARRAY !== $atts['display_conditions'] ) {
    다음으로 교체하세요.
    PHP
    if ( isset( $atts['display_conditions'] ) && self::BASE64_EMPTY_ARRAY !== $atts['display_conditions'] ) {

모든 알려진 문제

여전히 이 문제가 발생합니까?

업데이트해도 문제가 해결되지 않으면 지원 문의를 하세요. 함께 살펴보겠습니다.