- 상태
- 해결됨
- 보고된 제품
- Advanced Custom Fields Multilingual 2.1.3
- 해결된 버전
- Advanced Custom Fields Multilingual 2.1.4
- 관련 플러그인/테마
- Advanced Custom Fields (ACF)
- 주제 태그
- Compatibility
문제 개요
PHP 8.1 이상 환경에서 번역이 복제본인 경우 Advanced Custom Fields 리피터 필드를 업데이트할 때 치명적인 오류가 발생할 수 있습니다.
PHP Fatal error: Uncaught TypeError: array_keys(): Argument #1 ($array) must be of type array, null given in .../wp-content/plugins/acfml/classes/class-wpml-acf-repeater-shuffle.php:175
임시 해결 방법
진행하기 전에 전체 사이트 백업을 완료했는지 확인하세요.
- …/wp-content/plugins/acfml/classes/class-wpml-acf-repeater-shuffle.php 파일을 여세요.
- 24번째 줄을 찾으세요.
- 다음 코드를:
private $meta_data_after_move;
- 다음과 같이 교체하세요:
private $meta_data_after_move = [];