Title: Invalid Argument error
Last modified: August 30, 2016

---

# Invalid Argument error

 *  Resolved [factormatt](https://wordpress.org/support/users/factormatt/)
 * (@factormatt)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/invalid-argument-error-10/)
 * I’m getting an error that is being caused by Woocommerce:
 * Warning: Invalid argument supplied for foreach() in /homepages/37/d578925028/
   htdocs/clickandbuilds/FactormattSellsYourCars/wp-includes/class.wp-dependencies.
   php on line 337
 * Warning: in_array() expects parameter 2 to be array, null given in /homepages/
   37/d578925028/htdocs/clickandbuilds/FactormattSellsYourCars/wp-includes/class.
   wp-dependencies.php on line 342
 * My website: [factormattsellsyourcars.com](http://factormattsellsyourcars.com)
 * I use 1&1 hosting if that helps any.
 * You’ll notice that this error displays repeatedly at the bottom of the page.
 * I figured out that it was Woocommerce causing this by deactivating all of my 
   plugins and then reactivating them one by one. It’s also not a theme issue either
   since the errors display in every theme I tried to use. I also deleted and then
   reinstalled the plugin to no avail.
 * Do you have any ideas on how I can fix this?
 * Thanks for your help!
 * [https://wordpress.org/plugins/woocommerce/](https://wordpress.org/plugins/woocommerce/)

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

 *  Plugin Contributor [Mike Jolley](https://wordpress.org/support/users/mikejolley/)
 * (@mikejolley)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/invalid-argument-error-10/#post-6524013)
 * If you’re running WC extensions/themes, turning off WC will cause misleading 
   results, because those plugins with a WC dependency will also be disabled.
 * The error is coming from the WP dependency manager for scripts and styles. WC
   does enqueue scripts like many other plugins, in the footer.
 * I assume if you leave WC active, but turn off other plugins and change to Twenty
   Twelve theme to error no longer shows as well?
 *  Thread Starter [factormatt](https://wordpress.org/support/users/factormatt/)
 * (@factormatt)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/invalid-argument-error-10/#post-6524025)
 * I was actually able to figure out the problem. Woocommerce was interfering with
   my cache plugin, so I deleted it. Everything is working fine now.

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

 The topic ‘Invalid Argument error’ is closed to new replies.

 * ![](https://ps.w.org/woocommerce/assets/icon.svg?rev=3640790)
 * [WooCommerce](https://wordpress.org/plugins/woocommerce/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/woocommerce/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/woocommerce/)
 * [Active Topics](https://wordpress.org/support/plugin/woocommerce/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/woocommerce/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/woocommerce/reviews/)

## Tags

 * [display](https://wordpress.org/support/topic-tag/display/)
 * [invalid argument](https://wordpress.org/support/topic-tag/invalid-argument/)

 * 2 replies
 * 2 participants
 * Last reply from: [factormatt](https://wordpress.org/support/users/factormatt/)
 * Last activity: [11 years, 1 month ago](https://wordpress.org/support/topic/invalid-argument-error-10/#post-6524025)
 * Status: resolved