- סטטוס
- פתוח
- תגיות נושא
- Compatibility, Known issue
סקירה כללית של התקלה
אם עדכנת את WordPress לגרסה 6.7 החדשה, ייתכן שראית את ההודעה הזו:
Function _load_textdomain_just_in_time was called
- החל מ־WP 6.7, יש לטעון תרגומים לאחר ההוק init של WP, תוכל לקרוא על בעיה זו כאן: 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)