- الحالة
- محلولة
- تم حلها في
- 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 .