Zen Cart Logo
If this is your first visit, check our documentation. To post, register or login.
Forums / Community Contributed Add-Ons / Addon Shipping Modules / USPS isn't working after update (caused by renaming old one instead of deleting it)

USPS isn't working after update (caused by renaming old one instead of deleting it)

Locked

Started by anita on 27 Jan 2013, 6:48 PM · Views: 1,129

Results 1 to 6 of 6
This thread is locked. New replies are disabled.
27 Jan 2013, 6:48 PM
#1
anita avatar

anita

Zen Follower

Join Date:
Feb 2006
Posts:
124
Plugin Contributions:
0

Post #1 by anita

I just tried the Jan 27 USPS update, and I must have done something wrong because in admin when I go to shipping modules the USPS module is not even in the list and at the top of the page this is the message I get:

Shipping Configuration errors!
Warning: USPS shipping module is either missing the username, or it is set to TEST rather than PRODUCTION and will not work.
If you cannot retrieve USPS Shipping Quotes, contact USPS to activate your Web Tools account on their production server. 1-800-344-7779 or [email protected]

Before I did anything the USPS module was working fine. I wrote down all my settings, then uninstalled the USPS module.
Then I uploaded the 2 files. Went back into admin, and the above is what I get now.

What should I do now?

27 Jan 2013, 6:56 PM
#2
ajeh avatar

ajeh

Oba-san

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

Post #2 by ajeh

Can you do a check that you have the right version, there was an issue on the downloads prior to midnight ...

Go to your Tools ... Developers Tool Kit ... and in the bottom input box enter:
usps.php

and select Catalog and click Search ...

You should see:

[B] * @version $Id: usps.php 18348G 2013-01-27 01:27:00Z ajeh $
[/B]

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!

27 Jan 2013, 7:09 PM
#3
anita avatar

anita

Zen Follower

Join Date:
Feb 2006
Posts:
124
Plugin Contributions:
0

Post #3 by anita

Ajeh, That is what I have.

27 Jan 2013, 7:15 PM
#4
anita avatar

anita

Zen Follower

Join Date:
Feb 2006
Posts:
124
Plugin Contributions:
0

Post #4 by anita

I think I know what it is.
Before I uploaded the new versions I renamed the old ones to oldusps.php. I just deleted those and the USPS shipping module is back in admin. I will put in the correct values and see if it works. Will report back in a few minutes

27 Jan 2013, 7:20 PM
#5
drbyte avatar

drbyte

Sensei

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

Post #5 by drbyte

anita:

I think I know what it is.
Before I uploaded the new versions I renamed the old ones to oldusps.php. I just deleted those and the USPS shipping module is back in admin.
Exactly. You should have used .bak or something OTHER THAN .PHP for the renamed file extension.
Or delete it.

(all *.php files get processed, and since the code inside them duplicates things when you rename the old one as a backup, it causes errors. Renaming using something other than .php would be fine.)

.
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.

27 Jan 2013, 7:25 PM
#6
anita avatar

anita

Zen Follower

Join Date:
Feb 2006
Posts:
124
Plugin Contributions:
0

Post #6 by anita

anita:

I think I know what it is.
Before I uploaded the new versions I renamed the old ones to oldusps.php. I just deleted those and the USPS shipping module is back in admin. I will put in the correct values and see if it works. Will report back in a few minutes

Yes that was indeed the problem. Thank you Ajeh and Dr. Byte for your help!