Claudia M Posted October 11, 2017 Share Posted October 11, 2017 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 Quote Link to comment Share on other sites More sharing options...
bsmither Posted October 11, 2017 Share Posted October 11, 2017 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. Quote Link to comment Share on other sites More sharing options...
Claudia M Posted October 11, 2017 Author Share Posted October 11, 2017 Thanks Brian! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.