- 상태
- 해결됨
- 해결된 버전
- 4.5.0
문제 개요
일부 상황에서 WPML 라이선스를 등록하려고 할 때 다음과 같은 오류가 표시됩니다:
PHP Fatal error: Uncaught TypeError: Argument 1 passed to OTGS\Installer\Collection::of() must be of the type array, null given, called in ...\wp-content\plugins\sitepress-multilingual-cms\vendor\otgs\installer\includes\class-wp-installer.php on line 1255 and defined in ...\wp-content\plugins\sitepress-multilingual-cms\vendor\otgs\installer\includes\utilities\Collection.php:20
또는 다음과 같이 약간 다른 형태일 수도 있습니다:
PHP Fatal error: Uncaught TypeError: Argument 1 passed to OTGS\Installer\Collection::of() must be of the type array, bool given, called in .../wp-content/plugins/sitepress-multilingual-cms/vendor/otgs/installer/includes/admin-notices/notices/Recommendation.php on line 37 and defined in .../wp-content/plugins/sitepress-multilingual-cms/vendor/otgs/installer/includes/utilities/Collection.php:20
임시 해결 방법
현재 개발팀에서 이 문제를 해결 중이며, 다음 임시 해결 방법을 사용할 수 있습니다:
- 사이트의 전체 백업을 만드세요.
- 데이터베이스에 접속하세요.
- wp_options 테이블을 여세요.
- 테이블에서 wp_installer_settings 키를 제거하세요.
- 여전히 문제가 해결되지 않으면 동일한 테이블에서 otgs_installer_recommendations_admin_notices 키도 삭제하세요.
두 번째 오류 변형(bool 유형이 포함된 오류)의 경우 이전 절차를 동일하게 따라야 하지만, otgs_installer_recommendations_admin_notices 키만 제거하세요.