Jump to content
  • Checkout
  • Login
  • Get in touch


The e-commerce.


USPS Rate V4, Intl Rate V2 (official support thread)

Recommended Posts

I have this working on PHP8 but occasionally see a fatal error in my logs?

		if (is_countable($uspsQuote) && count($uspsQuote) > 0)  {
        $PackageSize = ($order->delivery['country']['iso_code_2'] == 'US' ? sizeof($uspsQuote['Package']) : sizeof($uspsQuote['Package']['Service']));

The error is: PHP Fatal error:  Uncaught TypeError: sizeof(): Argument #1 ($value) must be of type Countable|array, null given


The water in a vessel is sparkling; the water in the sea is dark. The small truth has words which are clear; the great truth has great silence.

- Rabindranath Tagore

Share this post

Link to post
Share on other sites

For some reason my USPS module has stopped working...

Stupid question that I simply can't remember: Where (which file) does the USPS generated password for the api get entered?  When I go to the module settings there's a spot for the user id, but I can't seem to find one for the password (is there even a place?).

This is the usps.php file being used:

USPS Rate V4 Intl Rate V2 - ver R3.3
  $Mod: Changed from Parcel Post to Standard Post 20130129 Kymation $
  $Mod: USPS API changes 20130729 Kymation v 1.3 $
  $Mod: USPS API changes 20140310 a.forever $
  $Mod: USPS API changes 20140802 a.forever $

Copyright (c) 2012 osCbyJetta
Released under the GNU General Public License

I looked to add a newer (?) version but the download section seems down (?). (I go here: https://app.oscommerce.com/usps and I don't see a place to download anything?)

thebestcandles.com is the domain.

Any help?


Edited by OldPete

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