- Trạng thái
- Đã giải quyết
- Đã giải quyết trong
- 4.5.0
Tổng quan về lỗi
Trong một số trường hợp, khi bạn cố gắng đăng ký giấy phép WPML, bạn thấy lỗi sau:
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
Hoặc biến thể hơi khác này:
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
Giải pháp tạm thời
Các nhà phát triển của chúng tôi đang xử lý vấn đề này, tuy nhiên bạn có thể sử dụng giải pháp tạm thời sau:
- Tạo bản sao lưu đầy đủ cho trang web của bạn.
- Truy cập cơ sở dữ liệu của bạn.
- Mở bảng wp_options.
- Xóa khóa wp_installer_settings khỏi bảng.
- Nếu vấn đề vẫn chưa được khắc phục thì hãy xóa cả khóa otgs_installer_recommendations_admin_notices khỏi cùng bảng đó.
Đối với biến thể lỗi thứ hai (biến thể có loại bool), bạn cũng nên làm theo quy trình trên, nhưng chỉ xóa khóa otgs_installer_recommendations_admin_notices .