• Resolved missveronica

    (@missveronicatv)


    After each Duplicator update installation from the WP backend there is a WP warning “Translation loading for the duplicator domain was triggered too early.”
    from this script ...duplicator/src/Utils/CronUtils.php(32): __()

    #4 ...wp-includes/functions.php(6061): wp_trigger_error()
    #5 ...wp-includes/l10n.php(1371): _doing_it_wrong()
    #6 ...wp-includes/l10n.php(1409): _load_textdomain_just_in_time()
    #7 ...wp-includes/l10n.php(195): get_translations_for_domain()
    #8 ...wp-includes/l10n.php(307): translate()
    #9 ...wp-content/plugins/duplicator/src/Utils/CronUtils.php(32): __()
    #10 ...wp-includes/class-wp-hook.php(324): Duplicator\Utils\CronUtils::defaultCronIntervals()
    #11 ...wp-includes/plugin.php(205): WP_Hook->apply_filters()
    #12 ...wp-includes/cron.php(1136): apply_filters()
    #13 ...wp-includes/cron.php(247): wp_get_schedules()
    #14 ...wp-content/plugins/duplicator/src/Utils/Email/EmailSummaryBootstrap.php(181): wp_schedule_event()
    #15 ...wp-content/plugins/duplicator/src/Utils/Email/EmailSummaryBootstrap.php(118): Duplicator\Utils\Email\EmailSummaryBootstrap::updateCron()
    #16 ...wp-includes/class-wp-hook.php(324): Duplicator\Utils\Email\EmailSummaryBootstrap::activationAction()
    #17 ...wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters()
    #18 ...wp-includes/plugin.php(517): WP_Hook->do_action()
    #19 ...wp-content/plugins/duplicator/classes/class.plugin.upgrade.php(52): do_action()
    #20 ...wp-content/plugins/duplicator/src/Core/Bootstrap.php(164): DUP_LITE_Plugin_Upgrade::onActivationAction()
    #21 ...wp-includes/class-wp-hook.php(324): Duplicator\Core\Bootstrap::update()
Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Support mohammedeisa

    (@mohammedeisa)

    Hello @missveronicatv ,

    Thanks for reaching out to us.

    I installed Duplicator and enabled the WordPress debugging mode to see the issue in the debug.log file, but unfortunately, I couldn’t reproduce the issue.

    I would appreciate it if you guide me on how to reproduce this issue.

    I’m looking forward to hearing back from you.

    Thanks!

    Thread Starter missveronica

    (@missveronicatv)

    @mohammedeisa

    You can try to use the Rollback plugin to install an old Duplicator version.
    Now you have a WP plugin update situation.
    Try to perform the WP plugin update.
    You will get the WP one line Translation error message at the top of the page
    and in the debug.log file.

    If you have other plugins active like WooCommerce and WP-Optimize
    they will also report Translation errors depending on your early translation call.

    The stack trace I posted you can get by using the WP hook wp_trigger_error_run

    https://developer.ww.wp.xz.cn/reference/hooks/wp_trigger_error_run/

    Plugin Support mohammedeisa

    (@mohammedeisa)

    Hello @missveronicatv ,

    After many tries, I could reproduce this issue. Actually, the notice is
    PHP Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the duplicator 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 6121

    The error is triggered during the plugin deactivation.

    I would like to thank you for reporting this issue. Rest assured that we won’t hesitate to resolve this issue as soon as possible.

    Thanks!

    Thread Starter missveronica

    (@missveronicatv)

    @mohammedeisa

    Thanks for your feedback.

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

The topic ‘Translation loading for the `duplicator` domain was triggered too early’ is closed to new replies.