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

Link to comment
Share on other sites

  • 2 months later...

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
Link to comment
Share on other sites

Join the conversation

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

Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
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...