- สถานะ
- เปิด
- แท็กหัวข้อ
- Compatibility, Known issue
ภาพรวมของปัญหา
หากคุณได้อัปเดต WordPress เป็นเวอร์ชัน 6.7 ใหม่ คุณอาจเห็นข้อความแจ้งเตือนนี้:
Function _load_textdomain_just_in_time was called
- ตั้งแต่ WP 6.7 เป็นต้นไป ควรโหลดการแปลหลังจากฮุก WP init คุณสามารถอ่านเกี่ยวกับปัญหานี้ได้ที่นี่: https://wordpress.org/support/topic/php-error-wp-6-7-notice-function-_load_textdomain_just_in_time-was-called-3/
- ปลั๊กอินบางตัวโหลดไฟล์การแปลก่อนหน้านั้น และทำให้เกิดข้อผิดพลาดก่อนหน้านี้
- โปรดทราบว่าข้อผิดพลาดจะระบุว่าปลั๊กอินใดทำให้เกิดปัญหา:
Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the woocommerce domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /home/customer/www/xxx.com/public_html/wp-includes/functions.php on line 6114สำหรับตัวอย่างนี้ สังเกตว่าปัญหามาจากโดเมน WooCommerce ซึ่งเป็นไปได้มากที่สุดว่าอยู่ในปลั๊กอิน WooCommerce
วิธีแก้ปัญหาชั่วคราว
คุณควรอัปเดตปลั๊กอิน WPML & WooCommerce เป็นเวอร์ชันล่าสุด
หากคุณยังคงพบปัญหานี้ เป็นไปได้มากว่าอาจเกี่ยวข้องกับธีมหรือปลั๊กอินอื่น
WordPress 6.7.1 น่าจะมีการแก้ไขสำหรับปัญหานี้ (ดูที่นี่ – https://core.trac.wordpress.org/ticket/62337)