Make WordPress Core

Opened 3 days ago

Closed 3 days ago

Last modified 3 days ago

#62981 closed defect (bug) (invalid)

Issue with Translations in Plugin/Theme – Early Call to _load_textdomain_just_in_time

Reported by: bulls_shark's profile bulls_shark 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

Change History (2)

#1 @swissspidy
3 days ago

  • Component changed from General to I18N
  • Milestone Awaiting Review deleted
  • Resolution set to invalid
  • Severity changed from major to normal
  • Status changed from new to closed

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.

#2 @bulls_shark
3 days ago

hi swissspidy, thank you :-)

Note: See TracTickets for help on using tickets.