Support » Plugin: shipcloud for WooCommerce » Invalid Argument Errors

  • Resolved Jack

    (@redindieguy1)


    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 to see the link]

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

    (@redindieguy1)

    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

    (@andrecedik)

    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?

    Jack

    (@redindieguy1)

    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

    (@andrecedik)

    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.

    Jack

    (@redindieguy1)

    Thanks André.

    It’s definitely in the app, as it’s the only one triggering the issue.

    Best.

    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

    (@andrecedik)

    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

    (@andrecedik)

    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.

    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

    Jack

    (@redindieguy1)

    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

    (@andrecedik)

    Hi @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.