Re: USPS Shipping Module [Support Thread] Solved on 2.1.0 upgrade install
Quote:
Originally Posted by
dbltoe
That link shows that it is declared usable with 1.5.7 and later.
Sounds like time to upgrade to a now-current version of Zen Cart if a site wants to continue shipping via USPS.
Re: USPS Shipping Module [Support Thread] Solved on 2.1.0 upgrade install
Quote:
Originally Posted by
split63
Has anyone confirmed that the updated module by RESTful will work with 1.5.7c?
I don't have an easy way to test with 1.5.7 but I guess I can test. I generally tested only with 1.5.8 onward. I strongly suggest you move up to 1.5.8 or 2.0.0 onward.
Re: USPS Shipping Module [Support Thread] Solved on 2.1.0 upgrade install
Quote:
Originally Posted by
lat9
Will the USPS United States Postal Service - Version: 2024-08-25 K11l work with these requirements?
Re: USPS Shipping Module [Support Thread] Solved on 2.1.0 upgrade install
Quote:
Originally Posted by
NDboots
Will the USPS United States Postal Service - Version: 2024-08-25 K11l work with these requirements?
If, by these requirements, you mean the USPS requirement to change the API used to receive quotes ... the answer is no; that's why @retched has created that brand-new one that "talks the talk".
Re: USPS Shipping Module [Support Thread] Solved on 2.1.0 upgrade install
Version: 2024-08-25 K11l. OPC 2.5.4
Not sure if it is worthy to debug this plug-in now or not. Since last Friday, I started to receive the following warning. Like around 4 per day.
PHP Code:
[17-Feb-2025 08:48:59 America/New_York] Request URI: /index.php?main_page=checkout_one, IP address: xxxx, Language id 1
#0 [internal function]: zen_debug_error_handler()
#1 /includes/modules/shipping/usps.php(1616): simplexml_load_string()
#2 /includes/modules/shipping/usps.php(483): usps->_getQuote()
#3 /includes/classes/shipping.php(201): usps->quote()
#4 /includes/modules/pages/checkout_one/header_php.php(220): shipping->quote()
#5 /index.php(35): require('/home3/...')
--> PHP Warning: simplexml_load_string(): Entity: line 9: parser error : Opening and ending tag mismatch: P line 6 and BODY in /includes/modules/shipping/usps.php on line 1616.
[17-Feb-2025 08:48:59 America/New_York] Request URI: /index.php?main_page=checkout_one, IP address: xxxx, Language id 1
#0 [internal function]: zen_debug_error_handler()
#1 /includes/modules/shipping/usps.php(1616): simplexml_load_string()
#2 /includes/modules/shipping/usps.php(483): usps->_getQuote()
#3 /includes/classes/shipping.php(201): usps->quote()
#4 /includes/modules/pages/checkout_one/header_php.php(220): shipping->quote()
#5 /index.php(35): require('/home3/...')
--> PHP Warning: simplexml_load_string(): </BODY></HTML> in /includes/modules/shipping/usps.php on line 1616.
[17-Feb-2025 08:48:59 America/New_York] Request URI: /index.php?main_page=checkout_one, IP address: xxxx, Language id 1
#0 [internal function]: zen_debug_error_handler()
#1 /includes/modules/shipping/usps.php(1616): simplexml_load_string()
#2 /includes/modules/shipping/usps.php(483): usps->_getQuote()
#3 /includes/classes/shipping.php(201): usps->quote()
#4 /includes/modules/pages/checkout_one/header_php.php(220): shipping->quote()
#5 /index.php(35): require('/home3/...')
--> PHP Warning: simplexml_load_string(): ^ in /includes/modules/shipping/usps.php on line 1616.
[17-Feb-2025 08:48:59 America/New_York] Request URI: /index.php?main_page=checkout_one, IP address: xxxx, Language id 1
#0 [internal function]: zen_debug_error_handler()
#1 /includes/modules/shipping/usps.php(1616): simplexml_load_string()
#2 /includes/modules/shipping/usps.php(483): usps->_getQuote()
#3 /includes/classes/shipping.php(201): usps->quote()
#4 /includes/modules/pages/checkout_one/header_php.php(220): shipping->quote()
#5 /index.php(35): require('/home3/...')
--> PHP Warning: simplexml_load_string(): Entity: line 9: parser error : Opening and ending tag mismatch: BODY line 3 and HTML in /includes/modules/shipping/usps.php on line 1616.
[17-Feb-2025 08:48:59 America/New_York] Request URI: /index.php?main_page=checkout_one, IP address: xxxx, Language id 1
#0 [internal function]: zen_debug_error_handler()
#1 /includes/modules/shipping/usps.php(1616): simplexml_load_string()
#2 /includes/modules/shipping/usps.php(483): usps->_getQuote()
#3 /includes/classes/shipping.php(201): usps->quote()
#4 /includes/modules/pages/checkout_one/header_php.php(220): shipping->quote()
#5 /index.php(35): require('/home3/...')
--> PHP Warning: simplexml_load_string(): </BODY></HTML> in /includes/modules/shipping/usps.php on line 1616.
[17-Feb-2025 08:48:59 America/New_York] Request URI: /index.php?main_page=checkout_one, IP address: xxxx, Language id 1
#0 [internal function]: zen_debug_error_handler()
#1 /includes/modules/shipping/usps.php(1616): simplexml_load_string()
#2 /includes/modules/shipping/usps.php(483): usps->_getQuote()
#3 /includes/classes/shipping.php(201): usps->quote()
#4 /includes/modules/pages/checkout_one/header_php.php(220): shipping->quote()
#5 /index.php(35): require('/home3/...')
--> PHP Warning: simplexml_load_string(): ^ in /includes/modules/shipping/usps.php on line 1616.
Line 1616 is the following.
PHP Code:
$body_array = simplexml_load_string($body);
Line 483 is the following.
PHP Code:
$this->uspsQuote = $this->_getQuote();
No change for USPS code in the past several months. It is my first time to see this type of warning.
Re: USPS Shipping Module [Support Thread]
I keep receiving emails from USPS
USPS Web Tools Notice – Migrate to USPS APIs before January 2026
Do we need to update the module?
Re: USPS Shipping Module [Support Thread]
Quote:
Originally Posted by
Webskipper
I keep receiving emails from USPS
USPS Web Tools Notice – Migrate to USPS APIs before January 2026
Do we need to update the module?
You'll need to get new credentials for use with the USPS RESTful (https://www.zen-cart.com/downloads.php?do=file&id=2395) updated shipping module.
Re: USPS Shipping Module [Support Thread] Solved on 2.1.0 upgrade install
Quote:
Originally Posted by
njcyx
Version: 2024-08-25 K11l. OPC 2.5.4
Not sure if it is worthy to debug this plug-in now or not. Since last Friday, I started to receive the following warning. Like around 4 per day.
PHP Code:
[17-Feb-2025 08:48:59 America/New_York] Request URI: /index.php?main_page=checkout_one, IP address: xxxx, Language id 1
#0 [internal function]: zen_debug_error_handler()
#1 /includes/modules/shipping/usps.php(1616): simplexml_load_string()
#2 /includes/modules/shipping/usps.php(483): usps->_getQuote()
#3 /includes/classes/shipping.php(201): usps->quote()
#4 /includes/modules/pages/checkout_one/header_php.php(220): shipping->quote()
#5 /index.php(35): require('/home3/...')
--> PHP Warning: simplexml_load_string(): Entity: line 9: parser error : Opening and ending tag mismatch: P line 6 and BODY in /includes/modules/shipping/usps.php on line 1616.
[17-Feb-2025 08:48:59 America/New_York] Request URI: /index.php?main_page=checkout_one, IP address: xxxx, Language id 1
#0 [internal function]: zen_debug_error_handler()
#1 /includes/modules/shipping/usps.php(1616): simplexml_load_string()
#2 /includes/modules/shipping/usps.php(483): usps->_getQuote()
#3 /includes/classes/shipping.php(201): usps->quote()
#4 /includes/modules/pages/checkout_one/header_php.php(220): shipping->quote()
#5 /index.php(35): require('/home3/...')
--> PHP Warning: simplexml_load_string(): </BODY></HTML> in /includes/modules/shipping/usps.php on line 1616.
[17-Feb-2025 08:48:59 America/New_York] Request URI: /index.php?main_page=checkout_one, IP address: xxxx, Language id 1
#0 [internal function]: zen_debug_error_handler()
#1 /includes/modules/shipping/usps.php(1616): simplexml_load_string()
#2 /includes/modules/shipping/usps.php(483): usps->_getQuote()
#3 /includes/classes/shipping.php(201): usps->quote()
#4 /includes/modules/pages/checkout_one/header_php.php(220): shipping->quote()
#5 /index.php(35): require('/home3/...')
--> PHP Warning: simplexml_load_string(): ^ in /includes/modules/shipping/usps.php on line 1616.
[17-Feb-2025 08:48:59 America/New_York] Request URI: /index.php?main_page=checkout_one, IP address: xxxx, Language id 1
#0 [internal function]: zen_debug_error_handler()
#1 /includes/modules/shipping/usps.php(1616): simplexml_load_string()
#2 /includes/modules/shipping/usps.php(483): usps->_getQuote()
#3 /includes/classes/shipping.php(201): usps->quote()
#4 /includes/modules/pages/checkout_one/header_php.php(220): shipping->quote()
#5 /index.php(35): require('/home3/...')
--> PHP Warning: simplexml_load_string(): Entity: line 9: parser error : Opening and ending tag mismatch: BODY line 3 and HTML in /includes/modules/shipping/usps.php on line 1616.
[17-Feb-2025 08:48:59 America/New_York] Request URI: /index.php?main_page=checkout_one, IP address: xxxx, Language id 1
#0 [internal function]: zen_debug_error_handler()
#1 /includes/modules/shipping/usps.php(1616): simplexml_load_string()
#2 /includes/modules/shipping/usps.php(483): usps->_getQuote()
#3 /includes/classes/shipping.php(201): usps->quote()
#4 /includes/modules/pages/checkout_one/header_php.php(220): shipping->quote()
#5 /index.php(35): require('/home3/...')
--> PHP Warning: simplexml_load_string(): </BODY></HTML> in /includes/modules/shipping/usps.php on line 1616.
[17-Feb-2025 08:48:59 America/New_York] Request URI: /index.php?main_page=checkout_one, IP address: xxxx, Language id 1
#0 [internal function]: zen_debug_error_handler()
#1 /includes/modules/shipping/usps.php(1616): simplexml_load_string()
#2 /includes/modules/shipping/usps.php(483): usps->_getQuote()
#3 /includes/classes/shipping.php(201): usps->quote()
#4 /includes/modules/pages/checkout_one/header_php.php(220): shipping->quote()
#5 /index.php(35): require('/home3/...')
--> PHP Warning: simplexml_load_string(): ^ in /includes/modules/shipping/usps.php on line 1616.
Line 1616 is the following.
PHP Code:
$body_array = simplexml_load_string($body);
Line 483 is the following.
PHP Code:
$this->uspsQuote = $this->_getQuote();
No change for USPS code in the past several months. It is my first time to see this type of warning.
I keep receiving this warning everyday since last Friday. I highly doubt USPS changed something on this API since last Friday.
Temp fix. Add "error_reporting(0);" to the 2nd line of the code.
Re: USPS Shipping Module [Support Thread] Solved on 2.1.0 upgrade install
@njcyx, something changed! If you turn on USPS debug, the response received from USPS will be logged.
Re: USPS Shipping Module [Support Thread] Solved on 2.1.0 upgrade install
Update. I turned on the USPS debug on this Tuesday, and I haven't received any warning after that!
USPS maybe just corrected the bug on their side this Tuesday then. Anyway.
Thanks.