♥Smoky Barnable Posted August 29, 2022 Share 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 Quote 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 More sharing options...
OldPete Posted November 25, 2022 Share 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 Quote Link to comment Share on other sites More sharing options...
bonbec Posted November 25, 2022 Share 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 Quote with OsC 2.2 since 2006 ... Link to comment Share on other sites More sharing options...
♥Smoky Barnable Posted Saturday at 09:31 PM Share Posted Saturday at 09:31 PM USPS will be changing First class package and ground services to USPS Ground Advantage July 9th. I'm sure some tweaks to the code will be needed to display rates properly. Quote 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 More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.