• Hello,
    I’d like to report the following PHP notice the plugin is generating:

    PHP Notice: Function _load_textdomain_just_in_time was called <strong>incorrectly</strong>. Translation loading for the <code>woo-discount-rules</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 6131

    I think it’s because the plugin is calling load_plugin_textdomain() with the plugins_loaded hook instead of the init one (see code).

    • WordPress v6.9.4
    • Discount Rules for WooCommerce v2.6.15

    P.S. Same thing with the Pro version of the plugin.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Support pavithrasivasamy

    (@pavithrasivasamy)

    Hello there,
    Thanks for reaching out to us.

    We are currently planning to release Version 3 with improvements that address this issue. However, at this moment, we’re unable to provide a confirmed timeline for the release.

    Since you rely on the debug log for monitoring other important issues, we understand your concern. For now, as a temporary workaround, you may consider disabling the debug log to prevent these notices from filling the log file until the updated version is released.

    We truly appreciate your patience, and we’ll make sure the improvements are included in the upcoming release. If you have any further questions in the meantime, please feel free to reach out.

    Warm regards,
    Flycart Support Team.

    Hi Flycart,

    Any update on this fix ? I can’t activate debugging without my log file filling up with:

    Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the woo-discount-rules 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.

    Plugin Support pavithrasivasamy

    (@pavithrasivasamy)

    Hi,

    Thank you for following up.

    We have not forgotten about this issue. The fix is still under development as part of our upcoming V3 release. At the moment, our team is actively testing it to ensure that the changes do not introduce any regressions or compatibility issues.

    Since the fix is currently in the testing phase, I’m afraid I can’t provide an exact release timeline yet. We understand that the notice can be frustrating, especially when debugging is enabled and the log file fills up quickly.

    We appreciate your patience while we complete the testing process. As soon as we have an update or the fix is included in a public release, we’ll be sure to let you know.

    Please feel free to reach out if you have any other questions in the meantime.

    Thank you for your understanding.

    Warm regards,
    Flycart Support Team.

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

You must be logged in to reply to this topic.