Forums / Built-in Shipping and Payment Modules / Can't set shipping module

Can't set shipping module

Views: 6,072

Results 1 to 11 of 11
10 Sep 2024, 11:28 PM
#1
vince_1 avatar

vince_1

New Zenner

Join Date:
Sep 2015
Location:
Upper Hutt
Posts:
13
Plugin Contributions:
0

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?

10 Sep 2024, 11:40 PM
#2
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,119
Plugin Contributions:
56

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.

11 Sep 2024, 5:08 AM
#3
swguy avatar

swguy

Administrator

Join Date:
Feb 2006
Location:
Tampa Bay, Florida
Posts:
10,729
Plugin Contributions:
56

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/troubleshooting/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/troubleshooting/debug_logs/

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.

11 Sep 2024, 5:25 AM
#4
vince_1 avatar

vince_1

New Zenner

Join Date:
Sep 2015
Location:
Upper Hutt
Posts:
13
Plugin Contributions:
0

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?

11 Sep 2024, 1:34 PM
#5
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,119
Plugin Contributions:
56

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.

11 Sep 2024, 7:41 PM
#6
vince_1 avatar

vince_1

New Zenner

Join Date:
Sep 2015
Location:
Upper Hutt
Posts:
13
Plugin Contributions:
0

Re: Can't set shipping module

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! :)

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?

11 Sep 2024, 9:03 PM
#7
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,119
Plugin Contributions:
56

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/upgrading/detailed_upgrading/

11 Sep 2024, 11:53 PM
#8
swguy avatar

swguy

Administrator

Join Date:
Feb 2006
Location:
Tampa Bay, Florida
Posts:
10,729
Plugin Contributions:
56

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.

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.

21 Feb 2026, 4:11 PM
#9
dan4store avatar

dan4store

New Zenner

Join Date:
Apr 2025
Location:
NC
Posts:
31
Plugin Contributions:
0

Re: Can't set shipping module

lat9:

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.

I have the same problem with the payments screen right after I updated the database and installed 2.1.0 The payment options on the right are not showing up.
I have re-loaded all the files I could think of and it has not helps

This is the log file
[21-Feb-2026 07:48:13 America/Boise] Request URI: /catalog/admin/index.php?cmd=modules&set=payment, IP address: 71.76.139.227
--> PHP Fatal error: Uncaught Error: Undefined constant "MODULE_PAYMENT_PAYPALDP_MERCHANT_COUNTRY" in /home3/ledfourv/public_html/catalog/includes/modules/payment/paypaldp.php:287
Stack trace:
#0 /home3/ledfourv/public_html/catalog/admin/modules.php(221): paypaldp->__construct()
#1 /home3/ledfourv/public_html/catalog/admin/index.php(16): require('/home3/ledfourv...')

Anyone have Any idea where file is failing to load from? Or where to start looking?

21 Feb 2026, 4:32 PM
#10
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,119
Plugin Contributions:
56

Re: Can't set shipping module

Dan4store:

I have the same problem with the payments screen right after I updated the database and installed 2.1.0 The payment options on the right are not showing up.
I have re-loaded all the files I could think of and it has not helps

This is the log file
[21-Feb-2026 07:48:13 America/Boise] Request URI: /catalog/admin/index.php?cmd=modules&set=payment, IP address: 71.76.139.227
--> PHP Fatal error: Uncaught Error: Undefined constant "MODULE_PAYMENT_PAYPALDP_MERCHANT_COUNTRY" in /home3/ledfourv/public_html/catalog/includes/modules/payment/paypaldp.php:287
Stack trace:
#0 /home3/ledfourv/public_html/catalog/admin/modules.php(221): paypaldp->__construct()
#1 /home3/ledfourv/public_html/catalog/admin/index.php(16): require('/home3/ledfourv...')

Anyone have Any idea where file is failing to load from? Or where to start looking?
For some reason, the paypaldp payment module hasn't updated itself to include that configuration setting.

Your quickest path to success is to use your admin's Tools/Install SQL Patches ... after you've backed up the current database ... to remove all the paypaldp configuration settings and start over.

DELETE FROM configuration WHERE configuration_key LIKE "MODULE_PAYMENT_PAYPALDP_%";
21 Feb 2026, 10:15 PM
#11
dan4store avatar

dan4store

New Zenner

Join Date:
Apr 2025
Location:
NC
Posts:
31
Plugin Contributions:
0

Re: Can't set shipping module

lat9:

For some reason, the paypaldp payment module hasn't updated itself to include that configuration setting.

Your quickest path to success is to use your admin's Tools/Install SQL Patches ... after you've backed up the current database ... to remove all the paypaldp configuration settings and start over.

DELETE FROM configuration WHERE configuration_key LIKE "MODULE_PAYMENT_PAYPALDP_%";


Thank you so much. It worked