#62981 closed defect (bug) (invalid)
Issue with Translations in Plugin/Theme – Early Call to _load_textdomain_just_in_time
Reported by: |
|
Owned by: | |
---|---|---|---|
Milestone: | Priority: | normal | |
Severity: | normal | Version: | 6.7.2 |
Component: | I18N | Keywords: | needs-refresh |
Focuses: | Cc: |
Description
I am receiving an error in WordPress version 6.7.0, which is displayed in the Query Monitor. The error states that the function _load_textdomain_just_in_time was called too early, possibly due to faulty code in the plugin or theme being used.
Function _load_textdomain_just_in_time was called incorrectly. Loading the translation for the domain 'riode' was triggered too early. This is usually an indication of code in the plugin or theme running too early. Translations should be loaded with the 'init' action or later. (This message was introduced in version 6.7.0.)
Relevant Files and Functions:
wp-includes/l10n.php:1370
get_translations_for_domain() in wp-includes/l10n.php:1408
translate() in wp-includes/l10n.php:194
esc_html() in wp-includes/l10n.php:339
Best regrats
Hi there and welcome to Trac!
As the message says, this is an issue with the
riode
theme you are using. It loads translations too early.I suggest you reach out to the theme developer and point them to https://make.wordpress.org/core/2024/10/21/i18n-improvements-6-7/ so that they can address this on their end.