Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Notice: Function _load_textdomain_just_in_time was called incorrectly. #200

Open
jimcutler opened this issue Nov 27, 2024 · 1 comment
Open

Comments

@jimcutler
Copy link

With WP 6.7.1, I am seeing this notice:

Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the wp-mail-logging 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 /Applications/MAMP/htdocs/wmea/wp-includes/functions.php on line 6114

This occurs on localhost in multi-site; I have not updated my staging site to 6.7.1 since this notice spams my error log when I am in testing mode.

There are fixes for this in WP, however it's unclear if these will address the issue with your plug-in.

https://core.trac.wordpress.org/ticket/62337 (closed)

And related:
https://core.trac.wordpress.org/ticket/62542

62337 includes a link to this article if this is of any assistance.

https://make.wordpress.org/core/2024/10/21/i18n-improvements-6-7/

I wanted to make sure you were aware of this issue.

Thanks,

Jim

@jimcutler
Copy link
Author

jimcutler commented Nov 27, 2024

EDIT: I just updated a standard (not multi-site) WP site to 6.7.1 and this notice does not occur, however on a 2nd non multi-site installation it does occur. If I can identify differences between these sites I will post an update.

Additional Info: I realized that the site not displaying notices is a production site, and debug logging is turned off, so this issue is not limited to multi-site.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant