Zen Cart Logo
Forums / Addon Shipping Modules / UPS Shipping using RESTful/OAuth API [Support Thread]

UPS Shipping using RESTful/OAuth API [Support Thread]

Sticky

Views: 45,485

Results 61 to 80 of 221
12 Oct 2023, 12:19 AM
#61
bubbadood avatar

bubbadood

New Zenner

Join Date:
Mar 2012
Location:
NJ
Posts:
49
Plugin Contributions:
0

UPS Shipping using RESTful/OAuth API [Support Thread]

I keep getting an error :

Missing Keys or Out of date you should reinstall!

I've uninstalled the module and reinstalled a few times, I've even grabbed the source from GitHub. Not sure what I'm missing.

ZenCart 1.5.8a
PHP 8.1.24

I was a shy, quiet kid. I was happiest playing by myself with my toys, rather than hanging around people.
-- Christian Slater

12 Oct 2023, 12:29 AM
#62
lat9 avatar

lat9

Administrator

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

Re: UPS Shipping using RESTful/OAuth API [Support Thread]

Bubbadood:

I keep getting an error :

Missing Keys or Out of date you should reinstall!

I've uninstalled the module and reinstalled a few times, I've even grabbed the source from GitHub. Not sure what I'm missing.

ZenCart 1.5.8a
PHP 8.1.24
What version shows in the admin?

12 Oct 2023, 12:31 AM
#63
bubbadood avatar

bubbadood

New Zenner

Join Date:
Mar 2012
Location:
NJ
Posts:
49
Plugin Contributions:
0

Re: UPS Shipping using RESTful/OAuth API [Support Thread]

lat9:

What version shows in the admin?

United Parcel Service v1.2.0** - Missing Keys or Out of date you should reinstall!**

I was a shy, quiet kid. I was happiest playing by myself with my toys, rather than hanging around people.
-- Christian Slater

12 Oct 2023, 2:23 AM
#64
lat9 avatar

lat9

Administrator

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

Re: UPS Shipping using RESTful/OAuth API [Support Thread]

Bubbadood:

United Parcel Service v1.2.0** - Missing Keys or Out of date you should reinstall!**
PM me your private email address, I think I know what needs to be done.

12 Oct 2023, 5:54 PM
#65
n8pbm avatar

n8pbm

Zen Follower

Join Date:
Mar 2005
Posts:
142
Plugin Contributions:
0

Re: UPS Shipping using RESTful/OAuth API [Support Thread]

Bubbadood:

United Parcel Service v1.2.0** - Missing Keys or Out of date you should reinstall!**

I tried upgrading from v0.0.1 to v1.2.0 and now I am receiving the same issue.

13 Oct 2023, 12:00 AM
#66
lat9 avatar

lat9

Administrator

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

Re: UPS Shipping using RESTful/OAuth API [Support Thread]

n8pbm:

I tried upgrading from v0.0.1 to v1.2.0 and now I am receiving the same issue.
Working on it ...

13 Oct 2023, 8:50 AM
#67
abolabo avatar

abolabo

New Zenner

Join Date:
Oct 2023
Location:
Ukraine
Posts:
1
Plugin Contributions:
0

Re: UPS Shipping using RESTful/OAuth API [Support Thread]

we had published UPS API SDK.
You can install it via composer

composer require abantecart/ups-php

Or just visit github repository abantecart/ups-php

Best regards!

13 Oct 2023, 10:05 AM
#68
lat9 avatar

lat9

Administrator

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

Re: UPS Shipping using RESTful/OAuth API [Support Thread]

n8pbm:

I tried upgrading from v0.0.1 to v1.2.0 and now I am receiving the same issue.
Arggh, I'd forgotten about that initial beta release. You can edit /includes/modules/shipping/upsoauth.php, adding the highlighted line:

        if (!defined('MODULE_SHIPPING_UPSOAUTH_VERSION') || MODULE_SHIPPING_UPSOAUTH_VERSION !== $this->moduleVersion || count($this->keys()) !== $chk_sql->RecordCount()) {
            if (!defined('MODULE_SHIPPING_UPSOAUTH_VERSION')) {
                define('MODULE_SHIPPING_UPSOAUTH_VERSION', '1.0.0');
            }
            switch (MODULE_SHIPPING_UPSOAUTH_VERSION) {
[B]                case '0.0.1':   //- Initial Beta release[/B]
                case '1.0.0':
13 Oct 2023, 3:17 PM
#69
bubbadood avatar

bubbadood

New Zenner

Join Date:
Mar 2012
Location:
NJ
Posts:
49
Plugin Contributions:
0

Re: UPS Shipping using RESTful/OAuth API [Support Thread]

lat9:

Arggh, I'd forgotten about that initial beta release. You can edit /includes/modules/shipping/upsoauth.php, adding the highlighted line:

    if (!defined('MODULE_SHIPPING_UPSOAUTH_VERSION') || MODULE_SHIPPING_UPSOAUTH_VERSION !== $this->moduleVersion || count($this->keys()) !== $chk_sql->RecordCount()) {
        if (!defined('MODULE_SHIPPING_UPSOAUTH_VERSION')) {
            define('MODULE_SHIPPING_UPSOAUTH_VERSION', '1.0.0');
        }
        switch (MODULE_SHIPPING_UPSOAUTH_VERSION) {

[B] case '0.0.1': //- Initial Beta release[/B]
case '1.0.0':



I've made these changes, I still get the error. I'm away until Saturday, I can follow up on your PM on Saturday when I'm around.

I was a shy, quiet kid. I was happiest playing by myself with my toys, rather than hanging around people.
-- Christian Slater

13 Oct 2023, 6:59 PM
#70
arj3090 avatar

arj3090

New Zenner

Join Date:
Dec 2018
Location:
Orangeburg, SC
Posts:
7
Plugin Contributions:
0

Re: UPS Shipping using RESTful/OAuth API [Support Thread]

I have been unable to get this to work at all. It's now to a point that I am considering dumping the whole Zencart web site and moving to another platform because I am losing significant sales.

Is there anyone that I could contract to try to resolve this?

17 Oct 2023, 5:18 PM
#71
4allthingsweb avatar

4allthingsweb

New Zenner

Join Date:
Oct 2023
Posts:
1
Plugin Contributions:
0

Re: UPS Shipping using RESTful/OAuth API [Support Thread]

OK here is the fix. Same happened to me.
Find the line that says (mine is line 102) in /includes/modules/shipping/upsoath.php
case '1.1.0':

Change it to
case '1.2.0':

That removes the error. However, It still does not show rates on the estimator nor the checkout page. I have yet to figure that one out. It may be a template issue on my side.

17 Oct 2023, 6:40 PM
#72
lat9 avatar

lat9

Administrator

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

Re: UPS Shipping using RESTful/OAuth API [Support Thread]

4allthingsweb:

OK here is the fix. Same happened to me.
Find the line that says (mine is line 102) in /includes/modules/shipping/upsoath.php
case '1.1.0':

Change it to
case '1.2.0':

That removes the error. However, It still does not show rates on the estimator nor the checkout page. I have yet to figure that one out. It may be a template issue on my side.
Instead of changing that line, the '1.2.0' case should be added under the '1.1.0' one.

Regarding the 'rates not showing', try enabling the UPS debug and review the generated log. It's possible that the credentials aren't valid or you've not added the UPS "Rating" or "Time in Transit" apps to be associated with your OAuth token credentials (see post #54 in this support-thread).

18 Oct 2023, 5:09 PM
#73
n8pbm avatar

n8pbm

Zen Follower

Join Date:
Mar 2005
Posts:
142
Plugin Contributions:
0

Re: UPS Shipping using RESTful/OAuth API [Support Thread]

lat9:

Arggh, I'd forgotten about that initial beta release. You can edit /includes/modules/shipping/upsoauth.php, adding the highlighted line:

    if (!defined('MODULE_SHIPPING_UPSOAUTH_VERSION') || MODULE_SHIPPING_UPSOAUTH_VERSION !== $this->moduleVersion || count($this->keys()) !== $chk_sql->RecordCount()) {
        if (!defined('MODULE_SHIPPING_UPSOAUTH_VERSION')) {
            define('MODULE_SHIPPING_UPSOAUTH_VERSION', '1.0.0');
        }
        switch (MODULE_SHIPPING_UPSOAUTH_VERSION) {

[B] case '0.0.1': //- Initial Beta release[/B]
case '1.0.0':


Made the change and reinstalled.  I still get the same message.  Thank you
18 Oct 2023, 6:21 PM
#74
bubbadood avatar

bubbadood

New Zenner

Join Date:
Mar 2012
Location:
NJ
Posts:
49
Plugin Contributions:
0

Re: UPS Shipping using RESTful/OAuth API [Support Thread]

n8pbm:

Made the change and reinstalled. I still get the same message. Thank you

I changed it to:

switch (MODULE_SHIPPING_UPSOAUTH_VERSION) {
                case '0.0.1':   //- Initial Beta release
                case '1.0.0':
                case '1.2.0':
                      $db->Execute(

which worked fine.

I was a shy, quiet kid. I was happiest playing by myself with my toys, rather than hanging around people.
-- Christian Slater

19 Oct 2023, 12:51 AM
#75
lat9 avatar

lat9

Administrator

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

Re: UPS Shipping using RESTful/OAuth API [Support Thread]

UPS RESTful/OAuth v1.2.1 is now available for download: https://www.zen-cart.com/downloads.php?do=file&id=2374

This release contains changes associated with the following GitHub issues:

#18: Correct upgrade when module is currently installed and disabled.
#19: Correctly return quotes when a shipment is less than 1 lb/kg.

19 Oct 2023, 1:04 AM
#76
bubbadood avatar

bubbadood

New Zenner

Join Date:
Mar 2012
Location:
NJ
Posts:
49
Plugin Contributions:
0

Re: UPS Shipping using RESTful/OAuth API [Support Thread]

lat9:

UPS RESTful/OAuth v1.2.1 is now available for download: https://www.zen-cart.com/downloads.php?do=file&id=2374

This release contains changes associated with the following GitHub issues:

#18: Correct upgrade when module is currently installed and disabled.
#19: Correctly return quotes when a shipment is less than 1 lb/kg.

Updated to 1.2.1 overwriting my manual changes and got the exact same error as the previous version.

  1. Uninstalled old module from admin
  2. Uploaded and used overwrite for all files included in 1.2.1
  3. Installed and configured module and get the same prior error

Attachment 20409

I was a shy, quiet kid. I was happiest playing by myself with my toys, rather than hanging around people.
-- Christian Slater

19 Oct 2023, 1:41 AM
#77
lat9 avatar

lat9

Administrator

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

Re: UPS Shipping using RESTful/OAuth API [Support Thread]

In a word: cr@p

Is the shipping module enabled?

19 Oct 2023, 1:45 AM
#78
lat9 avatar

lat9

Administrator

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

Re: UPS Shipping using RESTful/OAuth API [Support Thread]

When you navigate to Tools :: Developers Tool Kit and enter MODULE_SHIPPING_UPSOAUTH_VERSION in the upper (database) search box, what displays?

19 Oct 2023, 1:49 AM
#79
bubbadood avatar

bubbadood

New Zenner

Join Date:
Mar 2012
Location:
NJ
Posts:
49
Plugin Contributions:
0

Re: UPS Shipping using RESTful/OAuth API [Support Thread]

lat9:

When you navigate to Tools :: Developers Tool Kit and enter MODULE_SHIPPING_UPSOAUTH_VERSION in the upper (database) search box, what displays?

Yes, enabled. Here are the results of the search:

Lookup CONSTANT Definitions
Key: MODULE_SHIPPING_UPSOAUTH_VERSION
Title: UPS OAuth Version
Description: You have installed:
Value: 1.2.1
Group: ID#6 Module Options or, HIDDEN

I was a shy, quiet kid. I was happiest playing by myself with my toys, rather than hanging around people.
-- Christian Slater

19 Oct 2023, 1:53 AM
#80
lat9 avatar

lat9

Administrator

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

Re: UPS Shipping using RESTful/OAuth API [Support Thread]

I don't get it; that's a problem to be solved tomorrow.