Thread Starter
unmus
(@unmus)
This php warning does only comes up, if WP_DEBUG is activated.
Hi @unmus
Thank you for using our plugin!
We just released a new version of our plugin, which should solve this issue.
Thread Starter
unmus
(@unmus)
Hello @rockfire.
Thank you for taking care of this issue.
I have installed the update, but unfortunately the error is not solved. If you activate WP_DEBUG, the php warning will still be written into debug.log and the Query Monitor Plugin shows the error too.
Best Regards, Marco
Hi @unmus
I am sorry to hear you still had the error, because in my local test environment the error was gone. I just released a new version which completely removes the load_plugin_textdomain function as it is no longer needed as of WordPress 4.6. I was already thinking about removing it, so this was just that final push I needed π Now the error can no longer be there since we no longer call the function that was causing the error.
Thread Starter
unmus
(@unmus)
Hello @rockfire
Thank you for the fast reaction and providing an additional update.
Hm… it’s strange. I still get the error. I have installed the latest version 2025.1.6.
But reviewing the code of the plugin, I do not find a call of the function “_load_textdomain_just_in_time”.
Do I have to clear something up?
Best Regards
Marco
Hi @unmus
I am sorry to hear you still get the error. Does the error message still mention the wp-rest-cache domain? Or maybe some other domain (some other plugin that is causing the error)?
You will not find the function _load_textdomain_just_in_time in our plugin, not even in older versions. It is an internal function of WordPress that is called when you for instance use the load_plugin_textdomain with a wrong hook. However since I removed this function entirely from our plugin, I don’t see how this error could still be coming from our plugin. I dit some testing locally and couldn’t reproduce your situation.
Thread Starter
unmus
(@unmus)
Hello @rockfire
Yes, the error mentions the domain wp-rest-cache.
Unfortunately I cannot add screenshots here. But the message is still the same as initially reported above.
WP-Log:
[20-Aug-2025 18:43:02 UTC] PHP Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the wp-rest-cache 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 /www/htdocs/β¦/wp-includes/functions.php on line 6121
Query Monitor:
Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the wp-rest-cache 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.)
The php warnings do only come up, if I set WP_DEBUG and WP_DEBUG_LOG to true.
The real problem is not the warning itself, because as far as I see, it does not have an impact (on visitors), but it overfills the log, that it is hard to find other entries.
Hi @unmus
Sorry for the wait. Can you try agian with the version we just released?
Thread Starter
unmus
(@unmus)
@rockfire Thank you very much not forgetting this issue. I can finally confirm, the php warning is gone! Great! Thank you!