I turned debug on in the module and did not get any new logs generated in my /logs in my store
I turned debug on in the module and did not get any new logs generated in my /logs in my store
Here were some logs around the time of the issues earlier though - not sure why UPS is showing up when I'm not using that module
[13-Feb-2023 22:49:47 UTC] PHP Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; usps has a deprecated constructor in /home3/tlal/public_html/store/includes/modules/shipping/usps.php on line 16
[13-Feb-2023 22:49:54 UTC] Request URI: /store/index.php?main_page=checkout_shipping, IP address: ##.##.##.##
#1 each() called at [/home3/tlal/public_html/store/includes/modules/shipping/usps.php:391]
#2 usps->_getQuote() called at [/home3/tlal/public_html/store/includes/modules/shipping/usps.php:184]
#3 usps->quote() called at [/home3/tlal/public_html/store/includes/classes/shipping.php:174]
#4 shipping->quote() called at [/home3/tlal/public_html/store/includes/modules/pages/checkout_shipping/header_php.php:184]
#5 require(/home3/tlal/public_html/store/includes/modules/pages/checkout_shipping/header_php.php) called at [/home3/tlal/public_html/store/index.php:35]
--> PHP Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home3/tlal/public_html/store/includes/modules/shipping/usps.php on line 391.
[13-Feb-2023 22:39:34 UTC] Request URI: /store/zcadmin/index.php?cmd=modules&set=shipping&module=usps, IP address: ##.##.##.##
#1 ups->ups() called at [/home3/tlal/public_html/store/zcadmin/modules.php:204]
#2 require(/home3/tlal/public_html/store/zcadmin/modules.php) called at [/home3/tlal/public_html/store/zcadmin/index.php:11]
--> PHP Warning: Use of undefined constant MODULE_SHIPPING_UPS_SORT_ORDER - assumed 'MODULE_SHIPPING_UPS_SORT_ORDER' (this will throw an Error in a future version of PHP) in /home3/tlal/public_html/store/includes/modules/shipping/ups.php on line 61.
[13-Feb-2023 22:39:34 UTC] Request URI: /store/zcadmin/index.php?cmd=modules&set=shipping&module=usps, IP address: ##.##.##.##
#1 ups->ups() called at [/home3/tlal/public_html/store/zcadmin/modules.php:204]
#2 require(/home3/tlal/public_html/store/zcadmin/modules.php) called at [/home3/tlal/public_html/store/zcadmin/index.php:11]
--> PHP Warning: Use of undefined constant MODULE_SHIPPING_UPS_TAX_CLASS - assumed 'MODULE_SHIPPING_UPS_TAX_CLASS' (this will throw an Error in a future version of PHP) in /home3/tlal/public_html/store/includes/modules/shipping/ups.php on line 63.
[13-Feb-2023 22:39:34 UTC] Request URI: /store/zcadmin/index.php?cmd=modules&set=shipping&module=usps, IP address: ##.##.##.##
#1 ups->ups() called at [/home3/tlal/public_html/store/zcadmin/modules.php:204]
#2 require(/home3/tlal/public_html/store/zcadmin/modules.php) called at [/home3/tlal/public_html/store/zcadmin/index.php:11]
--> PHP Warning: Use of undefined constant MODULE_SHIPPING_UPS_TAX_BASIS - assumed 'MODULE_SHIPPING_UPS_TAX_BASIS' (this will throw an Error in a future version of PHP) in /home3/tlal/public_html/store/includes/modules/shipping/ups.php on line 64.
[13-Feb-2023 22:39:34 UTC] Request URI: /store/zcadmin/index.php?cmd=modules&set=shipping&module=usps, IP address: ##.##.##.##
#1 ups->ups() called at [/home3/tlal/public_html/store/zcadmin/modules.php:204]
#2 require(/home3/tlal/public_html/store/zcadmin/modules.php) called at [/home3/tlal/public_html/store/zcadmin/index.php:11]
--> PHP Warning: Use of undefined constant MODULE_SHIPPING_UPS_STATUS - assumed 'MODULE_SHIPPING_UPS_STATUS' (this will throw an Error in a future version of PHP) in /home3/tlal/public_html/store/includes/modules/shipping/ups.php on line 68.
I removed the old UPS module I had in there since I don't ship that service.
2021-05-05 K11a sort of works. I used media mail as a test and it worked fine. Then I added priority mail and first class and the weight would make first class not show up but priority doesn't. Going to up-rev it until I get something working better I guess.
Sorry for so many posts. A, C and I'm staying on E works. F and G both give me the 500 error.
2023-02-14 K11h is now available for download: https://www.zen-cart.com/downloads.php?do=file&id=1292
I thought I'd released this a week ago, but the corrections here are most likely the source of the "Server 500" error posted by @wcbutler.
This version corrects the following GitHub issues:
#32: USPS 'cheapest' quotes aren't selected; quotes need to be public.
#31: K11g won't auto-update from K11f
K11h fixed the issue I was having (here: https://www.zen-cart.com/showthread....out-inoperable ), so thank you!
Is it safe to doctor the usps.php file to disable media mail for certain product categories? That was what started my issue last night. I have done this with prior versions of the file but don't want to mess with it if it will break, obviously.
Just FYI, I took a stab at this and it seems to be working, and didn't break my checkout process again. So we're back in business. The code that needs modifying has altered slightly in K11h but it seems you can change it TO the same thing as before. Sorry for vagueness--anyone who wants more explicit info, feel free to ask.
Bookmarks