We are encountering a PHP notice related to the _load_textdomain_just_in_time function. The error indicates that translation loading for the woocommerce and woocommerce-jetpack text domains is being triggered too early. This typically happens when code within a plugin or theme runs prior to the init action.
The exact error messages are:
PHP Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the woocommerce-jetpack 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 public/wp-includes/functions.php on line 6114
PHP Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the woocommerce 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 public/wp-includes/functions.php on line 6114
Environment:
WordPress Version: 6.7
WooCommerce Version: 9.4.2
Booster Plus for WooCommerce: 7.2.4
PHP Version: 8.2
Expected Behavior:
Translation loading should occur during or after the init action, as the WordPress documentation recommends.
Actual Behavior:
The translation loading is triggered too early, resulting in a PHP notice.