• 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 mollie-payments-for-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.

    I notice that multiple plugins have this error after WP was updated.

    I think you can simply remove the loading of text domain from the plugin, because WP nowadays checks for and loads translations itself. Function load_plugin_textdomain is present in these files:
    src/Activation/ActivationModule.php
    vendor/sniccowp/php-scoper-wordpress-excludes/generated/exclude-wordpress-functions.json

    Guido

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Support Femi

    (@femiyb)

    Hello @guido07111975

    The deprecation warning you’re seeing in WordPress 6.7 indicates that the translation loading for the mollie-payments-for-woocommerce domain is being triggered earlier than recommended. WordPress now advises that translations be loaded at the init action or later to ensure compatibility with the latest core changes. This is why you’re seeing the _load_textdomain_just_in_time notice.

    This issue may indeed be due to an early loading function within the Mollie Payments for WooCommerce plugin, which could affect compatibility with WordPress 6.7.

    We have noted this and will look into it. Also please note that this is not a critical issue and should not break any functions won the plugin or your site.

    Regards,
    Femi

    Thread Starter Guido

    (@guido07111975)

    Hi Femi,

    Thank you for your reply. It seems that another issue related to translation is being fixed in version 7.8.3, so it would be great to include this (minor) fix as well. Why wait longer?

    Guido

    Thread Starter Guido

    (@guido07111975)

    I just read this topic at the Make WP Core page.
    They mention another function that is present in the plugin, called get_plugin_data.

    Guido

    This is not just a small inconvenience. I just had to deactivate the mollie plugin via wp-cli because after updating the whole website crashed with this notice error. When reactivating the plugin, after updating everything that could be updated, the notice was still there but it was not crashing the whole site anymore.

    Plugin Support Femi

    (@femiyb)

    Hello @melcarthus

    Please note that this is not a critical issue and should not break any functions in the plugin or your site.

    Same here. All of my other plugins has fixed this, only Mollie is still messing up. When will this be fixed?

    Plugin Support Femi

    (@femiyb)

    Hello,

    Our development team has addressed the issue and the planned realeased is in a few weeks.

    However, you can download the beta version here: Mollie Beta Version

    Please let me know if this resolves the issue on your end. Thank you for your patience!

    Regards,

    Femi

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