fbpx

Home Forums Booster Plus Customer Forum PHP Notice: Incorrect Translation Loading in woocommerce and woocommerce-jetpack

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #54332
    Mohammed AlJallal
    Participant

    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.

    #54344
    David G
    Participant

    Hi @jallal-m,

    Thanks for reaching out to us.

    Could you please export and share your settings file so we can debug and help you resolve this issue?

    #54349
    Mohammed AlJallal
    Participant

    Hi David,

    Thank you for your prompt response! Here is my settings file:
    https://drive.google.com/file/d/1XXeyuhnbtsWGqkmhU7JZGhX27AUNMDrT/view?usp=sharing

    Could you please share your email address with me? I’d like to grant you access to this file.

    #54388
    Mohammed AlJallal
    Participant

    Hi David,

    I hope this message finds you well.

    Could you please provide an update on its status? Let me know if there’s anything further needed from my side to assist in resolving this case.

    Looking forward to your reply.

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.