- סטטוס
- נפתר
- נפתר בגרסה
- 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 .