Title: PHP notice calling load_plugin_textdomain()
Last modified: April 29, 2026

---

# PHP notice calling load_plugin_textdomain()

 *  [d79](https://wordpress.org/support/users/d79/)
 * (@d79)
 * [1 month, 1 week ago](https://wordpress.org/support/topic/php-notice-calling-load_plugin_textdomain/)
 * Hello,
   I’d like to report the following PHP notice the plugin is generating:
 *     ```wp-block-code
       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.wordpress.org/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](https://plugins.trac.wordpress.org/browser/woo-discount-rules/trunk/common.php#L208)).
    - 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](https://wordpress.org/support/users/pavithrasivasamy/)
 * (@pavithrasivasamy)
 * [1 month, 1 week ago](https://wordpress.org/support/topic/php-notice-calling-load_plugin_textdomain/#post-18896821)
 * 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_.
 *  [Peter M.](https://wordpress.org/support/users/inveress/)
 * (@inveress)
 * [5 days, 13 hours ago](https://wordpress.org/support/topic/php-notice-calling-load_plugin_textdomain/#post-18927132)
 * 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](https://wordpress.org/support/users/pavithrasivasamy/)
 * (@pavithrasivasamy)
 * [5 days, 9 hours ago](https://wordpress.org/support/topic/php-notice-calling-load_plugin_textdomain/#post-18927357)
 * 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](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fphp-notice-calling-load_plugin_textdomain%2F%3Foutput_format%3Dmd&locale=en_US)
to reply to this topic.

 * ![](https://ps.w.org/woo-discount-rules/assets/icon-256x256.png?rev=1977982)
 * [Discount Rules for WooCommerce](https://wordpress.org/plugins/woo-discount-rules/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/woo-discount-rules/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/woo-discount-rules/)
 * [Active Topics](https://wordpress.org/support/plugin/woo-discount-rules/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/woo-discount-rules/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/woo-discount-rules/reviews/)

 * 3 replies
 * 3 participants
 * Last reply from: [pavithrasivasamy](https://wordpress.org/support/users/pavithrasivasamy/)
 * Last activity: [5 days, 9 hours ago](https://wordpress.org/support/topic/php-notice-calling-load_plugin_textdomain/#post-18927357)
 * Status: not resolved