♥Smoky Barnable 83 Posted August 29, 2022 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
OldPete 2 Posted November 25, 2022 (edited) 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? Thanks, Pete Edited November 25, 2022 by OldPete Share this post Link to post Share on other sites
bonbec 149 Posted November 25, 2022 Hello, I don't use USPS but the addons for old OsCommerce are here now : https://old.oscommerce.com/q=usps with OsC 2.2 since 2006 ... Share this post Link to post Share on other sites