Title: Invalid argument warning
Last modified: January 11, 2020

---

# Invalid argument warning

 *  Resolved [retroforward](https://wordpress.org/support/users/retroforward/)
 * (@retroforward)
 * [6 years, 6 months ago](https://wordpress.org/support/topic/invalid-argument-warning-2/)
 * I’ve been working on our site using this plugin on a test site for the past year
   and it works great! I can’t remember If I am using the Free or pro version. I
   do know I am using your other pro plugin for product add-ons.
 * We finally published the site on our main domain, and we are getting an invalid
   argument error.In addition,, it caused some errors in the design. when I deactivated
   it, the site worked fine, minus the discounts.
 * this is the Error:
 * Warning: Invalid argument supplied for foreach() in /xxx/xxx/xxxx/wp-content/
   plugins/aco-woo-dynamic-pricing/includes/class-awdp-discount.php on line 844
   
   class=”wcpa_has_options entry has-media has-product-nav col span_1_of_1 owp-content-
   left owp-thumbs-layout-horizontal owp-btn-very-big owp-tabs-layout-horizontal
   product type-product post-931 status-publish first instock product_cat-washington-
   dc product_tag-maggianos-chevy-chase-5333-wisconsin-ave-nw-2nd-floor-washington
   has-post-thumbnail downloadable virtual purchasable product-type-simple”>
 * I’m hoping for some help because this plugin worked exactly how I needed it.
 * Thanks
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Finvalid-argument-warning-2%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  Thread Starter [retroforward](https://wordpress.org/support/users/retroforward/)
 * (@retroforward)
 * [6 years, 6 months ago](https://wordpress.org/support/topic/invalid-argument-warning-2/#post-12317327)
 * Nevermind, I figured it out.
 * I just deleted all the rules I made and recreated them. When I did that, everything
   worked fine.
 *  Plugin Support [ijas](https://wordpress.org/support/users/ijasacodez/)
 * (@ijasacodez)
 * [6 years, 6 months ago](https://wordpress.org/support/topic/invalid-argument-warning-2/#post-12318144)
 * Thanks for reporting the same, we will release an update with the fix (warning)
   asap.
 *  Plugin Support [ijas](https://wordpress.org/support/users/ijasacodez/)
 * (@ijasacodez)
 * [6 years, 6 months ago](https://wordpress.org/support/topic/invalid-argument-warning-2/#post-12318283)
 * We have released an update with the fix. Please update your plugin to the latest
   version.

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

The topic ‘Invalid argument warning’ is closed to new replies.

 * ![](https://ps.w.org/aco-woo-dynamic-pricing/assets/icon-256x256.gif?rev=3309190)
 * [Dynamic Pricing With Discount Rules for WooCommerce](https://wordpress.org/plugins/aco-woo-dynamic-pricing/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/aco-woo-dynamic-pricing/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/aco-woo-dynamic-pricing/)
 * [Active Topics](https://wordpress.org/support/plugin/aco-woo-dynamic-pricing/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/aco-woo-dynamic-pricing/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/aco-woo-dynamic-pricing/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [ijas](https://wordpress.org/support/users/ijasacodez/)
 * Last activity: [6 years, 6 months ago](https://wordpress.org/support/topic/invalid-argument-warning-2/#post-12318283)
 * Status: resolved