WPML
ステータス
解決済み
解決されたバージョン
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

回避策

開発チームが対応中ですが、以下の回避策をご利用いただけます。


  1. サイトの完全なバックアップを作成します。

  2. データベースにアクセスします。

  3. wp_optionsテーブルを開きます。

  4. テーブルからwp_installer_settingsキーを削除します。

  5. 問題が解決しない場合は、同じテーブルからotgs_installer_recommendations_admin_noticesキーも削除します。

2つ目のエラーのバリエーション(boolタイプのもの)についても同様の手順に従いますが、otgs_installer_recommendations_admin_notices キーのみを削除します。

すべての既知の問題 →