• Resolved yoancutillas

    (@yoancutillas)


    Hi,

    There is a PHP error

    [22-Nov-2024 10:36:33 UTC] PHP Notice:  Function _load_textdomain_just_in_time was called <strong>incorrectly</strong>. Translation loading for the <code>check-email</code> 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 <code>init</code> action or later. Please see <a href="https://developer.ww.wp.xz.cn/advanced-administration/debug/debug-wordpress/">Debugging in WordPress</a> for more information. (This message was added in version 6.7.0.) in \wp-includes\functions.php on line 6114
    [22-Nov-2024 10:36:33 UTC] PHP Stack trace:
    [22-Nov-2024 10:36:33 UTC] PHP 1. {main}() \wp-admin\index.php:0
    [22-Nov-2024 10:36:33 UTC] PHP 2. require_once() \wp-admin\index.php:10
    [22-Nov-2024 10:36:33 UTC] PHP 3. require_once() \wp-admin\admin.php:34
    [22-Nov-2024 10:36:33 UTC] PHP 4. require_once() \wp-load.php:50
    [22-Nov-2024 10:36:33 UTC] PHP 5. require_once() \wp-config.php:102
    [22-Nov-2024 10:36:33 UTC] PHP 6. do_action($hook_name = 'plugins_loaded') \wp-settings.php:559
    [22-Nov-2024 10:36:33 UTC] PHP 7. WP_Hook->do_action($args = [0 => '']) \wp-includes\plugin.php:517
    [22-Nov-2024 10:36:33 UTC] PHP 8. WP_Hook->apply_filters($value = '', $args = [0 => '']) \wp-includes\class-wp-hook.php:348
    [22-Nov-2024 10:36:33 UTC] PHP 9. CheckEmail\Core\Check_Email_Log->load('') \wp-includes\class-wp-hook.php:324
    [22-Nov-2024 10:36:33 UTC] PHP 10. CheckEmail\Core\UI\Check_Email_UI_Loader->load() \wp-content\plugins\check-email\include\Core\Check_Email_Log.php:56
    [22-Nov-2024 10:36:33 UTC] PHP 11. CheckEmail\Core\UI\Check_Email_UI_Loader->initialize_components() \wp-content\plugins\check-email\include\Core\UI\Check_Email_UI_Loader.php:19
    [22-Nov-2024 10:36:33 UTC] PHP 12. CheckEmail\Core\UI\Check_Email_UI_Loader->is_show_dashboard_widget() \wp-content\plugins\check-email\include\Core\UI\Check_Email_UI_Loader.php:33
    [22-Nov-2024 10:36:33 UTC] PHP 13. CheckEmail\Core\UI\Setting\Check_Email_Setting->__construct() \wp-content\plugins\check-email\include\Core\UI\Check_Email_UI_Loader.php:40
    [22-Nov-2024 10:36:33 UTC] PHP 14. CheckEmail\Core\UI\Setting\Check_Email_Core_Setting->initialize() \wp-content\plugins\check-email\include\Core\UI\Setting\Check_Email_Setting.php:15
    [22-Nov-2024 10:36:33 UTC] PHP 15. esc_html__($text = 'Setup Wizard', $domain = 'check-email') \wp-content\plugins\check-email\include\Core\UI\Setting\Check_Email_Core_Setting.php:17
    [22-Nov-2024 10:36:33 UTC] PHP 16. translate($text = 'Setup Wizard', $domain = 'check-email') \wp-includes\l10n.php:339
    [22-Nov-2024 10:36:33 UTC] PHP 17. get_translations_for_domain($domain = 'check-email') \wp-includes\l10n.php:194
    [22-Nov-2024 10:36:33 UTC] PHP 18. _load_textdomain_just_in_time($domain = 'check-email') \wp-includes\l10n.php:1408
    [22-Nov-2024 10:36:33 UTC] PHP 19. _doing_it_wrong($function_name = '_load_textdomain_just_in_time', $message = 'Translation loading for the <code>check-email</code> 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 <code>init</code> action or later.', $version = '6.7.0') \wp-includes\l10n.php:1370
    [22-Nov-2024 10:36:33 UTC] PHP 20. wp_trigger_error($function_name = '', $message = 'Function _load_textdomain_just_in_time was called <strong>incorrectly</strong>. Translation loading for the <code>check-email</code> 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 <code>init</code> action or later. Please see <a href="https://developer.ww.wp.xz.cn/advanced-administration/debug/debug-wordpress/">Debugging in WordPress</a> for more information. (This message was added in version 6.7.0.'..., $error_level = *uninitialized*) \wp-includes\functions.php:6054
    [22-Nov-2024 10:36:33 UTC] PHP 21. trigger_error($message = 'Function _load_textdomain_just_in_time was called <strong>incorrectly</strong>. Translation loading for the <code>check-email</code> 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 <code>init</code> action or later. Please see <a href="https://developer.ww.wp.xz.cn/advanced-administration/debug/debug-wordpress/">Debugging in WordPress</a> for more information. (This message was added in version 6.7.0.'..., $error_level = 1024) \wp-includes\functions.php:6114

    Indeed, load_plugin_textdomain must be called after init hook.

    A fix would be for example replacing check-email\include\Core\Check_Email_Log.php line 51

    load_plugin_textdomain( 'check-email', false, $this->translations_path );

    with

    $translations_path = $this->translations_path;
    add_action( 'init', function() use ( $translations_path ) { load_plugin_textdomain( 'check-email', false, $translations_path ); }, 5 );
Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Support Akshay A

    (@akshaycode1)

    Hi,

    Thank you for reaching out to us.

    A GitHub ticket has already been raised for this concern and it will be fixed in an upcoming update. We kindly request your patience in the meantime.

    Here is the GitHub Ticket.

    Is there a timeframe for this update? I’m holding off on updating to WordPress 6.7 for a client of mine just because of this

    Plugin Support Akshay A

    (@akshaycode1)

    Hi @jcvangent :,

    We are likely to release the next update by next week. In the meantime, you can turn off debug mode, as it does not appear in the wp-config

    Plugin Support Akshay A

    (@akshaycode1)

    Hi All,

    We’ve just released an update that addresses this issue. Please update the plugin to version 2.0.4, clear the cache once and give it a try. Feel free to reach out if you have any concerns.

    @akshaycode1 I’m on version 2.0.4 and I still have the issue.

    Plugin Support Akshay A

    (@akshaycode1)

    Hi, this issue has already been resolved. It might be a cache issue on your end that is still causing the problem. We suggest clearing the cache and try again.

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘PHP error with WordPress 6.7 – Translation loading too early’ is closed to new replies.