• Resolved factormatt

    (@factormatt)


    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

    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://ww.wp.xz.cn/plugins/woocommerce/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Contributor Mike Jolley

    (@mikejolley)

    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

    (@factormatt)

    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.