• Hi

    After update WordPress 6.7.1, notice message displayed (in debug mode)

    Notice: Function _load_textdomain_just_in_time was called?incorrectly. Translation loading for the?woocommerce-product-tabs?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?/wp-includes/functions.php?on line?6114

    This message was not with WordPress 6.7

    Regards

    Johan

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Support Barn2 Plugin Support

    (@barn2pluginsupport)

    Hi, Johan. (@johan_walter).

    Thanks for getting in touch! We are aware of the translations issue you’re experiencing with?WooCommerce Product Tabs, which occurred after updating to WordPress 6.7, and appears to persist in WordPress 6.7.1.

    For info, translations are broken in WordPress core itself right now, and this affects numerous plugins other than our own. This is due to what’s mentioned at https://make.www.ads-software.com/core/2024/11/19/wordpress-6-7-1-release-schedule/ :

    Translations not being applied properly (#62337)

    You are correct – Translations worked prior to WordPress 6.7. Our suggestions in the meantime are to:

    • Roll back to WordPress 6.6.2?and wait. The easiest way to do this is to restore the backup/version of your website prior to updating to WordPress 6.7. Otherwise, I suggest that you get in touch with your website’s web hosting provider, who can assist you with this best.
    • Manually copy translations.

    If you’re familiar with the steps, or have a developer who can perform them for you, our developers have provided the following example:

    Let’s take WPO for example and assume the site is using Spanish as language.

    • Navigate to?wp-content/plugins/woocommerce-product-options/languages/
    • Copy the the 2 files that end with the suffix?es_ES?. They have different extensions –?.mo?and?.po
    • Navigate to?wp-content/languages/plugins?– create the folder if it doesn’t exist.
    • Paste the files.

    Once done, translations will start working again, but you may see notices/warnings. To disable this from being displayed, see: https://developer.woocommerce.com/2024/11/11/developer-advisory-translation-loading-changes-in-wordpress-6-7/

    I hope this makes sense and helps. Please let me know how it goes, and if you have any questions.

    Best regards,
    Edge

    Thread Starter Johan WALTER

    (@johan_walter)

    Hi @barn2pluginsupport

    I haven’t updated yet our prod website, I am following and testing on stagging website until I found update stable

    I already use folder wp-content/languages/plugins for all translations

    Do you mean that having all files in wp-content/languages/plugins prevent any translation;issues?

    Plugin Support Barn2 Plugin Support

    (@barn2pluginsupport)

    Hi, Johan (@johan_walter).

    Thanks for your reply. Yes, manually copying a plugin’s .mo and .po translation files to /wp-content/languages/plugins should allow its translations to work.

    You will also need to disable the notices/warnings as mentioned.

    Best regards,
    Edge

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