Forums / Built-in Shipping and Payment Modules / USPS Module Not Working

USPS Module Not Working

Results 1 to 16 of 16
01 Sep 2011, 19:57
#1
spar303 avatar

spar303

New Zenner

Join Date:
Sep 2011
Posts:
11
Plugin Contributions:
0

USPS Module Not Working

I am getting this error when going to checkout, and we are only using the USPS shipping module:
"We are unable to find a USPS shipping quote suitable for your mailing address and the shipping methods we typically use.
If you prefer to use USPS as your shipping method, please contact us for assistance.
(Please check that your Zip Code is entered correctly.)"

I have tried this fix:
Make sure that you have the current January 2, 2011 C version of USPS from post 26:
http://www.zen-cart.com/forum/showthread.php?t=171314

Follow the instructions to:
1 save current USPS settings

2 remove current USPS

3 upload the new version

4 install the new USPS

5 reconfigure 


And I tried using this module as well:
http://www.zen-cart.com/index.php?main_page=product_contrib_info&products_id=1914

And I am now back to the default module that ships with the zen cart install.

I am using:
* Latest version of zen cart
* Hostgator shared hosting
* PHP Version 5.2.17

I also tried signing up for a new web tools ID from USPS with no success. I am out of things to try to get this to work, and am wondering if anybody else is experiencing this problem even after trying all of the fixes that are presented here.

Any help would be very much appreciated!
01 Sep 2011, 20:29
#2
spembleton avatar

spembleton

Zen Follower

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

Re: USPS Module Not Working

I believe the most current version for that module is August, 2011 (the one you mentioned). Try removing it and reactivating it.
01 Sep 2011, 22:25
#3
ajeh avatar

ajeh

Oba-san

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

Re: USPS Module Not Working

The current version the January 2, 2011 version C from post #26 of:
http://www.zen-cart.com/forum/showthread.php?t=171314

Be sure to test check that you have the current version loaded on the server ... most errors people have is installing the wrong version or installing incorrectly ...

What are your settings on the Configuration ... Shipping/Packaging ...

What is the Ship From?

What is the Ship To?

What is the Weight being testing?
01 Sep 2011, 22:50
#4
spar303 avatar

spar303

New Zenner

Join Date:
Sep 2011
Posts:
11
Plugin Contributions:
0

Re: USPS Module Not Working

I tried Marco's version and get this error:
[01-Sep-2011 17:15:32] PHP Fatal error: Call to a member function getName() on a non-object in /home/....../store/includes/modules/shipping/usps.php on line 915

Here are the settings I am using:
http://joshjohnston.net/random/settings.jpg

Here is an example XML response from USPS that we're getting:
<?xml version="1.0"?>
<RateV3Response><Package ID="0"><ZipOrigination>98122</ZipOrigination><ZipDestination>95521</ZipDestination><Pounds>0</Pounds><Ounces>12.8</Ounces><FirstClassMailType>FLAT</FirstClassMailType><Size>REGULAR</Size><Machinable>FALSE</Machinable><Zone>4</Zone><Postage CLASSID="0"><MailService>First-Class Mail</MailService><Rate>3.41</Rate></Postage></Package><Package ID="1"><ZipOrigination>98122</ZipOrigination><ZipDestination>95521</ZipDestination><Pounds>0</Pounds><Ounces>12.8</Ounces><Container></Container><Size>REGULAR</Size><Zone>4</Zone><Postage CLASSID="1"><MailService>Priority Mail&lt;sup&gt;&amp;reg;&lt;/sup&gt;</MailService><Rate>5.25</Rate></Postage></Package><Package ID="2"><ZipOrigination>98122</ZipOrigination><ZipDestination>95521</ZipDestination><Pounds>0</Pounds><Ounces>12.8</Ounces><Container></Container><Size>REGULAR</Size><Zone>4</Zone><Postage CLASSID="6"><MailService>Media Mail&lt;sup&gt;&amp;reg;&lt;/sup&gt;</MailService><Rate>2.41</Rate></Postage></Package></RateV3Response>
01 Sep 2011, 22:51
#5
spar303 avatar

spar303

New Zenner

Join Date:
Sep 2011
Posts:
11
Plugin Contributions:
0

Re: USPS Module Not Working

Also I forgot to mention that the USPS module had been working for a long time and just recently stopped working.
01 Sep 2011, 22:58
#6
spar303 avatar

spar303

New Zenner

Join Date:
Sep 2011
Posts:
11
Plugin Contributions:
0

Re: USPS Module Not Working

Also, we are shipping from Seattle Washington and trying to ship to various addresses in the united states.
01 Sep 2011, 23:09
#7
ajeh avatar

ajeh

Oba-san

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

Re: USPS Module Not Working

You show a missing function from Marco's version of Zen Cart but you are showing an image from a different version of Zen Cart ...

You need to see if you have mixed up the files and what is actually installed for USPS on your server ...

Make sure that you have no backup or renamed files on the shipping modules in the directory:
/includes/modules/shipping

and that the files in the directory:
/includes/modules/shipping

are the code files and the files in the language directory:
/includes/languages/english/modules/shipping

are the language files ...
02 Sep 2011, 02:58
#8
spar303 avatar

spar303

New Zenner

Join Date:
Sep 2011
Posts:
11
Plugin Contributions:
0

Re: USPS Module Not Working

The image of our settings is from the usps module that ships with zen cart. When using Marco's version I used the exact same settings with none of the extra options set that Marco's version offers.

I also am very sure that I have not mixed up the files when I try each version, and there are no extra/backup files in any directories.

The strange thing is that this started happening without making any changes to any files or the database, so when this problem arose it was not related to doing any updates or changes to any files whatsoever.

I'm totally stumped.... I almost wonder if something with Hostgator's server changed that could be doing this.
02 Sep 2011, 03:01
#9
spar303 avatar

spar303

New Zenner

Join Date:
Sep 2011
Posts:
11
Plugin Contributions:
0

Re: USPS Module Not Working

Also when trying Marco's version I also made sure to upload the language file as well.
02 Sep 2011, 13:12
#10
ajeh avatar

ajeh

Oba-san

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

Re: USPS Module Not Working

Which USPS module are you using ... the January 2, 2011 version C or Marco's USPS shipping module?
02 Sep 2011, 17:23
#11
spar303 avatar

spar303

New Zenner

Join Date:
Sep 2011
Posts:
11
Plugin Contributions:
0

Re: USPS Module Not Working

Last night I installed a fresh install of the latest cart, and tried the usps module that ships first. Then, I installed the January 2, 2011 version C module into that fresh install. Both did not work for me and just returned the message "there are no available shipping options."

Then I tried Marco's version on a fresh install and ran in to the same PHP error as before where it says "Fatal error: Call to a member function getName() on a non-object.....".

On all 3 of the versions of the module, I also tried changing around the settings for shipping like the taxes etc. and set the sort order to "1" instead of "0", and none of those changes made any difference for me. I also double checked our shipping info for the store to make sure our address, country, etc. was valid and everything is set up correctly there.

I am going to try installing on my localhost now and see if that makes any difference... I'll post the results when I'm done.
02 Sep 2011, 17:30
#12
ajeh avatar

ajeh

Oba-san

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

Re: USPS Module Not Working

Just as a test, what happens if you install the UPS shipping module, do you get quotes?

NOTE: set it up will all methods selected ...
02 Sep 2011, 17:39
#13
spar303 avatar

spar303

New Zenner

Join Date:
Sep 2011
Posts:
11
Plugin Contributions:
0

Re: USPS Module Not Working

I just tried the UPS module, that one works just fine.
04 Sep 2011, 01:09
#14
spar303 avatar

spar303

New Zenner

Join Date:
Sep 2011
Posts:
11
Plugin Contributions:
0

Re: USPS Module Not Working

Is anyone here able to use the USPS module w/ Hostgator and the latest Zen version? And if so, could you post a phpinfo() with your sensitive data removed ? We've tried literally everything and just can't get this to work even when getting back a valid USPS xml response and are thinking of migrating to another cart.
07 Sep 2011, 00:05
#15
spar303 avatar

spar303

New Zenner

Join Date:
Sep 2011
Posts:
11
Plugin Contributions:
0

Re: USPS Module Not Working

I just had a thought...

Maybe the error that I am getting when I try using Marco's version ( "Fatal error: Call to a member function getName() on a non-object....." ) could somehow point to the overall problem, since most people don't seem to get that error?
10 Sep 2011, 00:19
#16
spar303 avatar

spar303

New Zenner

Join Date:
Sep 2011
Posts:
11
Plugin Contributions:
0

Re: USPS Module Not Working

I could never get USPS working with Zen cart, even tried new hosting and all 3 solutions multiple times...

Switched to Prestacart and it's working perfectly now, but thanks for trying to help.