Forums / Addon Shipping Modules / Cannot update to new USPS v4 rates

Cannot update to new USPS v4 rates

Views: 2,711

Results 1 to 20 of 21
12 Aug 2013, 2:51 AM
#1
desdev5 avatar

desdev5

New Zenner

Join Date:
Jun 2010
Posts:
24
Plugin Contributions:
0

Cannot update to new USPS v4 rates

I am trying to update to the latest USPS updates for domestic/international. I cannot get any of the updates (for July) to work. The closest I got was a line item for USPS in my admin modules, but it was working strange, as the fields were half empty. Nothing worked on the site. i am using 1.3.8a. I checked my account with USPS, all is fine. They did add access for v4, supposedly I did not have it yet. This did not help.

I heard reference to CURL, not sure what this is. Never had to do anything with it. I obtained a path from my hosting company, who said I would need to place in front of the curl binary being called. Must I do this?

Please help!!
Thanks.

12 Aug 2013, 8:04 PM
#2
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Cannot update to new USPS v4 rates

Could you try to run from your site this file:
your_domain.com/extras/curltest.php
your_domain.com/your_catalog_directory/extras/curltest.php

NOTE: which one you run is based on if your shop in in your main directory or a subdirectory on your server ...

And see what the results are ...

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

13 Aug 2013, 12:59 AM
#3
desdev5 avatar

desdev5

New Zenner

Join Date:
Jun 2010
Posts:
24
Plugin Contributions:
0

Re: Cannot update to new USPS v4 rates

I get a 404 not found...assuming I have tried the correct path. has anyone successfully updated to USPS v4 with 1.3.8a?
I am having no luck. My hosting company has provided curl paths, not sure where to place this. They also asked if I am using cron?

Thanks so much for the help!!

13 Aug 2013, 1:19 AM
#4
desdev5 avatar

desdev5

New Zenner

Join Date:
Jun 2010
Posts:
24
Plugin Contributions:
0

Re: Cannot update to new USPS v4 rates

I referenced your reply to another user and discovered that I had removed the curltest.php file per the security instructions to drop the whole folder. I was able to run the file.

It returned:

You submitted the following fields and data:

Array
(
[field1] => This is a test
[statuskey] => ready
)
Data validation

Good

Array
(
[url] => "http://www.zen-cart.com/testcurl.php"
[content_type] => text/html
[http_code] => 200
[header_size] => 179
[request_size] => 174
[filetime] => -1
[ssl_verify_result] => 0
[redirect_count] => 0
[total_time] => 1.605757
[namelookup_time] => 0.024264
[connect_time] => 0.064783
[pretransfer_time] => 0.064884
[size_upload] => 37
[size_download] => 2078
[speed_download] => 1294
[speed_upload] => 23
[download_content_length] => 2078
[upload_content_length] => 37
[starttransfer_time] => 1.605667
[redirect_time] => 0
)

13 Aug 2013, 1:39 AM
#5
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Cannot update to new USPS v4 rates

Go to your Zen Cart Admin and go to Tools ... Developers Tool Kit ...

In the bottom input box enter:
usps.php

Then, select Catalog ... click SEARCH ...

What comes up on the lines for:

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

13 Aug 2013, 1:45 AM
#6
desdev5 avatar

desdev5

New Zenner

Join Date:
Jun 2010
Posts:
24
Plugin Contributions:
0

Re: Cannot update to new USPS v4 rates

I got two items:

Line #10 : * @version $Id: usps.php 2013-07-28 ajeh $ Version J 2013-07-28

Line #12 : * @version $Id: usps.php 2013-07-30 ajeh Version J5 $

13 Aug 2013, 1:50 AM
#7
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Cannot update to new USPS v4 rates

What file path was this one located in?

Line #10 : * @version $Id: usps.php 2013-07-28 ajeh $ Version J 2013-07-28

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

13 Aug 2013, 1:52 AM
#8
desdev5 avatar

desdev5

New Zenner

Join Date:
Jun 2010
Posts:
24
Plugin Contributions:
0

Re: Cannot update to new USPS v4 rates

Also, in the Config>My Store, do I need to do anything with:
cURL Proxy Status
cURL Proxy Address

I never have touched those two items.

13 Aug 2013, 1:53 AM
#9
desdev5 avatar

desdev5

New Zenner

Join Date:
Jun 2010
Posts:
24
Plugin Contributions:
0

Re: Cannot update to new USPS v4 rates

It was:

/includes/languages/english/modules/shipping/usps.php

13 Aug 2013, 2:24 AM
#10
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Cannot update to new USPS v4 rates

While both files should have J5 in that line, it should be okay ... though to be consistent, you should update the language file with the right file ...

On the cURL settings, I am not sure if those need changing or not as your cURL test is working ... I think we'd have to wait on DrByte for that answer ...

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

13 Aug 2013, 2:29 AM
#11
desdev5 avatar

desdev5

New Zenner

Join Date:
Jun 2010
Posts:
24
Plugin Contributions:
0

Re: Cannot update to new USPS v4 rates

Should I duplicate the file then and disregard the one without J5?

How do we get in touch with DrByte?!

I'm losing sleep over this one! Does it seem that maybe it's not a complete failure just yet?

13 Aug 2013, 2:52 AM
#12
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,515
Plugin Contributions:
176

Re: Cannot update to new USPS v4 rates

What's the URL for your site so we can see the symptoms in action?

DesDev5:

I'm losing sleep over this one!
Honestly I'd be more inclined to lose sleep over still using v1.3.8a which was published in 2006. This is now 2013 and numerous new releases have been posted since your old version was written.
You're going to run into more and more problems the longer you keep using that old version instead of upgrading.

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

13 Aug 2013, 3:00 AM
#13
desdev5 avatar

desdev5

New Zenner

Join Date:
Jun 2010
Posts:
24
Plugin Contributions:
0

Re: Cannot update to new USPS v4 rates

Thanks for the note. I will have to plan an upgrade. In the meantime, any thoughts for how to resolve this issue to get back up and running?

13 Aug 2013, 3:03 AM
#14
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,515
Plugin Contributions:
176

Re: Cannot update to new USPS v4 rates

Need your URL to see it in action.
It would be helpful also to see the USPS debug logs.

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

15 Aug 2013, 2:27 AM
#15
desdev5 avatar

desdev5

New Zenner

Join Date:
Jun 2010
Posts:
24
Plugin Contributions:
0

Re: Cannot update to new USPS v4 rates

I cannot get USPS debug logs. With the old USPS rates, I turned on the debug and received the logs that the API had expired. With this new installation, there's something going on in the admin panel. In the listing of shipping modules, the line for USPS is blank in text, though it is there and turned off (red). To the right, where you usually edit the fields, some are predefined (even my webtools id has been pulled in), but other fields are boxed with no labels. For example, international ship rates are not available for selection, but the blank boxes where they should be are there. Even if i go in and edit or remove, nothing changes that red button to green for activation! Something must be conflicting in those two PHP files?

I have contacted the hosting company numerous times. They said PHP and cURl are all set. They did mention that they need to whitelist the IP address to connect to the USPS. I gave them urls that they converted.

No idea what to try next?!!!!

15 Aug 2013, 3:10 AM
#16
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Cannot update to new USPS v4 rates

Do you have for your ancient Zen Cart v1.3.8 the:

Debug Error Logging Utility for v1.3.8
http://www.zen-cart.com/downloads.php?do=file&id=606

installed on your site?

If not, please install it and try to use the USPS shipping in:

1 Shipping Estimator

2 Checkout checkout_shipping

3 Admin Modules ... Shipping ...

are any logs generated what so ever?

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

15 Aug 2013, 3:30 AM
#17
desdev5 avatar

desdev5

New Zenner

Join Date:
Jun 2010
Posts:
24
Plugin Contributions:
0

Re: Cannot update to new USPS v4 rates

Thank you, will try this on the ancient cart...you are getting me more anxious and motivated to upgrade. :)
First I've got to get this fixed!

15 Aug 2013, 3:39 AM
#18
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,515
Plugin Contributions:
176

Re: Cannot update to new USPS v4 rates

DesDev5:

... but other fields are boxed with no labels. For example, international ship rates are not available for selection, but the blank boxes where they should be are there.
Those are symptoms one encounters when installing the new module's .php file without first clicking Remove on the old module to have it remove itself from the site.

So, as the instructions say in the plugin readme:
(first, put back the old usps.php file)

  • write down the old settings
  • click Remove
  • replace the usps.php files with the new ones
  • click Install
  • fill in the settings as required

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

15 Aug 2013, 12:21 PM
#19
desdev5 avatar

desdev5

New Zenner

Join Date:
Jun 2010
Posts:
24
Plugin Contributions:
0

Re: Cannot update to new USPS v4 rates

Followed your instructions. The old came back fine. Now for the new...

I still got the blank line in the list of modules. When I hit install, I got errors:
Warning: reset() [function.reset]: Passed variable is not an array or object in ../"adminxx"/modules.php on line 278

Warning: Variable passed to each() is not an array or object in ../"adminxx"/modules.php on line 279

21 Aug 2013, 2:49 PM
#20
desdev5 avatar

desdev5

New Zenner

Join Date:
Jun 2010
Posts:
24
Plugin Contributions:
0

Re: Cannot update to new USPS v4 rates

Any other thoughts? Appreciate your responses, but still no fix. Is anyone using 138a with usps successfully? Thanks.