Make WordPress Core

Opened 4 months ago

Closed 3 months ago

#62175 closed defect (bug) (duplicate)

PHP Notice in WP 6.7: _load_textdomain_just_in_time was called incorrectly

Reported by: presskopp's profile Presskopp Owned by:
Milestone: Priority: normal
Severity: normal Version: 6.7
Component: General Keywords:
Focuses: Cc:

Description

Running the latest nightly on PHP 8.3 I get:

Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the easy-form-builder 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 ...\wp-includes\functions.php on line 6099

There are more people like me, see:
https://wordpress.org/support/topic/_load_textdomain_just_in_time-called-incorrectly/
https://www.reddit.com/r/woocommerce/comments/1fuambz/error_load_textdomain_just_in_time_called/

only I could not find a ticket so here it is.

Change History (7)

#1 @Presskopp
4 months ago

In fact on my installation I get this notice 3 times, the other two plugins are jetpack and wordpress-beta-tester

#2 @samiamnot
4 months ago

See the discussion at #44937. This is probably a duplicate. Also see #62154 that was closed as a duplicate.

#3 @swissspidy
4 months ago

  • Milestone Awaiting Review deleted
  • Resolution set to duplicate
  • Status changed from new to closed

Duplicate of #44937.

#4 follow-up: @blackstar1991
3 months ago

Have the same problem after after update to WP 6.7.0

{

"key": "b279d116e6d1091eb2f8dd18f7bb5e6a",
"type": "notice",
"message": "Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the wpmudev 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.)",
"file": "wp-includes/functions.php",
"line": 6114,
"stack": [

"wp_trigger_error()",
"_load_textdomain_just_in_time()",
"get_translations_for_domain()",
"translate()",
"()",
"WDEV_Plugin_Ui::reset()",
"WPMUDEV_Dashboard->
construct()",
"WPMUDEV_Dashboard::instance()"

],
"component": "Plugin: wpmudev-updates"

}

#5 @npalmigiano
3 months ago

  • Resolution duplicate deleted
  • Status changed from closed to reopened

Have same problem when use Yoast:

_load_textdomain_just_in_time()
wp-includes/l10n.php:1347
get_translations_for_domain()
wp-includes/l10n.php:1385
translate()
wp-includes/l10n.php:194
()
wp-includes/l10n.php:306
WPSEO_Option_Titles->translate_defaults()
wp-content/plugins/wordpress-seo/inc/options/class-wpseo-option-titles.php:272
WPSEO_Option->get_defaults()
wp-content/plugins/wordpress-seo/inc/options/class-wpseo-option.php:404
WPSEO_Option->array_filter_merge()
wp-content/plugins/wordpress-seo/inc/options/class-wpseo-option.php:726
WPSEO_Option->get_option()
wp-content/plugins/wordpress-seo/inc/options/class-wpseo-option.php:446
apply_filters('option_wpseo_titles')
wp-includes/plugin.php:205
get_option()
wp-includes/option.php:247
WPSEO_Options::get_option()
wp-content/plugins/wordpress-seo/inc/options/class-wpseo-options.php:258
WPSEO_Options::get_options()
wp-content/plugins/wordpress-seo/inc/options/class-wpseo-options.php:235
WPSEO_Options::get_all()
wp-content/plugins/wordpress-seo/inc/options/class-wpseo-options.php:218
WPSEO_Options::prime_cache()
wp-content/plugins/wordpress-seo/inc/options/class-wpseo-options.php:303
WPSEO_Options::get()
wp-content/plugins/wordpress-seo/inc/options/class-wpseo-options.php:279
WPSEO_Meta::init()
wp-content/plugins/wordpress-seo/inc/class-wpseo-meta.php:243
wpseo_init()
wp-content/plugins/wordpress-seo/wp-seo-main.php:342
do_action('plugins_loaded')
wp-includes/plugin.php:517

#6 in reply to: ↑ 4 @amigainc
3 months ago

The same with some old themes (for me twentytwenty)

#7 @swissspidy
3 months ago

  • Resolution set to duplicate
  • Status changed from reopened to closed

Duplicate of #44937.

Please don‘t reopen. This is a new change in 6.7 to inform plugins if they are doing things wrong. It is not a bug in WordPress. You can point affected plugins to https://make.wordpress.org/core/2024/10/21/i18n-improvements-6-7/

Most plugins are already working on a fix on their end. Default themes like twentyten have just been updated today, so please update those.

Note: See TracTickets for help on using tickets.