Skip to:
Content

bbPress.org

Opened 23 months ago

Closed 5 weeks ago

Last modified 5 weeks ago

#3621 closed defect (bug) (fixed)

plugin activation notice with wp 6.7.1 and woocommerce 9.5.1

Reported by: kal123 Owned by:
Priority: normal Milestone:
Component: General Version: 2.6.11
Severity: normal Keywords:
Cc:

Description (last modified by johnjamesjacoby)

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 (4)

#1 in reply to: ↑ description @kal123
23 months ago

Last edited 23 months ago by kal123 (previous) (diff)

#2 @johnjamesjacoby
5 weeks ago

  • Description modified (diff)
  • Resolution → fixed
  • Status new → closed

Thanks for reporting this and for sharing your findings.

The early bbPress translation request was corrected in ​r7435 and backported to the 2.6 branch in ​r7438. The fix shipped in bbPress 2.6.16.

Thanks again for helping us identify this. Closing as fixed.

#3 @johnjamesjacoby
5 weeks ago

  • Description modified (diff)

#4 @johnjamesjacoby
5 weeks ago

  • Description modified (diff)
  • Milestone Awaiting Review
Note: See TracTickets for help on using tickets.