• Resolved Antonios Hafez

    (@antonioshafez)


    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

    [24-Nov-2024 14:20:33 UTC] 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 recommended in the WordPress documentation.

    Actual Behavior:
    The translation loading is being triggered too early, resulting in a PHP notice.

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.