I get the following Notice both on front-end and Admin pages.
Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the gotmls 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 /home2/myusername/public_html/wp-includes/functions.php on line 6114
Are you aware of this notice?
Using WP 6.7.1 and GOTMLS 4.23.73
I have not heard of this, and there shouldn’t be any translation call before the init hook in my plugin. I am also unable to recreate this Notice on any of my test sites, even on WordPress 6.7.1. It is possible that some other code (not in my plugin) is including code that calls a text translation using the gotmls domain, or maybe even some kind of malicious code that is messing with the order that files are loaded in. Which site are you having this issue on?
Is there a trace in the error_log file that shows what file is including this translation call too early?
Is there any way that you can grant me access to the site so that I can debug in real-time?
Greeting,
here it is, I got the same message when I turned on debug on wordpress. See:
PHP Notice: Function _load_textdomain_just_in_time was called <strong>incorrectly</strong>. Translation loading for the <code>gotmls</code> 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 <code>init</code> action or later.
WordPress 6.8.2
and this started to happen when I was working on removing unnecessary plugins to speed up the website…. on this version of wordpress and the last version of the plugin, everything worked ok, but when I cleared all the other problems, and the debug was error-free, this started to appear and this is the only problem now when I turn on the debug mode on the website. So, this error did not appear until I corrected all the other errors.