Opened 5 months ago
#3653 new defect (bug)
_load_textdomain_just_in_time was called incorrectly error notice with WordPress branchs 6.8 & 6.9
| Reported by: |
|
Owned by: | |
|---|---|---|---|
| Milestone: | Awaiting Review | Priority: | normal |
| Severity: | normal | Version: | 2.6.14 |
| Component: | Extend - BuddyPress | Keywords: | has-patch dev-feedback |
| Cc: |
Description
I don't believe this has been previously reported. I'm getting the following error 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. (This message was added in version 6.7.0.)
Environment:
WordPress; branches 6.8 or 6.9
PHP: 8.3.24
bbPress: 2.6.14 or 2.7.0-alpha-2
BuddyPress: 14.3.4
BP Classic: 1.4.0 - activated or deactivated
The cause for the error notice appears to be when the bbp_setup_buddypress() function is called during the bp_include action hook (see line 146 of trunk/src/includes/core/actions.php). Changing the action hook to init appears to be the fix and is represented by the proposed patch.
However, if someone has a better method for resolution, please feel free to adopt such method.
Initial patch