- 상태
- 해결됨
- 해결된 버전
- 4.3.13
- 관련 플러그인/테마
- Elementor
문제 개요
Elementor를 사용하여 생성한 콘텐츠를 번역하려고 하면 다음 오류 메시지가 표시될 수 있습니다:
PHP Fatal error: Uncaught TypeError: Argument 1 passed to WPML\PB\Elementor\DynamicContent\Strings::WPML\PB\Elementor\DynamicContent\{closure}() must be of the type array, string given in /wp-content/plugins/sitepress-multilingual-cms/vendor/wpml/page-builders-elementor/src/DynamicContent/Strings.php:82
이 문제는 사용자마다 다양한 원인으로 발생할 수 있으며, 일반적으로 플러그인이나 테마가 예기치 않은 방식으로 콘텐츠 저장 방식을 수정하기 때문에 발생합니다.
향후 업데이트에서 이 문제를 해결할 예정입니다.
임시 해결 방법
이 문제를 임시로 해결하려면 다음 파일(…/wp-content/plugins/sitepress-multilingual-cms/vendor/wpml/page-builders-elementor/src/DynamicContent/Strings.php)을 열고 82번째 줄의:
$isDynamic = function( array $item ) { return isset( $item[ self::KEY_DYNAMIC ] ); };
부분을 다음으로 교체하세요.
$isDynamic = function( $item ) { return isset( $item[ self::KEY_DYNAMIC ] ); };
임시 해결 방법을 적용한 후 제대로 저장되도록 하려면 번역을 다시 완료해야 할 수 있습니다.
질문이나 관련 문제가 있는 경우 지원 팀에 문의하여 이 임시 해결 방법을 적용했다고 알려주세요.