• Resolved leemon

    (@leemon)


    Your plugin throws the following warning in WP 6.7 RC3 with define('WP_DEBUG', true);:

    Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the cookie-law-info 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 /xxxxxx/wp-includes/functions.php on line 6087

    You should change both instances of this line:
    $this->loader->add_action( 'plugins_loaded', $plugin_i18n, 'load_plugin_textdomain' );

    to:
    $this->loader->add_action( 'init', $plugin_i18n, 'load_plugin_textdomain' );

    • This topic was modified 2 weeks, 5 days ago by leemon.
Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Support CookieYes Team

    (@cookieyesteam)

    Hi @leemon

    Greetings from CookieYes!

    Thank you for bringing this to our attention!

    Since WordPress 6.7 is still in RC4 and not yet officially released, we haven’t released a compatibility-tested version of our plugin for it. However, our team is already reviewing this change to ensure compatibility once WordPress 6.7 is launched.

    Thank you again for helping us improve the plugin. Please feel free to reach out if you have further questions in the meantime.

    Plugin Support CookieYes Team

    (@cookieyesteam)

    Hi @leemon

    We couldn’t replicate this warning while testing our plugin on WordPress 6.7

    Could you please confirm whether you are using the latest version of our plugin?

    Thread Starter leemon

    (@leemon)

    It seems that the final version of WP 6.7 is not throwing this warning for some reason. Anyway, according to the following post, plugins should call load_plugin_textdomain in the init hook, not before (ie: the plugins_loaded hook):

    Internationalization improvements in 6.7

    Plugin Support CookieYes Team

    (@cookieyesteam)

    Hi @leemon

    We’ll review and make any necessary adjustments to ensure compatibility in a future release. We appreciate your patience and understanding. Please don’t hesitate to reach out with any further questions or concerns.

    Plugin Support CookieYes Team

    (@cookieyesteam)

    Hi @leemon

    This thread has been inactive for a bit, so we are going to mark it as resolved now. Please feel free to open a new thread or follow-up if you have any further questions or still need help.

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