PHP Notice: Incorrect Translation Loading in woocommerce and woocommerce-jetpack
-
We are encountering a PHP notice related to the
_load_textdomain_just_in_time
function. The error indicates that translation loading for thewoocommerce
andwoocommerce-jetpack
text domains is being triggered too early. This typically happens when code within a plugin or theme runs prior to theinit
action.The exact error messages are:
PHP Notice: Function
_load_textdomain_just_in_time
was called incorrectly. Translation loading for thewoocommerce-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[24-Nov-2024 14:20:33 UTC] PHP Notice: Function
_load_textdomain_just_in_time
was called incorrectly. Translation loading for thewoocommerce
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 6114Environment:
- 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 theinit
action, as recommended in the WordPress documentation.Actual Behavior:
The translation loading is being triggered too early, resulting in a PHP notice.
- You must be logged in to reply to this topic.