WPML
สถานะ
แก้ไขแล้วโดยผู้พัฒนา
ปลั๊กอิน/ธีมที่เกี่ยวข้อง
Essentials
แท็กหัวข้อ
Compatibility, Elementor Custom Widgets

ภาพรวมของปัญหา

เมื่อใช้ปลั๊กอิน pixfort Core ของ ธีม Essentials ร่วมกับ WPML คุณอาจพบข้อผิดพลาด PHP ร้ายแรงเมื่อมีการใช้วิดเจ็ต Auto Video Elementor ซึ่งส่งผลให้หน้าเว็บว่างเปล่าหรือทำให้หน้าเว็บไม่สามารถโหลดได้ ข้อความแสดงข้อผิดพลาดประกอบด้วย:

PHP Fatal error: Uncaught TypeError: Illegal offset type in isset or empty in /sitepress-multilingual-cms/classes/core-abstract-classes/class-wpml-element-translation.php

วิธีแก้ปัญหาชั่วคราว

โปรดตรวจสอบให้แน่ใจว่าคุณมีการสำรองข้อมูลไซต์ทั้งหมดก่อนดำเนินการต่อ


  • เปิดไฟล์ …/wp-content/plugins/pixfort-core/includes/elements/AutoVideo.php

  • ค้นหาบรรทัดที่ 85

  • แทนที่:
    $poster = apply_filters( 'wpml_object_id', $poster, 'attachment', true );
            


  • ด้วย:
    if ( is_int( $poster ) ) {
    	$poster = apply_filters( 'wpml_object_id', $poster, 'attachment', true );
    }
            

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