- ステータス
- 未解決
- トピックタグ
- 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)。