- 状态
- 已解决
- 解决于
- 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 键。