1 Attachment(s)
Can't set shipping module
Hi, I am trying to get Shipping working on a v2.0.1 site.
I am getting the list of shipping modules but clicking on them does nothing. The "i" icon turns into an arrow but no I am not getting any error messages in Dev Tools either.
Attachment 20748
Even though "Flat Rate" is shown as set, I still get a message saying "No Online Shipping Methods For This Address And Your Cart"
What can I do?
Re: Can't set shipping module
If that's a full screenshot, it looks like one of the shipping modules has created a PHP error. Either install Modules :: Plugins :: DisplayLogs to view or check the site's /logs directory for a myDEBUG-adm-*.log file ... either of which will let you (and us) know the details of what's going on.
Re: Can't set shipping module
When you look at the right hand side of the image you posted, that's what a partial blank screen error looks like. As @lat9 said, this is caused by a PHP error. You can read more about this here:
https://docs.zen-cart.com/user/troub...ng/blank_page/
The debug log from the /logs folder will help you track this down - read more about it here:
https://docs.zen-cart.com/user/troub...ng/debug_logs/
Re: Can't set shipping module
Great! Yes, there are lots of logs. What do I do now? Do you want me to copy and paste today's logs?
Mostly it's
[11-Sep-2024 11:15:35 Pacific/Auckland] Request URI: /mgmt/index.php?cmd=modules&set=shipping, IP address: 121.98.106.13, Language id 1
#0 /home/somersets/public_html/mgmt/modules.php(230): zen_debug_error_handler()
#1 /home/somersets/public_html/mgmt/index.php(16): require('/home/somersets...')
--> PHP Warning: Undefined property: ups::$sort_order in /home/somersets/public_html/mgmt/modules.php on line 230.
[11-Sep-2024 11:15:35 Pacific/Auckland] PHP Fatal error: Uncaught Error: Undefined constant "MODULE_SHIPPING_USPS_USERID" in /home/somersets/public_html/includes/languages/english/modules/shipping/usps.php:11
Stack trace:
#0 /home/somersets/public_html/includes/classes/ResourceLoaders/FilesLanguageLoader.php(39): include_once()
#1 /home/somersets/public_html/includes/classes/ResourceLoaders/FilesLanguageLoader.php(22): Zencart\LanguageLoader\FilesLanguageLoader->loadFileDefineFile()
#2 /home/somersets/public_html/includes/classes/ResourceLoaders/LanguageLoader.php(85): Zencart\LanguageLoader\FilesLanguageLoader->loadExtraLanguageFiles()
#3 /home/somersets/public_html/mgmt/modules.php(169): Zencart\LanguageLoader\LanguageLoader->loadExtraLanguageFiles()
#4 /home/somersets/public_html/mgmt/index.php(16): require('/home/somersets...')
#5 {main}
thrown in /home/somersets/public_html/includes/languages/english/modules/shipping/usps.php on line 11
What's this about USPS btw? We're not in the US. How do I set that?
Re: Can't set shipping module
It "sounds like" you've upgraded from an older version, rather than installed, Zen Cart 2.0.1.
1. The ups.php shipping module no longer works and the files /includes/modules/shipping/ups.php and /includes/languages/english/modules/shipping/ups.php should be removed from the site.
2. In the upgrade, you've left an older version of the usps.php shipping module, which has been updated to no longer "look for" its configuration if it's not enabled. The files /includes/modules/shipping/usps.php and /includes/languages/english/modules/shipping/usps.php should be removed from the site. Note, also, that the shipping module no longer ships as part of the Zen Cart base file-set.
I'll note that this is likely "the tip of the iceberg", since you've likely uploaded the zc201 files over that pre-existing file-set. There are a ton of files from versions prior to zc201 whose function has been replaced and will wreck havoc with the zc201 site's operation.
Re: Can't set shipping module
Quote:
Originally Posted by
lat9
It "sounds like" you've upgraded from an older version, rather than installed, Zen Cart 2.0.1.
1. The ups.php shipping module no longer works and the files /includes/modules/shipping/ups.php and /includes/languages/english/modules/shipping/ups.php should be removed from the site.
Well, that certainly made a difference. Thanks! :)
Quote:
Originally Posted by
lat9
I'll note that this is likely "the tip of the iceberg", since you've likely uploaded the zc201 files over that pre-existing file-set. There are a ton of files from versions prior to zc201 whose function has been replaced and will wreck havoc with the zc201 site's operation.
Ouch. So... what's best? Delete the site (it's only a dev site anyway), and start again with a fresh copy of ZC?
Re: Can't set shipping module
You're looking to "rebuild" the site, starting with a fresh copy of only the zc201 files. See this Zen Cart documentation article for additional information: https://docs.zen-cart.com/user/upgra...led_upgrading/
Re: Can't set shipping module
And for each plugin you want to add, check the Plugin Library for a new version that works with updated versions of Zen Cart.