If this is your first visit, check our documentation. To post, register or login.
Forums / Addon Shipping Modules / Debug: USPS.php PHP Warning: Invalid argument supplied for foreach()

Debug: USPS.php PHP Warning: Invalid argument supplied for foreach()

Locked

Started by divinelighting on 10 Jun 2011, 6:47 PM · Views: 1,769

Results 1 to 3 of 3
This thread is locked. New replies are disabled.
10 Jun 2011, 6:47 PM
#1
divinelighting avatar

divinelighting

Zen Follower

Join Date:
Jun 2006
Location:
Atlanta, GA
Posts:
124
Plugin Contributions:
0

Debug: USPS.php PHP Warning: Invalid argument supplied for foreach()

I'm getting this debug error:

PHP Warning: Invalid argument supplied for foreach()

and it points to this in usps.php

//Get value of package - used for insurance and cod.
    $value=0;
    foreach ($order->products as $p) {
      $value+=$p['final_price']*$p['qty'];
    }
    $this->_setValue($value);

Any ideas?

http://www.divinelighting.com -- Super Orders 3.0 -- Ultimate SEO -- Quantity Discounts -- SitemapXML -- Image Handler -- Shipworks

10 Jun 2011, 9:18 PM
#2
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Debug: USPS.php PHP Warning: Invalid argument supplied for foreach()

Is this a customized usps.php file?

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

11 Jun 2011, 2:17 AM
#3
divinelighting avatar

divinelighting

Zen Follower

Join Date:
Jun 2006
Location:
Atlanta, GA
Posts:
124
Plugin Contributions:
0

Re: Debug: USPS.php PHP Warning: Invalid argument supplied for foreach()

It is the marco file from May 10. Just realized there is a support thread for that and a newer version from May26
http://www.zen-cart.com/index.php?main_page=product_contrib_info&products_id=1914

I updated usps.php and we'll see if the problem is fixed.

http://www.divinelighting.com -- Super Orders 3.0 -- Ultimate SEO -- Quantity Discounts -- SitemapXML -- Image Handler -- Shipworks