Claudia M

All Iin One Shipping Error

Recommended Posts

Hi,

I got this error (warning) in my cPanel error log:

[10-Oct-2017 14:04:27 America/Louisville] PHP Warning:  Invalid argument supplied for foreach() in /home/claudias/public_html/modules/shipping/All_In_One_Shipping/shipping.class.php on line 46.

 

Here is the code referenced:

$this->_item_count = 0;

               (LINE 46)             foreach ($this->_basket['contents'] as $item) {

                                             // XXX May want to exclude digital products from the item count, i.e.

                                             // if ($item['digital']) continue;

                                             $this->_item_count += $item['quantity'];

                              }

Anything to worry about?  If so how do I fix it?

Thanks in advance,

Claudia

Share this post


Link to post
Share on other sites

In this case, no, it isn't anything to be overly concerned about.

This error would indicate that the shipping was attempted to be calculated on an empty shopping basket.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now