Fixing the '_load_textdomain_just_in_time' Notice in WordPress 6.7+
Content
A common notice has been appearing for many users since the release of WordPress 6.7.0. If you see a message like Notice: Function _load_textdomain_just_in_time was called incorrectly... on your site or in your debug.log file, this guide will help you understand why it's happening and what you can do about it.
What Is This Notice?
This is a PHP notice, not a critical error. It was introduced in WordPress 6.7.0 as part of an improvement to how the software handles translations (also known as internationalization or i18n). The notice is a warning that a theme or plugin is attempting to load its translation files too early in the WordPress loading process. According to WordPress core development standards, translations should be loaded during or after the init action.
Why Am I Seeing It?
You are seeing this notice for one of two reasons:
- WordPress Debug Mode is Enabled: Your site's
wp-config.phpfile hasdefine( 'WP_DEBUG', true );enabled, which causes all PHP notices, warnings, and errors to be displayed or logged. - Your Hosting Provider is Displaying Errors: Some web servers are configured to output PHP errors directly to the browser, regardless of the WordPress debug setting.
The notice itself is triggered by code in a theme or plugin that hasn't been updated to comply with the new translation loading timing in WordPress 6.7+. Common culprits mentioned in support forums include themes like 'xstore', 'pinkmart', and 'anona', and plugins like Advanced Custom Fields (ACF), WooCommerce, Redux Framework, and Wordfence.
How to Fix It
Since the issue originates from a theme or plugin, the solution involves updating or modifying them. Here are the most effective steps to resolve the notice.
1. Update Everything
The first and most important step is to ensure your WordPress core, all themes, and all plugins are completely up to date. Many developers have already released updates to fix this compatibility issue. If an update is available for the theme or plugin named in the error message, installing it will likely resolve the problem.
2. Contact the Developer
If your themes and plugins are up to date but the notice persists, you need to report the issue to the specific developer. The notice will name the "domain" (e.g., acf, xstore, woocommerce), which identifies the responsible theme or plugin. Contact their support and provide them with the full error message. They are the only ones who can properly fix the code causing the early translation load.
3. Temporarily Disable the Notice (Advanced)
If the notice is causing visible problems on your site—such as breaking your admin login because it's outputting text before headers are sent—you can temporarily hide it. This does not fix the underlying problem but can restore site functionality while you wait for a permanent fix from a developer.
Option A: Disable WP_DEBUG
In your wp-config.php file, make sure the following lines are set:
define( 'WP_DEBUG', false );
define( 'WP_DEBUG_DISPLAY', false );
define( 'WP_DEBUG_LOG', false );
Option B: Configure Your Server (Contact Your Host)
If you are not comfortable editing PHP configuration files, contact your hosting provider's support and ask them to disable the display of PHP notices on your server.
4. A Note on Critical Errors and Login Issues
In some cases, these notices can combine with other errors to cause a "white screen of death" or prevent you from logging in. If this happens, you can often regain access by using your hosting provider's file manager or FTP to temporarily rename the plugin folder (e.g., from plugins to plugins.deactivate). This will disable all plugins, allowing you to log in and then reactivate them one by one to identify the culprit.
Conclusion
The _load_textdomain_just_in_time notice is a common side effect of the positive changes in WordPress 6.7. While it can be annoying, it is typically not harmful to your site's core functionality. The ultimate resolution requires action from theme and plugin developers to update their code. In the meantime, keeping software updated and temporarily disabling debug output are the best steps you can take.
Related Support Threads Support
-
Function _load_textdomain_just_in_time was called incorrectly.https://wordpress.org/support/topic/function-_load_textdomain_just_in_time-was-called-incorrectly-103/
-
Error / Can’t login to admin portalhttps://wordpress.org/support/topic/error-cant-login-to-admin-portal/
-
Translation error message in WordPress 6.8https://wordpress.org/support/topic/translation-error-message-in-wordpress-6-8/
-
Error showinghttps://wordpress.org/support/topic/error-showing-4/
-
_load_textdomain_just_in_timehttps://wordpress.org/support/topic/_load_textdomain_just_in_time-16/
-
WordPress 6.8. Update Issueshttps://wordpress.org/support/topic/wordpress-6-8-update-issues-2/
-
PHP Notice: Function _load_textdomain_just_in_time was calledhttps://wordpress.org/support/topic/php-notice-function-_load_textdomain_just_in_time-was-called-2/
-
Can’t update or install pluginshttps://wordpress.org/support/topic/cant-update-or-install-plugins-4/
-
Trang web bị lỗihttps://wordpress.org/support/topic/trang-web-bi-loi/
-
text domain incorrectly loadinghttps://wordpress.org/support/topic/text-domain-incorrectly-loading/
-
Function _load_textdomain_just_in_time was called incorrectly in WP v6.8-RC1https://wordpress.org/support/topic/function-_load_textdomain_just_in_time-was-called-incorrectly-in-wp-v6-8-rc1/
-
Translations should be loaded at the init action or later errorhttps://wordpress.org/support/topic/translations-should-be-loaded-at-the-init-action-or-later-error/
-
Login issuehttps://wordpress.org/support/topic/login-issue-104/
-
Function _load_textdomain_just_in_time was called incorrectlyhttps://wordpress.org/support/topic/function-_load_textdomain_just_in_time-was-called-incorrectly-120/
-
PHP Notice: Function _load_textdomain_just_in_time was calledhttps://wordpress.org/support/topic/php-notice-function-_load_textdomain_just_in_time-was-called/
-
Multiple Text Domains Warning in Theme – “oryncart” and “oryncart ”https://wordpress.org/support/topic/multiple-text-domains-warning-in-theme-oryncart-and-oryncart/
-
Critical Errorhttps://wordpress.org/support/topic/critical-error-791/
-
Cannot log into WordPress Accounthttps://wordpress.org/support/topic/cannot-log-into-wordpress-account/