WPML

문제 개요

PHP 8.x에서 WPML 붙박이 링크 플러그인을 사용하는 경우, 다음과 같은 deprecated 오류가 발생합니다:

PHP Deprecated: Automatic conversion of false to array is deprecated in .../wp-content/plugins/wpml-sticky-links/classes/class-wpml-sticky-links.php on line 19

임시 해결 방법

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

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

  • …/wp-content/plugins/wpml-sticky-links/classes/class-wpml-sticky-links.php 파일을 여세요.
  • 19번째 줄을 찾으세요.
  • 다음 코드 줄 바로 앞에:
    $this->settings['sticky_links_widgets'] = 0;
  • 다음을 추가하세요:
    if (!is_array($this->settings)){
    	$this->settings = array();
    }

모든 알려진 문제

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

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