- สถานะ
- แก้ไขแล้ว
- ประเภท
- บั๊ก
- รายงานสำหรับ
- WPML Multilingual & Multicurrency for WooCommerce 5.0.0
- แก้ไขใน
- 5.0.1
ภาพรวมของปัญหา
หากคุณอัปเดตเป็น WPML Multilingual & Multicurrency for WooCommerce 5.0.0 แต่มีปลั๊กอิน WPML ตัวหลักเวอร์ชันเก่ากว่า 4.5.2 คุณจะพบข้อผิดพลาดต่อไปนี้:
PHP Fatal error: Uncaught TypeError: Argument 3 passed to WCML_Switch_Lang_Request::__construct() must be an instance of WPML\Core\ISitePress, instance of SitePress given, called in …/wp-content/plugins/woocommerce-multilingual/wpml-woocommerce.php on line 62 and defined in …/wp-content/plugins/woocommerce-multilingual/inc/wcml-switch-lang-request.php:16
วิธีแก้ปัญหาชั่วคราว
โปรดอัปเดตปลั๊กอิน WPML Multilingual CMS เป็นเวอร์ชันล่าสุดที่มีให้ใช้งานก่อนอัปเดตเป็น WCML 5.0.0