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 ออกจากตารางเดียวกันด้วย

สำหรับรูปแบบข้อผิดพลาดที่สอง (รูปแบบที่มีประเภท bool) คุณควรทำตามขั้นตอนก่อนหน้าเช่นกัน แต่ลบเฉพาะคีย์ otgs_installer_recommendations_admin_notices

ปัญหาที่ทราบแล้วทั้งหมด →