- สถานะ
- แก้ไขแล้ว
- รายงานสำหรับ
- WPML Multilingual CMS 4.6.13
- แก้ไขใน
- Elementor Pro 3.26.0
- ปลั๊กอิน/ธีมที่เกี่ยวข้อง
- Elementor
- แท็กหัวข้อ
- Compatibility
ภาพรวมของปัญหา
เมื่อบันทึกหน้า Elementor ที่แปลแล้วซึ่งมีวิดเจ็ต Form หรือวิดเจ็ตที่คล้ายกัน (เช่น วิดเจ็ตค้นหา) ในตัวแก้ไขการแปลขั้นสูง (ATE) อาจเกิดข้อผิดพลาดร้ายแรงขึ้น และโพสต์จะไม่ได้รับการบันทึก ปัญหานี้เกิดขึ้นโดยเฉพาะเมื่อเปิดใช้งานคุณสมบัติ Nested Elements ของ Elementor
PHP Fatal error: Uncaught Error: Call to a member function get_main_id() on null in /plugins/elementor-pro/core/utils.php:80
วิธีแก้ปัญหาชั่วคราว
โปรดตรวจสอบให้แน่ใจว่าคุณได้สำรองข้อมูลไซต์ทั้งหมดก่อนดำเนินการต่อ
- เปิดไฟล์ …/wp-content/plugins/elementor-pro/core/utils.php
- ค้นหาบรรทัดที่ 80
- แทนที่:
if ( isset( Plugin::elementor()->documents ) ) { - ด้วย:
if ( isset( Plugin::elementor()->documents ) && Plugin::elementor()->documents->get_current() ) {