Title: Invalid Argument Errors
Last modified: October 25, 2017

---

# Invalid Argument Errors

 *  Resolved [Jack](https://wordpress.org/support/users/redindieguy1/)
 * (@redindieguy1)
 * [8 years, 7 months ago](https://wordpress.org/support/topic/invalid-argument-errors/)
 * Hi all,
 * using and enjoying the ShipCloud plugin, however, I recently noticed that it’s
   causing me some errors. When I click on a product, and add to cart, I get the
   following:
 * Warning: Invalid argument supplied for foreach() in /homepages/20/d648411221/
   htdocs/clickandbuilds/Testing/wp-content/plugins/woocommerce/includes/class-wc-
   cart.php on line 1275
 * Warning: array_sum() expects parameter 1 to be array, null given in /homepages/
   20/d648411221/htdocs/clickandbuilds/Testing/wp-content/plugins/woocommerce/includes/
   class-wc-cart-totals.php on line 348
 * Warning: Invalid argument supplied for foreach() in /homepages/20/d648411221/
   htdocs/clickandbuilds/Testing/wp-content/plugins/woocommerce/includes/class-wc-
   cart-totals.php on line 571
 * Warning: Invalid argument supplied for foreach() in /homepages/20/d648411221/
   htdocs/clickandbuilds/Testing/wp-content/plugins/woocommerce/includes/class-wc-
   cart-totals.php on line 550
 * Warning: Invalid argument supplied for foreach() in /homepages/20/d648411221/
   htdocs/clickandbuilds/Testing/wp-content/plugins/woocommerce/includes/class-wc-
   cart-totals.php on line 550
 * When I deactivate Shipcloud the warning disappears. To test, browser cache needs
   to be cleared. I’ve deactivated the plugin until we can find out what the cause
   is.
 * Cheers,
 * Jason
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Finvalid-argument-errors%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  Thread Starter [Jack](https://wordpress.org/support/users/redindieguy1/)
 * (@redindieguy1)
 * [8 years, 7 months ago](https://wordpress.org/support/topic/invalid-argument-errors/#post-9625609)
 * Hi all,
 * is there an update on this? I’ve had my theme developer check over all theme 
   files, and they say everything is fine, so it’s clearly the plugin causing the
   issue. Would appreciate help.
 * Cheers
 *  Plugin Author [André Cedik](https://wordpress.org/support/users/andrecedik/)
 * (@andrecedik)
 * [8 years, 7 months ago](https://wordpress.org/support/topic/invalid-argument-errors/#post-9637849)
 * Hi Jack,
 * since your error messages don’t show an error within the plugin it’s kind of 
   hard to figure out what the issue might be. Could you give us more details about
   your setup?
 * What WordPress and WooCommerce versions are you using? What is the version of
   the plugin is installed?
 *  Thread Starter [Jack](https://wordpress.org/support/users/redindieguy1/)
 * (@redindieguy1)
 * [8 years, 7 months ago](https://wordpress.org/support/topic/invalid-argument-errors/#post-9637891)
 * Hi André,
    using: – WP 4.8.3 – WC 3.2.2 – Shipcloud for WooCommerce 1.5.1
 * The theme was checked and according to developers is fine. WooCommerce says it’s
   clearly a plugin issue. I have to plug deactivated at the moment to avoid the
   error.
 * Thanks
 *  Plugin Author [André Cedik](https://wordpress.org/support/users/andrecedik/)
 * (@andrecedik)
 * [8 years, 7 months ago](https://wordpress.org/support/topic/invalid-argument-errors/#post-9637960)
 * Hmm, too bad. I can’t reproduce it with the same setup. I’ll talk to one of the
   devs of the plugin to see if we can find out more about the issue. I’ll get back
   to you.
 *  Thread Starter [Jack](https://wordpress.org/support/users/redindieguy1/)
 * (@redindieguy1)
 * [8 years, 7 months ago](https://wordpress.org/support/topic/invalid-argument-errors/#post-9637975)
 * Thanks André.
 * It’s definitely in the app, as it’s the only one triggering the issue.
 * Best.
 *  [Mape](https://wordpress.org/support/users/mapepro/)
 * (@mapepro)
 * [8 years, 6 months ago](https://wordpress.org/support/topic/invalid-argument-errors/#post-9652988)
 * I got very similar errors with the latest WooCommerce Version and they only appear
   with the shipcloud plugin active!
    Please provide a fast fix, because I would
   like to keep using your service which I am paying for! Thanks 🙂
 *  Plugin Author [André Cedik](https://wordpress.org/support/users/andrecedik/)
 * (@andrecedik)
 * [8 years, 6 months ago](https://wordpress.org/support/topic/invalid-argument-errors/#post-9654275)
 * These are simply warnings, because WooCommerce has some issues with the tax calculation.
   The plugin itself still works as intended.
 * We will make some adjustments with an upcoming release.
 *  Plugin Author [André Cedik](https://wordpress.org/support/users/andrecedik/)
 * (@andrecedik)
 * [8 years, 6 months ago](https://wordpress.org/support/topic/invalid-argument-errors/#post-9710456)
 * Hey everyone,
 * we’re currently fixing the reason for the warnings that WooCommerce outputs. 
   This will be incorporated in one of our next releases.
 * The plugin itself still works as intended, so decreasing the debug level of your
   servers should be the solution, because displaying warnings in a production environment
   isn’t a good idea.
 *  [nikoro83](https://wordpress.org/support/users/nikoro83/)
 * (@nikoro83)
 * [8 years, 6 months ago](https://wordpress.org/support/topic/invalid-argument-errors/#post-9741559)
 * Hi André,
 * I saw the new update of the Shipcloud plugin for Woocommerce today (Version 1.6.1)
   
   but it does not solve this problem.
 * I have the same problem:
 * Warning: Invalid argument supplied for foreach() in /homepages/7/d247699219/htdocs/
   clickandbuilds/Stadionheizkissen/wp-content/plugins/woocommerce/includes/class-
   wc-cart.php on line 1275
 * Warning: array_sum() expects parameter 1 to be array, null given in /homepages/
   7/d247699219/htdocs/clickandbuilds/Stadionheizkissen/wp-content/plugins/woocommerce/
   includes/class-wc-cart-totals.php on line 353
 * Warning: Invalid argument supplied for foreach() in /homepages/7/d247699219/htdocs/
   clickandbuilds/Stadionheizkissen/wp-content/plugins/woocommerce/includes/class-
   wc-cart-totals.php on line 595
 * Warning: Invalid argument supplied for foreach() in /homepages/7/d247699219/htdocs/
   clickandbuilds/Stadionheizkissen/wp-content/plugins/woocommerce/includes/class-
   wc-cart-totals.php on line 574
 * Warning: Invalid argument supplied for foreach() in /homepages/7/d247699219/htdocs/
   clickandbuilds/Stadionheizkissen/wp-content/plugins/woocommerce/includes/class-
   wc-cart-totals.php on line 574
 * Please let me know, when there is a solution. How do I decrease the debug level?
   Is this a setting inside woocommerce? Or php?
 * Thank you!
    Niko
 *  Thread Starter [Jack](https://wordpress.org/support/users/redindieguy1/)
 * (@redindieguy1)
 * [8 years, 5 months ago](https://wordpress.org/support/topic/invalid-argument-errors/#post-9811867)
 * Was hopeful on the last update, but this plugin is still 100% unusable to me.
   Any Updates? The plug in was a great time saver for Shipcloud, so having it would
   be key.
 *  Plugin Author [André Cedik](https://wordpress.org/support/users/andrecedik/)
 * (@andrecedik)
 * [8 years, 2 months ago](https://wordpress.org/support/topic/invalid-argument-errors/#post-10052148)
 * Hi [@redindieguy1](https://wordpress.org/support/users/redindieguy1/),
 * I’ve updated the plugin once again today. This should fix the issue of displaying
   those warnings.

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

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

 * ![](https://ps.w.org/shipcloud-for-woocommerce/assets/icon-256x256.png?rev=1680604)
 * [shipcloud for WooCommerce](https://wordpress.org/plugins/shipcloud-for-woocommerce/)
 * [Support Threads](https://wordpress.org/support/plugin/shipcloud-for-woocommerce/)
 * [Active Topics](https://wordpress.org/support/plugin/shipcloud-for-woocommerce/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/shipcloud-for-woocommerce/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/shipcloud-for-woocommerce/reviews/)

## Tags

 * [shipcloud](https://wordpress.org/support/topic-tag/shipcloud/)

 * 11 replies
 * 4 participants
 * Last reply from: [André Cedik](https://wordpress.org/support/users/andrecedik/)
 * Last activity: [8 years, 2 months ago](https://wordpress.org/support/topic/invalid-argument-errors/#post-10052148)
 * Status: resolved