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

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

หากคุณกำลังใช้ธีม Themify ร่วมกับ WPML 4.5.0 คุณจะเห็นข้อความแสดงข้อผิดพลาดบนแถบเครื่องมือส่วนหน้าเว็บไซต์เมื่อคุณเปิดหน้าแรก: “Builder is not available on this page. Turn On Builder”

คุณจะเห็นข้อผิดพลาด PHP ต่อไปนี้ด้วย:

Fatal error: Uncaught Error: Cannot use object of type Closure as array in …/wp-content/themes/themify-ultra/themify/themify-template-tags.php:1824 Stack trace: #0 …/wp-content/themes/themify-ultra/header.php(120): themify_menu_nav() #1 …/wp-includes/template.php(770): require_once('/var/www/sites/…') #2 …/wp-includes/template.php(716): load_template() #3 …/wp-includes/general-template.php(48): locate_template() #4 …/wp-content/themes/themify-ultra/index.php(8): get_header() #5 …/wp-includes/template.php(772): require('/var/www/sites/…') #6 …/wp-includes/template.php(716): load_template() #7 …/wp-includes/general-template.php(204): locate_template() #8 …/wp-content/themes/themify-ultra/page.php(4): get_template_part() #9 /var/www/sites/sepia-m in …/wp-content/themes/themify-ultra/themify/themify-template-tags.php on line 1824

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

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


  1. เปิดไฟล์นี้: /wp-content/themes/themify-ultra/themify/themify-template-tags.php

  2. ค้นหาบรรทัดที่ 1824

  3. แทนที่บรรทัดนี้:
    if ( is_a( $filter['function'][0], 'WPML_LS_Render' ) ) {


  4. ด้วย:
    if ( is_array( $filter['function'] ) && is_a( $filter['function'][0], 'WPML_LS_Render' ) ) {

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