- Trạng thái
- Đang mở
- Thẻ chủ đề
- Compatibility, Known issue
Tổng quan về lỗi
Nếu bạn đã cập nhật WordPress lên phiên bản 6.7 mới, bạn có thể đã thấy thông báo này:
Function _load_textdomain_just_in_time was called
- Kể từ WP 6.7, các bản dịch nên được tải sau init hook của WP, bạn có thể đọc về vấn đề này tại đây: https://wordpress.org/support/topic/php-error-wp-6-7-notice-function-_load_textdomain_just_in_time-was-called-3/
- Một số plugin tải các tệp bản dịch sớm hơn, và điều này gây ra lỗi trước đó.
- Lưu ý rằng lỗi này chỉ ra plugin nào đã gây ra vấn đề:
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 6114Trong ví dụ này, hãy lưu ý rằng vấn đề xuất phát từ domain WooCommerce; rất có thể nó nằm trong plugin WooCommerce.
Giải pháp tạm thời
Bạn nên cập nhật plugin WPML & WooCommerce lên phiên bản mới nhất.
Nếu bạn vẫn gặp sự cố này, rất có thể nó liên quan đến một giao diện hoặc plugin khác;
WordPress 6.7.1 rất có thể sẽ có bản sửa lỗi cho sự cố này (xem tại đây – https://core.trac.wordpress.org/ticket/62337)