[wp-trac] [WordPress Trac] #64401: Function _load_textdomain_just_in_time was called incorrectly
WordPress Trac
noreply at wordpress.org
Thu Dec 11 09:51:38 UTC 2025
#64401: Function _load_textdomain_just_in_time was called incorrectly
--------------------------+----------------------
Reporter: arifursdev | Owner: (none)
Type: defect (bug) | Status: closed
Priority: normal | Milestone:
Component: I18N | Version: 6.7
Severity: normal | Resolution: invalid
Keywords: | Focuses:
--------------------------+----------------------
Changes (by swissspidy):
* status: new => closed
* severity: major => normal
* component: Plugins => I18N
* version: 6.9 => 6.7
* milestone: Awaiting Review =>
* resolution: => invalid
Comment:
As the error message says:
This is usually an indicator for some code in the plugin or theme running
too early. Translations should be loaded at the <code>init</code> action
or later.
The code you shared does **not** cause any warning by itself, so there is
something else going on. For example a call to `__()` on an earlier hook,
or some other plugin interfering with yours.
See https://make.wordpress.org/core/2024/10/21/i18n-improvements-6-7/ for
details and suggested debugging steps. If you share your plugin I'm also
happy to help.
> it just keeps on logging.
Try turning off WP_DEBUG.
For further assistance I suggest asking in the support forums.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/64401#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list