Jump to content

Recommended Posts

Posted

I just did the upgrade for the All in One Shipping plugin (haven't changed anything) and am getting this error: Anyway to fix this? Thanks in advance!

[27-Jun-2017 16:06:53 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:

    $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'];
        }

Posted (edited)

I compared shipping.class.php from 108, 109 and 110 and all files appear identical.

Did you clear the cache after updating ?

 

I have something lurking in the depths of my memory, that I've seen this before, but for the life of my don't know why.

Edited by keat
Posted

Yes, Keat, I cleared my cache.  The plugin is working so maybe it's not a big deal?  But a PHP warning - I don't like those. Oh and Keats, thanks for commenting on my post.

Claudia

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...