• Since upgrading to WordPress 6.7 I’m getting the following error on my development system where DEBUG is turned on:

    Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the quick-and-easy-faqs 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 /var/www/html/wp-includes/functions.php on line 6114 

    I think this is related to the internalization improvements in WordPress 6.7 and specifically the check on “translations are loaded too early”: https://make.www.ads-software.com/core/2024/10/21/i18n-improvements-6-7/

    I think this is caused by the call to get_plugin_data in quick-and-easy-faqs.php. I think this can be solved by setting the markup and translate parameters false (as suggested by the article cited above):

    Currently:
    define( 'QUICK_AND_EASY_FAQS_VERSION', get_plugin_data( __FILE__ )['Version'] );
    Change to:
    define( 'QUICK_AND_EASY_FAQS_VERSION', get_plugin_data( __FILE__, false, false )['Version'] );
  • You must be logged in to reply to this topic.