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.
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 ...
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!!
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
)
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:
Quote:
* @version $Id: usps.php
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 $
Re: Cannot update to new USPS v4 rates
What file path was this one located in?
Code:
Line #10 : * @version $Id: usps.php 2013-07-28 ajeh $ Version J 2013-07-28
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.
Re: Cannot update to new USPS v4 rates
It was:
/includes/languages/english/modules/shipping/usps.php
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 ...
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?
Re: Cannot update to new USPS v4 rates
What's the URL for your site so we can see the symptoms in action?
Quote:
Originally Posted by
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.
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?
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.
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?!!!!
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?
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!
Re: Cannot update to new USPS v4 rates
Quote:
Originally Posted by
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
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
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.
Re: Cannot update to new USPS v4 rates
Quote:
Originally Posted by
DesDev5
Any other thoughts? Appreciate your responses, but still no fix. Is anyone using 138a with usps successfully? Thanks.
Ajeh and I have both set up temporary new v1.3.8a sites as a test, and added the latest USPS module, and it works fine.