• Guido

    (@guido07111975)


    Hi,

    After updating to WP 6.7 I’m getting this notice:

    Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the google-listings-and-ads 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.

    I notice that multiple plugins have this error after WP was updated. I have most recent plugin version 2.8.7 (that was updated today). My site language is non-English.

    Guido

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Support Zubair Zahid (woo-hc)

    (@doublezed2)

    Hello Guido,

    Thank you for contacting WooCommerce support.

    I understand you’re seeing the notice a “Function _load_textdomain_just_in_time was called incorrectly…” after updating to WordPress 6.7. Your site language is non-English.

    To investigate further, please provide your System Status Report (SSR) from WooCommerce > Status.
    This will help in identifying the source of the issue.

    Once I have more information, I will be in a better position to assist you further.

    Best regards.

    Thread Starter Guido

    (@guido07111975)

    Hi,

    I don’t think you need my data for this, because this is happening with multiple plugins after updating to WP 6.7. There’s even a topic at the WC dev blog about this.
    I notice multiple references to this plugin when I searched for “google-listings-and-ads” in the WC code, so this notice might be caused by WC itself, instead of this plugin?

    Guido

    Plugin Support Zubair Zahid (woo-hc)

    (@doublezed2)

    Hello Guido,

    Thank you for your reply.

    I wanted to check your site’s SSR to verify if this is related to a known issue on WordPress 6.7.
    For more information on this, please have a look at the following links:
    https://developer.woocommerce.com/2024/11/11/developer-advisory-translation-loading-changes-in-wordpress-6-7/
    https://core.trac.www.ads-software.com/ticket/62337

    Please don’t hesitate to contact us again if you have more questions or concerns.
    We are here to help ??

    Best regards.

    Thread Starter Guido

    (@guido07111975)

    Hi,

    Because it’s a client website I’m hesitant to give the domain. But at my test install the same notice.
    WP 6.7 / language Dutch / WC 9.4.1 / Google for WooCommerce 2.8.7

    Guido

    Plugin Support shahzeen(woo-hc)

    (@shahzeenfarooq)

    Hi there,
    Thank you for reaching out to us about this.

    I can understand your concern and I’m happy to assist you with this in the following:

    The issue at hand arises from a recent update in WordPress (version 6.7), where the function that loads theme translations,?load_theme_textdomain(), isn’t functioning as expected. This is due to a timing conflict with how WordPress loads translations just-in-time, which is part of recent enhancements meant to improve performance and efficiency.
    Here’s what you need to know:

    • What’s Happening?When translations are loaded, the timing of these loads is critical. In WordPress 6.7, changes caused translation loading to happen at a different point which led to translations not applying to themes if not loaded in sync with WordPress’s new timing.
    • Possible Workaround:As an immediate solution, developers have been using a workaround that alters when translations are loaded. This involves adjusting from using the?init?action to the?after_setup_theme?hook, as well as additional adjustments like resetting certain cached translation entries manually. (Reference) — This level of customization is outside of our WooCommerce plugin support scope, so we would not be able to assist you with this workaround. We appreciate your understanding.
    • You may consider reverting WordPress version if possible. (Please reach out to your host about this option if you are interested.)
    • Long-Term Fix:The good news is that the WordPress core team is actively addressing this in the upcoming version 6.7.1, as reported in their development tracks. They have a patch ready that re-attempts to load translations effectively and resolves these timing issues. See the progress and discussion on this issue here:?core.trac.www.ads-software.com/ticket/62337

    I understand how such issues might affect your website’s functioning, and while this can be inconvenient, the development team is making sure the fix is tested thoroughly before release.
    Here is also Woo community discussions you might keep an eye out for: www.ads-software.com/support/topic/translations-broken-in-woocommerce-after-wordpress-core-upgrade-to-6-7/
    We are very sorry your business is impacted by the latest release. Rest assured, an official and stable fix is on the horizon.
    Thanks again for checking in with us.

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