Skip to:
Content

bbPress.org

Opened 7 weeks ago

Last modified 7 weeks ago

#3621 new defect (bug)

plugin activation notice with wp 6.7.1 and woocommerce 9.5.1

Reported by: kal123's profile kal123 Owned by:
Milestone: Awaiting Review Priority: normal
Severity: normal Version: 2.6.11
Component: General Keywords:
Cc:

Description

When activating bbpress, I see:

Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the bbpress 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 /var/www/sleeplateandhike/public_html/wp-includes/functions.php on line 6114

I modified bbpress to move the text domain to an add action that happens later:

includes/core/actions.php

add_action( ‘after_setup_theme’, ‘bbp_load_textdomain’, 4);

And, removed it from bbpress.php core actions to prevent the same issue.

I am not sure these are the most ideal solutions, as I am not the author of these plugins.

Recommended solution:

https://stackoverflow.com/questions/79198701/notice-function-load-textdomain-just-in-time-was-called-incorrectly

More likely to happen when running Woocommerce 9.4 with WP 6.7:

The official Woocommerce notice about this change:

https://developer.woocommerce.com/2024/11/11/developer-advisory-translation-loading-changes-in-wordpress-6-7/

Change History (1)

#1 in reply to: ↑ description @kal123
7 weeks ago

Last edited 7 weeks ago by kal123 (previous) (diff)
Note: See TracTickets for help on using tickets.