Page 5 of 11 FirstFirst ... 34567 ... LastLast
Results 41 to 50 of 103
  1. #41
    Join Date
    Jan 2004
    Location
    N of San Antonio TX
    Posts
    9,443
    Plugin Contributions
    11

    Default Re: USPS Shipping (RESTful) (USPSr)

    I don't know if you are using the latest zip from GitHub for 2.#.0, but that's what I am testing with. As stated, all installed items are latest from GitHub.

    I turned restful back on and enabled the errors and log (BTW, I think you meant to say, "CAUTION: Each log file is at least 300KB big." versus "CAUTION: Each long file is at least 300KB big."

    I added an item to the cart, went to the shopping cart, and used the estimator. I received the correct quote and no errors were shown or logged.

    I then clicked on Checkout and selected Guest Checkout (OPC). I got the standard screen with no shipping or payment options. They should not show until Contact and Billing are set.

    I set the Contact and Billing using the simple 5-digit Zip. Upon setting them, I see Shipping options with the Priority pre-selected. While it did list the options in the selected "Price-LowtoHigh", it might be best to also pre-select the lowest option.

    At this point, there are still no errors shown or logs generated. As a test, I went back to billing and entered what my browser had stored, which was a Zip + 4 code. That resulted in a 500 error and and log files.

    Since the session had the info locked in to Guest, I went back to the cart and tried Zip + 4 with the estimator and got basically the same error but a partial blank screen.

    I tried the zip with no hyphen and got the same results.

    My assumption (I know) is that anything other than the 5-digit zip fails. Using just a 5 digit zip works fine.

    The USPS K11I accepts Zip + 4

  2. #42
    Join Date
    May 2011
    Location
    Tennessee
    Posts
    496
    Plugin Contributions
    0

    Default Re: USPS Shipping (RESTful) (USPSr)

    Quote Originally Posted by dbltoe View Post
    I don't know if you are using the latest zip from GitHub for 2.#.0, but that's what I am testing with. As stated, all installed items are latest from GitHub.

    I turned restful back on and enabled the errors and log (BTW, I think you meant to say, "CAUTION: Each log file is at least 300KB big." versus "CAUTION: Each long file is at least 300KB big."

    I added an item to the cart, went to the shopping cart, and used the estimator. I received the correct quote and no errors were shown or logged.

    I then clicked on Checkout and selected Guest Checkout (OPC). I got the standard screen with no shipping or payment options. They should not show until Contact and Billing are set.

    I set the Contact and Billing using the simple 5-digit Zip. Upon setting them, I see Shipping options with the Priority pre-selected. While it did list the options in the selected "Price-LowtoHigh", it might be best to also pre-select the lowest option.

    At this point, there are still no errors shown or logs generated. As a test, I went back to billing and entered what my browser had stored, which was a Zip + 4 code. That resulted in a 500 error and and log files.

    Since the session had the info locked in to Guest, I went back to the cart and tried Zip + 4 with the estimator and got basically the same error but a partial blank screen.

    I tried the zip with no hyphen and got the same results.

    My assumption (I know) is that anything other than the 5-digit zip fails. Using just a 5 digit zip works fine.

    The USPS K11I accepts Zip + 4
    I finally found the current version and it is working now.

  3. #43
    Join Date
    Jan 2004
    Location
    N of San Antonio TX
    Posts
    9,443
    Plugin Contributions
    11

    Default Re: USPS Shipping (RESTful) (USPSr)

    Have you tried it with Zip + 4 or just a nine-digit zip code?

  4. #44
    Join Date
    May 2011
    Location
    Tennessee
    Posts
    496
    Plugin Contributions
    0

    Default Re: USPS Shipping (RESTful) (USPSr)

    Quote Originally Posted by dbltoe View Post
    Have you tried it with Zip + 4 or just a nine-digit zip code?
    Just the basic four or nine.

  5. #45
    Join Date
    Jun 2007
    Location
    Bronx, New York, United States
    Posts
    679
    Plugin Contributions
    8

    Default Re: USPS Shipping (RESTful) (USPSr)

    Quote Originally Posted by dbltoe View Post
    I don't know if you are using the latest zip from GitHub for 2.#.0, but that's what I am testing with. As stated, all installed items are latest from GitHub.

    I turned restful back on and enabled the errors and log (BTW, I think you meant to say, "CAUTION: Each log file is at least 300KB big." versus "CAUTION: Each long file is at least 300KB big."
    I'm 95% sure that was a carryover when I was still generating large files. I'll start changing it around for the next version.

    Quote Originally Posted by dbltoe View Post
    I added an item to the cart, went to the shopping cart, and used the estimator. I received the correct quote and no errors were shown or logged.

    I then clicked on Checkout and selected Guest Checkout (OPC). I got the standard screen with no shipping or payment options. They should not show until Contact and Billing are set.
    How exactly are you getting that to happen here?

    Quote Originally Posted by dbltoe View Post
    I set the Contact and Billing using the simple 5-digit Zip. Upon setting them, I see Shipping options with the Priority pre-selected. While it did list the options in the selected "Price-LowtoHigh", it might be best to also pre-select the lowest option.
    I have absolutely no idea why the last option presented is selected last. I'll start looking into what's going on and how to select the cheaper option.

    Quote Originally Posted by dbltoe View Post
    At this point, there are still no errors shown or logs generated. As a test, I went back to billing and entered what my browser had stored, which was a Zip + 4 code. That resulted in a 500 error and and log files.

    Since the session had the info locked in to Guest, I went back to the cart and tried Zip + 4 with the estimator and got basically the same error but a partial blank screen.

    I tried the zip with no hyphen and got the same results.

    My assumption (I know) is that anything other than the 5-digit zip fails. Using just a 5 digit zip works fine.

    The USPS K11I accepts Zip + 4
    Okay I got the same the result. Looking at the API error message that is generated, entering 9 digits straight with no hyphen is actually causing the API to fail to validate because it's looking for the proper format of (in regEx) ^\d{5}(?:[-\s]\d{4})?$\

    Which means it's looking for the ZipCode to be a string that starts with 5 digits has a hyphen (or a space) and ends with 4. If you enter nine digits straight in, it fails because it's not a recognized format for the API. Nonetheless... I SHOULD be able to get something going with this. (That is, take the input and make it the proper format for the API.)

  6. #46
    Join Date
    Jun 2007
    Location
    Bronx, New York, United States
    Posts
    679
    Plugin Contributions
    8

    Default Re: USPS Shipping (RESTful) (USPSr)

    For demonstration, this is what happens when I run the API return through a regex tester:


  7. #47
    Join Date
    Jan 2004
    Location
    N of San Antonio TX
    Posts
    9,443
    Plugin Contributions
    11

    Default Re: USPS Shipping (RESTful) (USPSr)

    That test might work, but, if you use a Zip + 4 in the shipping estimator on the shopping cart page, you get a partial blank screen.

    Code:
    [06-Mar-2025 03:05:38 UTC] PHP Fatal error: Uncaught TypeError: Cannot access offset of type string on string in /zc_plugins/USPSRestful/v0.0.0/catalog/includes/modules/shipping/uspsr.php:916
    Stack trace:
    #0 /includes/classes/shipping.php(257): uspsr->quote('')
    #1 /includes/modules/shipping_estimator.php(163): shipping->quote()
    #2 /includes/templates/jetmar_boot/templates/tpl_shopping_cart_default.php(240): require('/home/enigjohn/...')
    #3 /includes/templates/jetmar_boot/common/tpl_main_page.php(233): require('/home/enigjohn/...')
    #4 /index.php(94): require('/home/enigjohn/...')
    #5 {main}
    thrown in /zc_plugins/USPSRestful/v0.0.0/catalog/includes/modules/shipping/uspsr.php on line 916
    
    [06-Mar-2025 03:05:38 UTC] Request URI: /index.php?main_page=shopping_cart, IP address: 216.177.186.199
    --> PHP Fatal error: Uncaught TypeError: Cannot access offset of type string on string in /zc_plugins/USPSRestful/v0.0.0/catalog/includes/modules/shipping/uspsr.php:916
    Stack trace:
    #0 /includes/classes/shipping.php(257): uspsr->quote('')
    #1 /includes/modules/shipping_estimator.php(163): shipping->quote()
    #2 /includes/templates/jetmar_boot/templates/tpl_shopping_cart_default.php(240): require('/home/enigjohn/...')
    #3 /includes/templates/jetmar_boot/common/tpl_main_page.php(233): require('/home/enigjohn/...')
    #4 /index.php(94): require('/home/enigjohn/...')
    #5 {main}
    thrown in /zc_plugins/USPSRestful/v0.0.0/catalog/includes/modules/shipping/uspsr.php on line 916.
    
    [06-Mar-2025 03:05:38 UTC] Request URI: /index.php?main_page=shopping_cart, IP address: 216.177.186.199
    --> PHP Fatal error: Uncaught TypeError: Cannot access offset of type string on string in /zc_plugins/USPSRestful/v0.0.0/catalog/includes/modules/shipping/uspsr.php:916
    Stack trace:
    #0 /includes/classes/shipping.php(257): uspsr->quote('')
    #1 /includes/modules/shipping_estimator.php(163): shipping->quote()
    #2 /includes/templates/jetmar_boot/templates/tpl_shopping_cart_default.php(240): require('/home/enigjohn/...')
    #3 /includes/templates/jetmar_boot/common/tpl_main_page.php(233): require('/home/enigjohn/...')
    #4 /index.php(94): require('/home/enigjohn/...')
    #5 {main}
    thrown in /zc_plugins/USPSRestful/v0.0.0/catalog/includes/modules/shipping/uspsr.php on line 916.
    And the USPS log says the token was revoked.

    Again, all works fine for a five-digit zip.

  8. #48
    Join Date
    Jun 2007
    Location
    Bronx, New York, United States
    Posts
    679
    Plugin Contributions
    8

    Default Re: USPS Shipping (RESTful) (USPSr)

    Quote Originally Posted by dbltoe View Post
    That test might work, but, if you use a Zip + 4 in the shipping estimator on the shopping cart page, you get a partial blank screen.

    Code:
    [06-Mar-2025 03:05:38 UTC] PHP Fatal error: Uncaught TypeError: Cannot access offset of type string on string in /zc_plugins/USPSRestful/v0.0.0/catalog/includes/modules/shipping/uspsr.php:916
    Stack trace:
    #0 /includes/classes/shipping.php(257): uspsr->quote('')
    #1 /includes/modules/shipping_estimator.php(163): shipping->quote()
    #2 /includes/templates/jetmar_boot/templates/tpl_shopping_cart_default.php(240): require('/home/enigjohn/...')
    #3 /includes/templates/jetmar_boot/common/tpl_main_page.php(233): require('/home/enigjohn/...')
    #4 /index.php(94): require('/home/enigjohn/...')
    #5 {main}
    thrown in /zc_plugins/USPSRestful/v0.0.0/catalog/includes/modules/shipping/uspsr.php on line 916
    
    [06-Mar-2025 03:05:38 UTC] Request URI: /index.php?main_page=shopping_cart, IP address: 216.177.186.199
    --> PHP Fatal error: Uncaught TypeError: Cannot access offset of type string on string in /zc_plugins/USPSRestful/v0.0.0/catalog/includes/modules/shipping/uspsr.php:916
    Stack trace:
    #0 /includes/classes/shipping.php(257): uspsr->quote('')
    #1 /includes/modules/shipping_estimator.php(163): shipping->quote()
    #2 /includes/templates/jetmar_boot/templates/tpl_shopping_cart_default.php(240): require('/home/enigjohn/...')
    #3 /includes/templates/jetmar_boot/common/tpl_main_page.php(233): require('/home/enigjohn/...')
    #4 /index.php(94): require('/home/enigjohn/...')
    #5 {main}
    thrown in /zc_plugins/USPSRestful/v0.0.0/catalog/includes/modules/shipping/uspsr.php on line 916.
    
    [06-Mar-2025 03:05:38 UTC] Request URI: /index.php?main_page=shopping_cart, IP address: 216.177.186.199
    --> PHP Fatal error: Uncaught TypeError: Cannot access offset of type string on string in /zc_plugins/USPSRestful/v0.0.0/catalog/includes/modules/shipping/uspsr.php:916
    Stack trace:
    #0 /includes/classes/shipping.php(257): uspsr->quote('')
    #1 /includes/modules/shipping_estimator.php(163): shipping->quote()
    #2 /includes/templates/jetmar_boot/templates/tpl_shopping_cart_default.php(240): require('/home/enigjohn/...')
    #3 /includes/templates/jetmar_boot/common/tpl_main_page.php(233): require('/home/enigjohn/...')
    #4 /index.php(94): require('/home/enigjohn/...')
    #5 {main}
    thrown in /zc_plugins/USPSRestful/v0.0.0/catalog/includes/modules/shipping/uspsr.php on line 916.
    And the USPS log says the token was revoked.

    Again, all works fine for a five-digit zip.
    Can you see if you also get a USPSr log so I can compare? For some reason I can't get a white screen on my loadout. Not sure if it's because I'm running 2.1.0

  9. #49
    Join Date
    Feb 2006
    Location
    Tampa Bay, Florida
    Posts
    10,285
    Plugin Contributions
    125

    Default Re: USPS Shipping (RESTful) (USPSr)

    Have you installed the latest released USPS-r? I thought this was fixed.
    That Software Guy. My Store: Zen Cart Support
    Available for hire - See my ad in Services
    Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
    Do you benefit from Zen Cart? Then please support the project.

  10. #50
    Join Date
    Jan 2004
    Location
    N of San Antonio TX
    Posts
    9,443
    Plugin Contributions
    11

    Default Re: USPS Shipping (RESTful) (USPSr)

    As stated, all items installed are latest GitHub versions.

    PM with log sent.

 

 
Page 5 of 11 FirstFirst ... 34567 ... LastLast

Similar Threads

  1. PayPal RESTful API Payment Module
    By lat9 in forum PayPal RESTful support
    Replies: 261
    Last Post: 21 Apr 2025, 08:22 PM
  2. v158 UPS Shipping using RESTful/OAuth API [Support Thread]
    By lat9 in forum Addon Shipping Modules
    Replies: 147
    Last Post: 8 Mar 2025, 06:38 PM
  3. v155 USPS Shipping Module - We are unable to find a USPS shipping quote suitable....
    By jtovar in forum Built-in Shipping and Payment Modules
    Replies: 9
    Last Post: 6 May 2019, 11:07 PM
  4. v155 V1.5.5D USPS Shipping module, I just noticed, no USPS retail Ground Displaying
    By WiccanWitch420 in forum Built-in Shipping and Payment Modules
    Replies: 1
    Last Post: 31 Mar 2018, 04:34 PM
  5. v139h Is the USPS shipping module required to ship with USPS?
    By yeahwhatever in forum Addon Shipping Modules
    Replies: 3
    Last Post: 14 Feb 2012, 12:58 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR