-
Notifications
You must be signed in to change notification settings - Fork 113
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 #3108
Comments
I've quickly tried to debug this issue and found that we need following updated plugins needs to be installed:
When I updated these plugins from wp-admin, notice has gone after that. |
Further debugging, I've found that we are installing pluigns via this line https://github.com/WordPress/Learn/blob/trunk/bin/index.sh#L18 ( let me know if this is correct ). Questions:
|
Aha, well found. Essentially, the plugins are updated only when necessary, and we don't control which versions are installed, as that's managed by the Meta team that manages the entire .org infrastructure. My recommendation then is to keep supressing the errors locally, eventually those plugins will get updated, and the issue will go away. |
Got it. I thought the same. Closing the issue now. Thanks |
To clarify, Meta only controls the versions deployed to learn.wordpress.org, not the versions installed locally. Line 18 in d1bf93d
When you run locally, the above wp-cli command activates the plugins, but the versions are per what was installed, per composer. Lines 70 to 75 in d1bf93d
The above specifies that any version (latest..) of those plugins should be installed, but because composer.lock exists, it uses the locked versions from there: Lines 799 to 816 in d1bf93d
Due to the way composer works, it's not possible to install the latest version of the plugins, unless the lock file is not distributed. My personal preference is to never commit the composer.lock file to a repository, such that everyone ends up with the latest version of packages. This might be a solution for the learn repo. I'm re-opening this, because at the minimum we probably need to update the composer.lock file. |
Thanks for the information. I'll update the lock file. |
Notice on the screen when we setup repo locally.
Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the sensei-lms 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](https://developer.wordpress.org/advanced-administration/debug/debug-wordpress/) for more information. (This message was added in version 6.7.0.) in /var/www/html/wp-includes/functions.php on line 6121 Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the jetpack 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](https://developer.wordpress.org/advanced-administration/debug/debug-wordpress/) for more information. (This message was added in version 6.7.0.) in /var/www/html/wp-includes/functions.php on line 6121
Description
When we try to setup learn site locally by following series of command given in readme.md and when we try to access site by localhost:8888, then it shows notice on the top of the screen.
Step-by-step reproduction instructions (optional)
Screenshots or screen recording (optional)
The text was updated successfully, but these errors were encountered: