Title: Error when activated
Last modified: November 8, 2023

---

# Error when activated

 *  Resolved [tintacora](https://wordpress.org/support/users/tintacora/)
 * (@tintacora)
 * [2 years, 6 months ago](https://wordpress.org/support/topic/error-when-activated-8/)
 * Good afternoon, we are facing an issue with the plugin Woo Discount Rules. When
   activated, we get this error under some product pages: Warning: Invalid argument
   supplied for foreach() in /home/customer/www/urzelai.com/public_html/wp-includes/
   class-wp-hook.php on line 315.
 * We are also working with the pro version of the plugin but, after some tests,
   the issue seem to be caused by the free plugin. We are using shopkeeper theme
   and all the other plugins are updated and working.
 * Is there anything we can do to solve this issue? The website is urzelai.com (
   at the moment the plugin is deactivated so the message doesn´t show up).
 * Thank you in advance.
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Ferror-when-activated-8%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  [sangeethasrinivasan](https://wordpress.org/support/users/sangeethasrinivasan/)
 * (@sangeethasrinivasan)
 * [2 years, 6 months ago](https://wordpress.org/support/topic/error-when-activated-8/#post-17186740)
 * Hey
 * Thank you for reaching out to us. This is Sangeetha from Customer Support Team.
 * It seems like you have raised a ticket in our support form and one of our engineers
   is already in contact with you.
 * Let us know in case of any further queries. We would be glad to assist you.
 * Thanks
   Team Flycart
 *  [simsim1986](https://wordpress.org/support/users/simsim1986/)
 * (@simsim1986)
 * [2 years, 6 months ago](https://wordpress.org/support/topic/error-when-activated-8/#post-17187401)
 * [@sangeethasrinivasan](https://wordpress.org/support/users/sangeethasrinivasan/)
 * I’m getting the same error!
 *  [sangeethasrinivasan](https://wordpress.org/support/users/sangeethasrinivasan/)
 * (@sangeethasrinivasan)
 * [2 years, 6 months ago](https://wordpress.org/support/topic/error-when-activated-8/#post-17187886)
 * Hey [@simsim1986](https://wordpress.org/support/users/simsim1986/)
 * Thanks for reaching out to us.
 * Our dev team are actively checking on this. In the meantime for further troubleshooting,
   would it be possible for you to open a support ticket here: [https://www.flycart.org/support](https://www.flycart.org/support)
   with the below details:
    - Version of Worpress, PHP and Woocommerce you are using and
    - Site URL
 * So that one of our support engineers with assist on this as soon as possible.
 * Looking forward to assisting you on this.
 * Thanks
   Team Flycart
 *  [sangeethasrinivasan](https://wordpress.org/support/users/sangeethasrinivasan/)
 * (@sangeethasrinivasan)
 * [2 years, 6 months ago](https://wordpress.org/support/topic/error-when-activated-8/#post-17191325)
 * Hey [@tintacora](https://wordpress.org/support/users/tintacora/) and [@simsim1986](https://wordpress.org/support/users/simsim1986/)
 * Thank you for your patience.
 * To resolve the error you are facing, if you enabled “Suppress third party discount
   plugins -> Yes” from our settings tab, can you give a try by setting it to “No”?
 * Here is an example screenshot: [https://nimb.ws/oH9ELK](https://nimb.ws/oH9ELK)(
   go to WordPress back end -> Woocommerce -> Woo Discount Rules -> Settings -> 
   choose the setting and save the changes).
 * Hope this helps.
 * If issue still occurs, would it be possible for you to open a support ticket 
   here: [https://www.flycart.org/support](https://www.flycart.org/support) for 
   further help ?
 * Looking forward to assisting you on this.
 * Thanks
   Team Flycart
    -  This reply was modified 2 years, 6 months ago by [sangeethasrinivasan](https://wordpress.org/support/users/sangeethasrinivasan/).
 *  [simsim1986](https://wordpress.org/support/users/simsim1986/)
 * (@simsim1986)
 * [2 years, 6 months ago](https://wordpress.org/support/topic/error-when-activated-8/#post-17191337)
 * [@sangeethasrinivasan](https://wordpress.org/support/users/sangeethasrinivasan/)
 * It’s already set to No.
 *  [sangeethasrinivasan](https://wordpress.org/support/users/sangeethasrinivasan/)
 * (@sangeethasrinivasan)
 * [2 years, 6 months ago](https://wordpress.org/support/topic/error-when-activated-8/#post-17191543)
 * Hey [@simsim1986](https://wordpress.org/support/users/simsim1986/)
 * Thanks for the confirmation.
 * To further help you on this, would it be possible for you to open a support ticket
   here: [https://www.flycart.org/support](https://www.flycart.org/support) for 
   quicker solutions ?
 * Looking forward to assisting you on this.
 * Thanks
   Team Flycart

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

The topic ‘Error when activated’ is closed to new replies.

 * ![](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/)

 * 6 replies
 * 3 participants
 * Last reply from: [sangeethasrinivasan](https://wordpress.org/support/users/sangeethasrinivasan/)
 * Last activity: [2 years, 6 months ago](https://wordpress.org/support/topic/error-when-activated-8/#post-17191543)
 * Status: resolved