-
Re: USPS Shipping Module [Support Thread]
Something didn't go well in that upgrade. Feel like I'm doing something dumb, but can't put a finger on it. Shipping module wouldn't load and was getting:
Code:
[25-Aug-2024 14:01:21 America/Chicago] PHP Fatal error: Uncaught TypeError: array_merge(): Argument #2 must be of type array, int given in /includes/classes/ResourceLoaders/ArraysLanguageLoader.php:122
Stack trace:
#0 /includes/classes/ResourceLoaders/ArraysLanguageLoader.php(122): array_merge(Array, 1)
#1 /includes/classes/ResourceLoaders/ArraysLanguageLoader.php(86): Zencart\LanguageLoader\ArraysLanguageLoader->loadDefinesWithFallback('/home/pcs/publi...', '/home/pcs/publi...')
#2 /includes/classes/ResourceLoaders/ArraysLanguageLoader.php(74): Zencart\LanguageLoader\ArraysLanguageLoader->loadDefinesFromArrayFile('/home/pcs/publi...', 'english', 'usps.php', '/modules/shippi...')
#3 /includes/classes/ResourceLoaders/LanguageLoader.php(84): Zencart\LanguageLoader\ArraysLanguageLoader->loadExtraLanguageFiles('/home/pcs/publi...', 'english', 'usps.php', '/modules/shippi...')
#4 /nimda123/modules.php(169): Zencart\LanguageLoader\LanguageLoader->loadExtraLanguageFiles('/home/pcs/publi...', 'english', 'usps.php', '/modules/shippi...')
#5 /nimda123/index.php(16): require('/home/pcs/publi...')
#6 {main}
thrown in /includes/classes/ResourceLoaders/ArraysLanguageLoader.php on line 122
[25-Aug-2024 14:01:21 America/Chicago] Request URI: /nimda123/index.php?cmd=modules&set=shipping&module=flat, IP address: 2601:300:4b01:2ce0:e001:a885:e1ef:8ed
--> PHP Fatal error: Uncaught TypeError: array_merge(): Argument #2 must be of type array, int given in /includes/classes/ResourceLoaders/ArraysLanguageLoader.php:122
Stack trace:
#0 /includes/classes/ResourceLoaders/ArraysLanguageLoader.php(122): array_merge(Array, 1)
#1 /includes/classes/ResourceLoaders/ArraysLanguageLoader.php(86): Zencart\LanguageLoader\ArraysLanguageLoader->loadDefinesWithFallback('/home/pcs/publi...', '/home/pcs/publi...')
#2 /includes/classes/ResourceLoaders/ArraysLanguageLoader.php(74): Zencart\LanguageLoader\ArraysLanguageLoader->loadDefinesFromArrayFile('/home/pcs/publi...', 'english', 'usps.php', '/modules/shippi...')
#3 /includes/classes/ResourceLoaders/LanguageLoader.php(84): Zencart\LanguageLoader\ArraysLanguageLoader->loadExtraLanguageFiles('/home/pcs/publi...', 'english', 'usps.php', '/modules/shippi...')
#4 /nimda123/modules.php(169): Zencart\LanguageLoader\LanguageLoader->loadExtraLanguageFiles('/home/pcs/publi...', 'english', 'usps.php', '/modules/shippi...')
#5 /nimda123/index.php(16): require('/home/pcs/publi...')
#6 {main}
thrown in /includes/classes/ResourceLoaders/ArraysLanguageLoader.php on line 122.
[25-Aug-2024 14:01:21 America/Chicago] Request URI: /nimda123/index.php?cmd=modules&set=shipping&module=flat, IP address: 2601:300:4b01:2ce0:e001:a885:e1ef:8ed
--> PHP Fatal error: Uncaught TypeError: array_merge(): Argument #2 must be of type array, int given in /includes/classes/ResourceLoaders/ArraysLanguageLoader.php:122
Stack trace:
#0 /includes/classes/ResourceLoaders/ArraysLanguageLoader.php(122): array_merge(Array, 1)
#1 /includes/classes/ResourceLoaders/ArraysLanguageLoader.php(86): Zencart\LanguageLoader\ArraysLanguageLoader->loadDefinesWithFallback('/home/pcs/publi...', '/home/pcs/publi...')
#2 /includes/classes/ResourceLoaders/ArraysLanguageLoader.php(74): Zencart\LanguageLoader\ArraysLanguageLoader->loadDefinesFromArrayFile('/home/pcs/publi...', 'english', 'usps.php', '/modules/shippi...')
#3 /includes/classes/ResourceLoaders/LanguageLoader.php(84): Zencart\LanguageLoader\ArraysLanguageLoader->loadExtraLanguageFiles('/home/pcs/publi...', 'english', 'usps.php', '/modules/shippi...')
#4 /nimda123/modules.php(169): Zencart\LanguageLoader\LanguageLoader->loadExtraLanguageFiles('/home/pcs/publi...', 'english', 'usps.php', '/modules/shippi...')
#5 /nimda123/index.php(16): require('/home/pcs/publi...')
#6 {main}
thrown in /includes/classes/ResourceLoaders/ArraysLanguageLoader.php on line 122.
zen 2.0.1
php 8.3.10
USPS K11K -> K11L
-
Re: USPS Shipping Module [Support Thread]
Nope, it was me doing something dumb (like thinking a simple change didn't need testing).
I've re-published the K11l release, including the previously missing return $define; statement in the lang.usps.php file.
-
Re: USPS Shipping Module [Support Thread]
:) it happens. Thanks lat9!
-
Re: USPS Shipping Module [Support Thread]
Reinstalled this module and upon testing I received the following failure:
RAW XML FROM USPS:
SimpleXMLElement Object
(
[Number] => 80040B23
[Description] => API Authorization failure. User 96POPSS432O33 is not authorized to use API RateV4.
[Source] => USPSCOM::DoAuth
)
Now I'm really confused.
Help
-
Re: USPS Shipping Module [Support Thread]
Quote:
Originally Posted by
popsshopga
Reinstalled this module and upon testing I received the following failure:
RAW XML FROM USPS:
SimpleXMLElement Object
(
[Number] => 80040B23
[Description] => API Authorization failure. User 96POPSS432O33 is not authorized to use API RateV4.
[Source] => USPSCOM::DoAuth
)
Now I'm really confused.
Help
This likely means the username has been deauthorized from USPS. Contact the USPS Web Tools team to have your username re-authorized by sending an email to [email protected]
-
Re: USPS Shipping Module [Support Thread]
zen 2.1.0
php 8.1.00
USPS K11L
My Webhost updated to PHP 8.1, making previous cart out of order. So I install Zen 2.1.0, and the newest USPS module. But I have three problems. The shipping estimator will only show "Store Pickup". Then during checkout Step 1 which should show option for Store Pickup, and shipping cost to the Zipcode. It does show the shipping cost, but there is no checkbox on the Store pickup line, it is blank. And there is no Continue button on the page to continue to Step 2 of the checkout. I'm not seeing any helpful error for either issues on webhost or the shopcart log folder. But when I "view source" on the page, there is java errors listed. I reloaded all the zava related files up to the website. But I still have the same problems.
-
Re: USPS Shipping Module [Support Thread]
Would you happen to have a screenshot?
-
Re: USPS Shipping Module [Support Thread]
Quote:
Originally Posted by
NDboots
zen 2.1.0
php 8.1.00
USPS K11L
My Webhost updated to PHP 8.1, making previous cart out of order. So I install Zen 2.1.0, and the newest USPS module. But I have three problems. The shipping estimator will only show "Store Pickup". Then during checkout Step 1 which should show option for Store Pickup, and shipping cost to the Zipcode. It does show the shipping cost, but there is no checkbox on the Store pickup line, it is blank. And there is no Continue button on the page to continue to Step 2 of the checkout. I'm not seeing any helpful error for either issues on webhost or the shopcart log folder. But when I "view source" on the page, there is java errors listed. I reloaded all the zava related files up to the website. But I still have the same problems.
This almost sounds like a PHP error is generated. HAve you also checked the ZenCart logs folder?
-
1 Attachment(s)
Re: USPS Shipping Module [Support Thread]
Quote:
Originally Posted by
retched
This almost sounds like a PHP error is generated. HAve you also checked the ZenCart logs folder?
Yes, a error code said that Opera browser is not supported, which I usually use and it worked with old versions of ZenCart. The BAD thing is, this shopping cart does not tell the user that Opera is not supported either! But my problem is it has the same problems in MS Edge and Chrome too. I have been using Zen Cart since 2004 and this 2.1.0 version is one of the most confusing versions I have used. In the past admin area, I loved the one page listing for simple listing single items and now that seems split up to several sections now instead, making it more difficult to use. But currently this cart is USELESS when one simply cannot checkout! I am no PHP expert either. I'm using the Responsive Theme. I have reloaded all the files, hoping that would fix the problem...It didn't.
On checkout I'm stuck at "Step 1 of 3 - Delivery Information". It shows the shipping cost. The radio choice option for "Store Pickup" does not show up, but it is turned on in Admin area, so it should show up, the space for it does, but it is blank! There is no button to continue to Step 2 of checkout either.
It seems to use this file: /public_html/MYStore/includes/templates/template_default/templates/tpl_checkout_shipping_default.php One of the things I noticed on this page was this near the bottom: </form> When I searched the whole page for the lead <form> command nothing was there??? Is that suppose to be like that, with just the ending </form> and no beginning <form> on the page, or does that come from a file elsewhere? But this is what the page looks like...
Attachment 20889
-
Re: USPS Shipping Module [Support Thread]
Quote:
Originally Posted by
NDboots
Yes, a error code said that Opera browser is not supported, which I usually use and it worked with old versions of ZenCart. The BAD thing is, this shopping cart does not tell the user that Opera is not supported either! But my problem is it has the same problems in MS Edge and Chrome too. I have been using Zen Cart since 2004 and this 2.1.0 version is one of the most confusing versions I have used. In the past admin area, I loved the one page listing for simple listing single items and now that seems split up to several sections now instead, making it more difficult to use. But currently this cart is USELESS when one simply cannot checkout! I am no PHP expert either. I'm using the Responsive Theme. I have reloaded all the files, hoping that would fix the problem...It didn't.
On checkout I'm stuck at "Step 1 of 3 - Delivery Information". It shows the shipping cost. The radio choice option for "Store Pickup" does not show up, but it is turned on in Admin area, so it should show up, the space for it does, but it is blank! There is no button to continue to Step 2 of checkout either.
It seems to use this file: /public_html/MYStore/includes/templates/template_default/templates/tpl_checkout_shipping_default.php One of the things I noticed on this page was this near the bottom: </form> When I searched the whole page for the lead <form> command nothing was there??? Is that suppose to be like that, with just the ending </form> and no beginning <form> on the page, or does that come from a file elsewhere? But this is what the page looks like...
Attachment 20889
modern shopping carts (even zen cart!) are quite complex. the idea that you are no php expert and that you are frustrated is not surprising.
zen-cart does NOT make use of java. it does make use of javascript. they are very different.
some javascript library saying Opera or MS Edge or any other browser is not supported, is again not surprising. i can guarantee that ZC will work with those browsers.
without looking at your specific installation, it is hard to say exactly what is wrong. you think the log files are not helpful, but did you not say you are not a php expert? log files are one of the crucial items that are helpful to a seasoned php developer.
finally, do you honestly think that the default template for checkout shipping is wrong? forgetting that you are a self proclaimed no php expert, zc 2.1.0 was released over 2 months ago, and from a logic POV, do you think you would be the first person to find a rudimentory error of this sort?
if one were to look at this single line of code, that php function will draw the opening form tag for said page.
my advice is to hire a seasoned developer or start posting log files of errors that are getting created or screenshots of errors in the developer tools console. perhaps then someone could help with your problems, and in the process you might learn a bit more about php and how ZC really works.
best.
-
Re: USPS Shipping Module [Support Thread]
Based on the screenshot, my guess is this was an upgrade from an older version and storepickup options haven't been updated. Try removing storepickup module in the admin (not disable, but completely remove) and see if the error persists. Then simply install it again and configure as you need it and try again - hopefully the error will be gone.
And, what @carlwhat just said above: +1
-
Re: USPS Shipping Module [Support Thread]
Quote:
Originally Posted by
NDboots
Yes, a error code said that Opera browser is not supported, which I usually use and it worked with old versions of ZenCart. The BAD thing is, this shopping cart does not tell the user that Opera is not supported either! But my problem is it has the same problems in MS Edge and Chrome too. I have been using Zen Cart since 2004 and this 2.1.0 version is one of the most confusing versions I have used. In the past admin area, I loved the one page listing for simple listing single items and now that seems split up to several sections now instead, making it more difficult to use. But currently this cart is USELESS when one simply cannot checkout! I am no PHP expert either. I'm using the Responsive Theme. I have reloaded all the files, hoping that would fix the problem...It didn't.
On checkout I'm stuck at "Step 1 of 3 - Delivery Information". It shows the shipping cost. The radio choice option for "Store Pickup" does not show up, but it is turned on in Admin area, so it should show up, the space for it does, but it is blank! There is no button to continue to Step 2 of checkout either.
It seems to use this file: /public_html/MYStore/includes/templates/template_default/templates/tpl_checkout_shipping_default.php One of the things I noticed on this page was this near the bottom: </form> When I searched the whole page for the lead <form> command nothing was there??? Is that suppose to be like that, with just the ending </form> and no beginning <form> on the page, or does that come from a file elsewhere? But this is what the page looks like...
Attachment 20889
Dissecting ... all of this:
This still sounds like a PHP error. Only a PHP error would crack a page like that to where the page stops interpreting itself like this mid load. This is independent of the browser. I've ran a 2.1.0 default with little to no mods in each Chrome, Firefox, Opera, and even DuckDuckGo. I cannot reproduce this. (I have both USPS modules installed and can see nothing like this.)
Additionally, are you seeing that source code in your browser's source code or Inspect/Developer Tools tab.
Please check to see if there is indeed a zcDebug Log generated and include the text of that here. If you're not getting one, which isn't uncommon, there is a way to get PHP Errors to appear in your browser (I do not recommend having this on a live shop): https://docs.zen-cart.com/user/troub...ng/blank_page/
As for your other complaints about the navigatibility of the admin area. I'll admit it's a bit daunting, AT FIRST, but most of the older admin area code was a bit dated. There are ways to get that old functionality back but at this point you would have to customize them. But to say that "this cart is USELESS" is a bit too harsh even if hyperbolic.
I'll offer myself to help in DMs but to throw your arms up and give up is not fair to everyone here who can assist.
-
Re: USPS Shipping Module [Support Thread]
Quote:
Originally Posted by
carlwhat
modern shopping carts (even zen cart!) are quite complex. the idea that you are no php expert and that you are frustrated is not surprising.
zen-cart does NOT make use of java. it does make use of javascript. they are very different.
some javascript library saying Opera or MS Edge or any other browser is not supported, is again not surprising. i can guarantee that ZC will work with those browsers.
without looking at your specific installation, it is hard to say exactly what is wrong. you think the log files are not helpful, but did you not say you are not a php expert? log files are one of the crucial items that are helpful to a seasoned php developer.
finally, do you honestly think that the default template for checkout shipping is wrong? forgetting that you are a self proclaimed no php expert, zc 2.1.0 was released over 2 months ago, and from a logic POV, do you think you would be the first person to find a rudimentory error of this sort?
if one were to look at
this single line of code, that php function will draw the opening form tag for said page.
my advice is to hire a seasoned developer or start posting log files of errors that are getting created or screenshots of errors in the developer tools console. perhaps then someone could help with your problems, and in the process you might learn a bit more about php and how ZC really works.
best.
Thanks for reply Carlwhat. There are two things that repeat in the log currently.
2025-02-02 09:52:57: USPS build: 2024-08-25 K11l
Server: production
Quote Request Rate Type: Online
Quote from main_page: checkout_shipping
USPS Options (weight, time): --none--
USPS Domestic Transit Time Calculation Mode: NEW
Cart Weight: 1
Total Quote Weight: 1 Pounds: 1 Ounces: 0
Maximum: 50 Tare Rates: Small/Medium: 0:0 Large: 0:0
Handling method: Order Handling fee Domestic: $2.35 Handling fee International: $2.75
Decimals: 2
Services Included: 0, 70, 0.00, 0, 70, 0.00, Priority MailRM, 0, 70, 0.00, 0, 70, 0.00, 0, 70, 0.00, 0, 70, 0.00, 0, 70, 0.00, 0, 70, 0.00, 0, 70, 0.00, 0, 70, 0.00, 0, 70, 0.00, 0, 70, 0.00, 0, .21875, 0.00, 0, 4, 0.00, 0, 4, 0.00, Priority Mail InternationalRM, 0, 66, 0.00, 0, 4, 0.00, 0, 4, 0.00, 0, 20, 0.00, 0, 20, 0.00, 0, 66, 0.00, 0, 4, 0.00, 0, 70, 0.00, 0, 70, 0.00
Domestic Length: 8.625 Width: 5.375 Height: 1.625
International Length: 8.625 Width: 5.375 Height: 1.625
All Packages are Machinable: False
Sorts the returned quotes: Price-LowToHigh
ZipOrigination: 58467
ZipDestination: Postcode: 58467 Country: United States City: Medina State: North Dakota
Order SubTotal: $62.59
Order Total: $65.72
Uninsurable Portion: $0.00
Insurable Value: $65.72
2025-02-02 09:52:57: Sending request to USPS
2025-02-02 09:52:57: ==================================
SENT TO USPS:
<RateV4Request USERID="695SAVEM5201" PASSWORD="NS505862PH5535H"><Revision>2</Revision>
<Package ID="0"><Service>PRIORITY COMMERCIAL</Service><ZipOrigination>58467</ZipOrigination><ZipDestination>58467</ZipDestination><Pounds>1</Pounds><Ounces>0</Ounces><Container>VARIABLE</Container><Size>REGULAR</Size><Value>65.72</Value><SpecialServices> <SpecialService>106</SpecialService>
<SpecialService>100</SpecialService>
<SpecialService>125</SpecialService>
</SpecialServices><Machinable>FALSE</Machinable></Package>
</RateV4Request>
RESPONSE FROM USPS:
==================================
CommErr (should be 0): 0 -
==================================
USPS Country - $order->delivery[country][iso_code_2]: United States $this->usps_countries: US
Domestic Services Selected:
USPS TrackingTM
Insurance
Priority Mail Insurance
2025-02-02 09:52:57: RESPONSE FROM USPS:
==================================
============
RAW XML FROM USPS:
SimpleXMLElement Object
(
[Package] => SimpleXMLElement Object
(
[@attributes] => Array
(
[ID] => 0
)
[ZipOrigination] => 58467
[ZipDestination] => 58467
[Pounds] => 1
[Ounces] => 0
[Container] => VARIABLE
[Zone] => 1
[Postage] => SimpleXMLElement Object
(
[@attributes] => Array
(
[CLASSID] => 1
)
[MailService] => Priority Mail<sup>®</sup>
[Rate] => 9.35
[CommercialRate] => 7.99
[CommitmentDate] => 2025-02-05
[CommitmentName] => 2-Day
[SpecialServices] => SimpleXMLElement Object
(
[SpecialService] => Array
(
[0] => SimpleXMLElement Object
(
[ServiceID] => 125
[ServiceName] => Insurance
[Available] => true
[AvailableOnline] => true
[Price] => 0.00
[PriceOnline] => 0.00
[DeclaredValueRequired] => true
[DueSenderRequired] => false
)
[1] => SimpleXMLElement Object
(
[ServiceID] => 181
[ServiceName] => Scan Retention
[Available] => true
[AvailableOnline] => true
[Price] => 2.50
[PriceOnline] => 2.50
)
[2] => SimpleXMLElement Object
(
[ServiceID] => 183
[ServiceName] => USPS Label Delivery Service
[Available] => true
[AvailableOnline] => true
[Price] => 1.55
[PriceOnline] => 1.55
)
[3] => SimpleXMLElement Object
(
[ServiceID] => 106
[ServiceName] => USPS Tracking<sup>®</sup>
[Available] => true
[AvailableOnline] => true
[Price] => 0.00
[PriceOnline] => 0.00
)
[4] => SimpleXMLElement Object
(
[ServiceID] => 155
[ServiceName] => USPS Tracking<sup>®</sup> Electronic
[Available] => true
[AvailableOnline] => true
[Price] => 0.00
[PriceOnline] => 0.00
)
)
)
)
)
)
2025-02-02 09:52:57: ==================================
Rate Quotes:
Priority MailRM
Original cost: 7.99 Total Cost: 10.34 - $usps_insurance_charge: 0.00
SpecialServices: Priority Mail Insurance [125] Amount: 0.00
-
Re: USPS Shipping Module [Support Thread]
Quote:
Originally Posted by
retched
Dissecting ... all of this:
This still sounds like a PHP error. Only a PHP error would crack a page like that to where the page stops interpreting itself like this mid load. This is independent of the browser. I've ran a 2.1.0 default with little to no mods in each Chrome, Firefox, Opera, and even DuckDuckGo. I cannot reproduce this. (I have both USPS modules installed and can see nothing like this.)
Additionally, are you seeing that source code in your browser's source code or Inspect/Developer Tools tab.
Please check to see if there is indeed a zcDebug Log generated and include the text of that here. If you're not getting one, which isn't uncommon, there is a way to get PHP Errors to appear in your browser (I do not recommend having this on a live shop):
https://docs.zen-cart.com/user/troub...ng/blank_page/
As for your other complaints about the navigatibility of the admin area. I'll admit it's a bit daunting, AT FIRST, but most of the older admin area code was a bit dated. There are ways to get that old functionality back but at this point you would have to customize them. But to say that "this cart is USELESS" is a bit too harsh even if hyperbolic.
I'll offer myself to help in DMs but to throw your arms up and give up is not fair to everyone here who can assist.
I'm just frustrated, never had so much trouble installing ZenCart, and most webhosts changes PHP.ini very often now days too! Which means my previous shopping cart stopped working for webhost update, and the current new one is not working either. Main product is a seasonal winter item for cattlemen, and "Down for Maintenance" just chases the customers away. This is the Debug one, which does not show up when same happens in MS EDGE or Chrome...But non the less, both stop with same issue on the "Step 1 of 3 - Delivery Information" page, but for whatever reason, nothing goes into the ZenCart log when it happens on these other two browsers.
[02-Feb-2025 09:52:58 America/New_York] PHP Fatal error: Uncaught TypeError: Unsupported operand types: string * string in /home/MyServer/public_html/MyStore/includes/classes/currencies.php:101
Stack trace:
#0 /home/MyServer/public_html/MyStore/includes/classes/currencies.php(68): currencies->rateAdjusted(' ND Ph 701-486-...', true, '', '')
#1 /home/MyServer/public_html/MyStore/includes/templates/template_default/templates/tpl_checkout_shipping_default.php(93): currencies->format(' ND Ph 701-486-...')
#2 /home/MyServer/public_html/MyStore/includes/templates/responsive_classic/common/tpl_main_page.php(181): require('/home/MyServer/p...')
#3 /home/MyServer/public_html/MyStore/index.php(94): require('/home/MyServer/p...')
#4 {main}
thrown in /home/MyServer/public_html/MyStore/includes/classes/currencies.php on line 101
[02-Feb-2025 09:52:58 America/New_York] Request URI: /MyStore/index.php?main_page=checkout_shipping, IP address: 66.163.146.154
--> PHP Fatal error: Uncaught TypeError: Unsupported operand types: string * string in /home/MyServer/public_html/MyStore/includes/classes/currencies.php:101
Stack trace:
#0 /home/MyServer/public_html/MyStore/includes/classes/currencies.php(68): currencies->rateAdjusted(' ND Ph 701-486-...', true, '', '')
#1 /home/MyServer/public_html/MyStore/includes/templates/template_default/templates/tpl_checkout_shipping_default.php(93): currencies->format(' ND Ph 701-486-...')
#2 /home/MyServer/public_html/MyStore/includes/templates/responsive_classic/common/tpl_main_page.php(181): require('/home/MyServer/p...')
#3 /home/MyServer/public_html/MyStore/index.php(94): require('/home/MyServer/p...')
#4 {main}
thrown in /home/MyServer/public_html/MyStore/includes/classes/currencies.php on line 101.
[02-Feb-2025 09:52:58 America/New_York] Request URI: /MyStore/index.php?main_page=checkout_shipping, IP address: 66.163.146.154
--> PHP Fatal error: Uncaught TypeError: Unsupported operand types: string * string in /home/MyServer/public_html/MyStore/includes/classes/currencies.php:101
Stack trace:
#0 /home/MyServer/public_html/MyStore/includes/classes/currencies.php(68): currencies->rateAdjusted(' ND Ph 701-486-...', true, '', '')
#1 /home/MyServer/public_html/MyStore/includes/templates/template_default/templates/tpl_checkout_shipping_default.php(93): currencies->format(' ND Ph 701-486-...')
#2 /home/MyServer/public_html/MyStore/includes/templates/responsive_classic/common/tpl_main_page.php(181): require('/home/MyServer/p...')
#3 /home/MyServer/public_html/MyStore/index.php(94): require('/home/MyServer/p...')
#4 {main}
thrown in /home/MyServer/public_html/MyStore/includes/classes/currencies.php on line 101.
-
Re: USPS Shipping Module [Support Thread]
very quickly, i am not sure where you have gone; but gone wrong you have indeed.
lets look at the log, but understand this log will happen no matter the browser. period.
Code:
[02-Feb-2025 09:52:58 America/New_York] Request URI: /MyStore/index.php?main_page=checkout_shipping, IP address: 66.163.146.154
--> PHP Fatal error: Uncaught TypeError: Unsupported operand types: string * string in /home/MyServer/public_html/MyStore/includes/classes/currencies.php:101
Stack trace:
#0 /home/MyServer/public_html/MyStore/includes/classes/currencies.php(68): currencies->rateAdjusted(' ND Ph 701-486-...', true, '', '')
#1 /home/MyServer/public_html/MyStore/includes/templates/template_default/templates/tpl_checkout_shipping_default.php(93): currencies->format(' ND Ph 701-486-...')
#2 /home/MyServer/public_html/MyStore/includes/templates/responsive_classic/common/tpl_main_page.php(181): require('/home/MyServer/p...')
#3 /home/MyServer/public_html/MyStore/index.php(94): require('/home/MyServer/p...')
#4 {main}
thrown in /home/MyServer/public_html/MyStore/includes/classes/currencies.php on line 101.
lets start with your template file. it says there is a problem starting on line 93. line 93 in v2.1.0 has no such thing:
https://github.com/zencart/zencart/b...efault.php#L93
line line 92 (right above that), does call $currencies->format, so already we are looking at some file that is not the same as the base.
now, in looking at the number it is formatting (at least at line 92), it is something like this:
PHP Code:
zen_add_tax($quotes[$i]['methods'][$j]['cost'], (isset($quotes[$i]['tax']) ? $quotes[$i]['tax'] : 0))
but yet in your log, it looks to be formatting a phone number, ie: `ND Ph 701-486-...'
so what do you actually have on line 93?
i find it hard to imagine that the quote method cost coming back USPS is a phone number.
and again, this problem would not be browser dependent.
but please stop complaining about hosting, php.ini, etc. it does no one any good when trying to troubleshoot an issue.
best.
-
Re: USPS Shipping Module [Support Thread]
Quote:
Originally Posted by
carlwhat
very quickly, i am not sure where you have gone; but gone wrong you have indeed.
lets look at the log, but understand this log will happen no matter the browser. period.
Code:
[02-Feb-2025 09:52:58 America/New_York] Request URI: /MyStore/index.php?main_page=checkout_shipping, IP address: 66.163.146.154
--> PHP Fatal error: Uncaught TypeError: Unsupported operand types: string * string in /home/MyServer/public_html/MyStore/includes/classes/currencies.php:101
Stack trace:
#0 /home/MyServer/public_html/MyStore/includes/classes/currencies.php(68): currencies->rateAdjusted(' ND Ph 701-486-...', true, '', '')
#1 /home/MyServer/public_html/MyStore/includes/templates/template_default/templates/tpl_checkout_shipping_default.php(93): currencies->format(' ND Ph 701-486-...')
#2 /home/MyServer/public_html/MyStore/includes/templates/responsive_classic/common/tpl_main_page.php(181): require('/home/MyServer/p...')
#3 /home/MyServer/public_html/MyStore/index.php(94): require('/home/MyServer/p...')
#4 {main}
thrown in /home/MyServer/public_html/MyStore/includes/classes/currencies.php on line 101.
lets start with your template file. it says there is a problem starting on line 93. line 93 in v2.1.0 has no such thing:
https://github.com/zencart/zencart/b...efault.php#L93
line line 92 (right above that), does call $currencies->format, so already we are looking at some file that is not the same as the base.
now, in looking at the number it is formatting (at least at line 92), it is something like this:
PHP Code:
zen_add_tax($quotes[$i]['methods'][$j]['cost'], (isset($quotes[$i]['tax']) ? $quotes[$i]['tax'] : 0))
but yet in your log, it looks to be formatting a phone number, ie: `ND Ph 701-486-...'
so what do you actually have on line 93?
i find it hard to imagine that the quote method cost coming back USPS is a phone number.
and again, this problem would not be browser dependent.
but please stop complaining about hosting, php.ini, etc. it does no one any good when trying to troubleshoot an issue.
best.
Thanks for reply Carlwhat. That seems odd. I download 2.1.0 from the ZenCart website home page, now you make me wonder if that is the problem. I also downloaded the USPS files from the same website.
The file you seem to be of reference is: MyStore/includes/templates/template_default/templates/tpl_checkout_shipping_default.php Right?
-
1 Attachment(s)
Re: USPS Shipping Module [Support Thread]
This is a screen shot of that section of file from my ZenCart 2.1.0 download folder, it is the same as on my website too. The phone number was part of the test login used to try to make the purchase. The other thing I'm not sure is right in the shopping cart, is I had both side columns in the shopping cart. But once in Step 1 of checkout the right hand column does not show. I do not remember if that was normal or not for during checkout.
Attachment 20892
-
Re: USPS Shipping Module [Support Thread]
Wait... is this an actual address or a sample address?
-
Re: USPS Shipping Module [Support Thread]
Quote:
Originally Posted by
retched
Wait... is this an actual address or a sample address?
This is address from the install folder I downloaded and have loaded on my website in same location, for the 2.1.0 ZenCart, that will not go more then Step 1 in checkout with PHP 8.1 installed. When I checked my webhost was not posting PHP errors either. Just the ZenCart logs show things. /includes/templates/template_default/templates/tpl_checkout_shipping_default.php Carlwhat said in his copy, that works, from in the line 92 area, if I understood him right, does not read the same. So I posted what my file says.
What happens, is the Step 1 does not show the radio button for store pickup, which is turned on, and the field area for it shows though. And the page does not show a continue button to go to Step 2. Also, the shipping estimator will only show Store pick-up, but will not give item shipping cost to state and zip code. Unless you are login, then the estimator works but not the rest of the checkout options.
-
Re: USPS Shipping Module [Support Thread]
Quote:
Originally Posted by
NDboots
This is address from the install folder I downloaded and have loaded on my website in same location, for the 2.1.0 ZenCart, that will not go more then Step 1 in checkout with PHP 8.1 installed. When I checked my webhost was not posting PHP errors either. Just the ZenCart logs show things. /includes/templates/template_default/templates/tpl_checkout_shipping_default.php Carlwhat said in his copy, that works, from in the line 92 area, if I understood him right, does not read the same. So I posted what my file says.
What happens, is the Step 1 does not show the radio button for store pickup, which is turned on, and the field area for it shows though. And the page does not show a continue button to go to Step 2. Also, the shipping estimator will only show Store pick-up, but will not give item shipping cost to state and zip code. Unless you are login, then the estimator works but not the rest of the checkout options.
I was asking about the address used as part of the quote.
The Shipping Estimator won't work off non-logged in accounts unless a zip code and destination country is presented as that is part of the quote. (How would you get a USPS Shipping quote if there is no Zip Code to check against? You have to provide that as part of the quote. So there are fields to enter.)
Some part of the address is broken because `ND Ph 701-486-` is not a state, and looks like part of a phone number.
What info is being presented?
-
Re: USPS Shipping Module [Support Thread]
Quote:
Originally Posted by
retched
I was asking about the address used as part of the quote.
The Shipping Estimator won't work off non-logged in accounts unless a zip code and destination country is presented as that is part of the quote. (How would you get a USPS Shipping quote if there is no Zip Code to check against? You have to provide that as part of the quote. So there are fields to enter.)
Some part of the address is broken because `ND Ph 701-486-` is not a state, and looks like part of a phone number.
What info is being presented?
Thanks for reply Retched. It sounds like you think that the "/includes/templates/template_default/templates/tpl_checkout_shipping_default.php" file was for the shipping estimator then, instead for for Logined in Step 1 Checkout then. The name of the file of "tpl_checkout_shipping_default.php" would to be seem like it was for check out. No, I used the full state name and zipcode, prior to login, when the shipping estimator only gave me option to "pickup at store".
My previous Zen Cart would give estimated shipping cost to state and zip code, up until my webhost updated to PHP 8.1, then that shopping cart would no longer function right. Which is why I installed ZenCart 8.1.0 which also does not function right. The "main disfunction" is, can not got beyond checkout Step 1 for no continue button. But there are two other issues, which is shipping estimator does not calculate shipping cost when state name and zip is added prior to login. The other issue is, after login, "store pickup" radio icon does not show the radio button and text, during Step 1 of checkout, but the field area is there for it. And the biggest issue is there is NO CONITUE BUTTON to go to Step 2 of checkout.
-
Re: USPS Shipping Module [Support Thread]
Quote:
Originally Posted by
balihr
Based on the screenshot, my guess is this was an upgrade from an older version and storepickup options haven't been updated. Try removing storepickup module in the admin (not disable, but completely remove) and see if the error persists. Then simply install it again and configure as you need it and try again - hopefully the error will be gone.
Can you PLEASE try what I had suggested here?
The checkout_shipping page does load your USPS rates and moves on to the next available shipping option which is in your case store pickup (which is clear from the screenshot). It loads the title of that module and then tries to process the module itself and THEN breaks - this is why you don't see the radio button for store pickup. So, please try the suggestion above because I have a feeling you're wasting your time on USPS which seems to work fine.
The fatal error that you're getting is probably your storepickup module failing to format the cost of storepickup module or its location surcharges.
-
Re: USPS Shipping Module [Support Thread] Solved on 2.1.0 upgrade install
Quote:
Originally Posted by
balihr
Can you PLEASE try what I had suggested here?
The checkout_shipping page does load your USPS rates and moves on to the next available shipping option which is in your case store pickup (which is clear from the screenshot). It loads the title of that module and then tries to process the module itself and THEN breaks - this is why you don't see the radio button for store pickup. So, please try the suggestion above because I have a feeling you're wasting your time on USPS which seems to work fine.
The fatal error that you're getting is probably your storepickup module failing to format the cost of storepickup module or its location surcharges.
Thank you so much balihr, for this tip, it was an answer to prayer! May God Bless you! I just installed ZenCart 2.1.0, and copied the MySql database to a new database, I did not copy over my old site images until the update finished. I was using the Responsive Classic theme, so only needed to change some wording here and there. I had turned on and off the store pickup a couple times, but never removed it. It's hard to believe that was what was causing the problem though. Anyway, it WORKED! The shopping cart goes through the make payment steps now, and I was able to make a test charge successfully! Thank you so much for that little tip!
-
Re: USPS Shipping Module [Support Thread] Solved on 2.1.0 upgrade install
Quote:
Originally Posted by
NDboots
Thank you so much for that little tip!
Glad to hear this was the problem. And this is pretty much the definition of "can't see the forest for the trees" :wink:
Don't forget to turn off USPS logging, no need to save these logs every time the module is triggered.
-
Re: USPS Shipping Module [Support Thread] Solved on 2.1.0 upgrade install
Quote:
Originally Posted by
balihr
Glad to hear this was the problem. And this is pretty much the definition of "can't see the forest for the trees" :wink:
Don't forget to turn off USPS logging, no need to save these logs every time the module is triggered.
Thanks again for the extra advice balihr. I did shut off the USPS logging for now. But, I have installed ZenCart since 2004, I'm just no PHP programmer. But, besides for my own seasonal business, also for a couple non-profits I like to help, who did not have funds to hire anyone. I found when FTP is used to delete lots of files in a log, it does it one at a time, and that takes a long time. But, instead, go into the webhost file manager, one can delete the whole log folder in just a few seconds. Then I just copy back in the log folder from the original install files, so have that cleaned out in 3 to 4 minutes.
-
Re: USPS Shipping Module [Support Thread] Solved on 2.1.0 upgrade install
I just received an email from usps:
"As published in the February 6, 2025 Industry Alert, the Web Tools API platform will be retired on January 25, 2026. To avoid any service disruptions, we encourage you to migrate to the new USPS APIs as soon as possible.
The functional equivalents of the Web Tools API are available in the USPS API Catalogue: USPS APIs Developer Portal.
Additionally, please be aware that the Web Tools Label API retired on July 14, 2024. For Label API migration resources, visit the Announcements section at Web Tools APIs | USPS.
We value your input and would appreciate your feedback. Please take a moment to complete our brief Feedback Form. Your responses help us improve our services and ensure we meet your needs effectively.
This email comes from an unmonitored mailbox. For questions or support, please contact API Support. Thank you for your continued partnership."
Is any action required on my end for this USPS plug-in?
-
Re: USPS Shipping Module [Support Thread] Solved on 2.1.0 upgrade install
I received that notification from USPS also.
-
Re: USPS Shipping Module [Support Thread] Solved on 2.1.0 upgrade install
Here's a copy of that email (with the links included):
Quote:
As published in the February 6, 2025 Industry Alert (
https://postalpro.usps.com/node/13834), the Web Tools API platform will be retired on January 25, 2026. To avoid any service disruptions, we encourage you to migrate to the new USPS APIs as soon as possible.
The functional equivalents of the Web Tools API are available in the USPS API Catalogue: USPS APIs Developer Portal (
https://developers.usps.com/apis).
Additionally, please be aware that the Web Tools Label API retired on July 14, 2024. For Label API migration resources, visit the Announcements section at Web Tools APIs | USPS (
https://www.usps.com/business/web-to...is/welcome.htm).
We value your input and would appreciate your feedback. Please take a moment to complete our brief Feedback Form. Your responses help us improve our services and ensure we meet your needs effectively.
This email comes from an unmonitored mailbox. For questions or support, please contact API Support. Thank you for your continued partnership.
Thank You,
USPS API Functional Team
Visit us at: usps.com/webtools, developers.usps.com
@retched has graciously updated the USPS Shipping module to make use of those updated APIs, available via download from the Zen Cart plugins: https://www.zen-cart.com/downloads.php?do=file&id=2395
-
Re: USPS Shipping Module [Support Thread] Solved on 2.1.0 upgrade install
Has anyone confirmed that the updated module by RESTful will work with 1.5.7c?
-
Re: USPS Shipping Module [Support Thread] Solved on 2.1.0 upgrade install
Quote:
Originally Posted by
lat9
That link shows that it is declared usable with 1.5.7 and later.
-
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.