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

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

เมื่อใช้ BeTheme ร่วมกับ WPML คุณอาจพบปัญหาที่การอัปเดตผลิตภัณฑ์ที่สร้างด้วย Muffin Builder ทำให้การแปลในตัวแก้ไขการแปลขั้นสูง (ATE) ไม่เสร็จสมบูรณ์ ปัญหานี้เกิดขึ้นเนื่องจากการอ้างอิงคลาสขาดหายไป และคุณจะพบข้อผิดพลาดร้ายแรงบันทึกอยู่ใน “WPML > ฝ่ายสนับสนุน > ATE > บันทึกข้อผิดพลาด”:

PHP Fatal error:  Uncaught Error: Class "Mfn_Builder_Fields" not found in /wp-content/themes/betheme/functions/builder/class-mfn-builder-admin.php:77

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

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


  • เปิดไฟล์ …/wp-content/themes/betheme/functions/theme-woocommerce.php

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

  • แทนที่:
    function mfn_on_product_updated( $post_ID, $post_after, $post_before ) {
    
      if ( get_post_type($post_ID) !== 'product' ) return;
    
      require_once(get_theme_file_path('/functions/builder/class-mfn-builder-admin.php'));
            


  • ด้วย:
    function mfn_on_product_updated( $post_ID, $post_after, $post_before ) {
    
      if ( get_post_type($post_ID) !== 'product' ) return;
    
      require_once(get_theme_file_path('/functions/builder/class-mfn-builder-admin.php'));
      require_once(get_theme_file_path('/functions/builder/class-mfn-builder-fields.php'));
            

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