Zen Cart Logo
Forums / Addon Shipping Modules / Everything works except USPS

Everything works except USPS

Views: 2,146

Results 1 to 15 of 15
25 Mar 2014, 11:03 PM
#1
in2deep avatar

in2deep

Zen Follower

Join Date:
Jul 2011
Posts:
214
Plugin Contributions:
0

Everything works except USPS

I've installed a USPS module, plugged in all the info they ask for. When you try to checkout in the cart it goes to a blank white page. I've uninstalled and tried it again and it the cart works with UPS or free shipping, not with USPS. I've uninstalled the files and tried a different USPS module and get the same white page.

PLEASE HELP.

Using a template, I've used it before without any issue.

25 Mar 2014, 11:07 PM
#2
ajeh avatar

ajeh

Oba-san

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

Re: Everything works except USPS

Sounds like a bad file upload ...

Peek in the /logs directory, what debug logs show when you have USPS installed?

Do you have any errors in the Zen Cart Admin for the Modules ... Shipping?

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

What happens if you 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:

26 Mar 2014, 7:48 AM
#3
in2deep avatar

in2deep

Zen Follower

Join Date:
Jul 2011
Posts:
214
Plugin Contributions:
0

Re: Everything works except USPS

Ajeh:

Sounds like a bad file upload ...

Peek in the /logs directory, what debug logs show when you have USPS installed?

Do you have any errors in the Zen Cart Admin for the Modules ... Shipping?

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

What happens if you 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:

The shipping/packing looks like this:

Country of Origin United States
Postal Code 93065 Info
Enter the Maximum Package Weight you will ship 50 Info
Package Tare Small to Medium - added percentage:weight 0:0 Info
Larger packages - added packaging percentage:weight 10:0 Info
Display Number of Boxes and Weight Status 0 Info
Order Free Shipping 0 Weight Status 0 Info
Shipping Estimator Display Settings for Shopping Cart 1 Info
Display Order Comments on Admin Invoice 1 Info
Display Order Comments on Admin Packing Slip 1

Right now the module is deactivated because leaving it on causes the blank page so the Developers Tool Kit displays:

Line #12 : * @version $Id: usps.php 2014-03-07 ajeh Version K3 $

26 Mar 2014, 12:38 PM
#4
ajeh avatar

ajeh

Oba-san

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

Re: Everything works except USPS

What happens if you test cURL by running on your server"
/includes/extras/curltester.php

do you get any errors?

Do you get any errors in the Modules ... Shipping ... when you look at that page in your Admin?

Did you find any debug logs in the /logs directory?

26 Mar 2014, 6:16 PM
#5
in2deep avatar

in2deep

Zen Follower

Join Date:
Jul 2011
Posts:
214
Plugin Contributions:
0

Re: Everything works except USPS

Ajeh:

What happens if you test cURL by running on your server"
/includes/extras/curltester.php

do you get any errors?

Do you get any errors in the Modules ... Shipping ... when you look at that page in your Admin?

Did you find any debug logs in the /logs directory?

going to myurl/includes/extras/curltester.php gives me a 403-Forbidden error

When I go to Modules / Shipping there are no errors as long as the USPS isn't activated.

The error log has 21 different items many many times (repeats, a total of 9995 of them though all related.

All of them basically start with - [21-Mar-2014 16:10:31 America/Chicago] PHP Warning: date() [<a href='function.date'>function.date</a>]: It is not safe to rely on the system's timezone settings. You are required to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'America/Chicago' for 'CDT/-5.0/DST' instead in BLAH BLAH

26 Mar 2014, 6:25 PM
#6
ajeh avatar

ajeh

Oba-san

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

Re: Everything works except USPS

Let's start with a fix for that error:
http://www.zen-cart.com/showthread.php?208662-date-timezone-patch

Then, delete all the error log files in /logs and try again and see what issues come up in the /log directory ...

27 Mar 2014, 5:00 AM
#7
in2deep avatar

in2deep

Zen Follower

Join Date:
Jul 2011
Posts:
214
Plugin Contributions:
0

Re: Everything works except USPS

Ajeh:

Let's start with a fix for that error:
http://www.zen-cart.com/showthread.php?208662-date-timezone-patch

Then, delete all the error log files in /logs and try again and see what issues come up in the /log directory ...

Excellent, fixing the timezone issue fixed it. USPS now works as it should. The only issue I see in the error log is:

[26-Mar-2014 22:53:00 America/Chicago] PHP Warning: Invalid argument supplied for foreach() in /home/xxxxxx/public_html/includes/modules/pages/checkout_shipping/header_php.php on line 191

Any idea what this is?

27 Mar 2014, 12:42 PM
#8
ajeh avatar

ajeh

Oba-san

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

Re: Everything works except USPS

What version of php are you on? You can see it in the Tools ... Server Info ...

27 Mar 2014, 6:34 PM
#9
in2deep avatar

in2deep

Zen Follower

Join Date:
Jul 2011
Posts:
214
Plugin Contributions:
0

Re: Everything works except USPS

Ajeh:

What version of php are you on? You can see it in the Tools ... Server Info ...

PHP Version: 5.3.28 (Zend: 2.3.0)

28 Mar 2014, 12:07 AM
#10
ajeh avatar

ajeh

Oba-san

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

Re: Everything works except USPS

Could you look in your directory /logs and see what the debug logs are when you hit the blank page?

28 Mar 2014, 6:57 PM
#11
in2deep avatar

in2deep

Zen Follower

Join Date:
Jul 2011
Posts:
214
Plugin Contributions:
0

Re: Everything works except USPS

No more blank page, fixing the timezone issue fixed it.

28 Mar 2014, 9:17 PM
#12
ajeh avatar

ajeh

Oba-san

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

Re: Everything works except USPS

Does this mean your shipping is working now?

30 Apr 2014, 10:05 PM
#13
in2deep avatar

in2deep

Zen Follower

Join Date:
Jul 2011
Posts:
214
Plugin Contributions:
0

Re: Everything works except USPS

Yes, everything is working as it should. Thank you!

2 May 2014, 3:50 AM
#14
boneislandbob avatar

boneislandbob

New Zenner

Join Date:
Apr 2014
Location:
Key West, Florida, United States
Posts:
2
Plugin Contributions:
0

Re: Everything works except USPS

I downloaded the USPS module. Unzipped it. Read the "readme".
Says I have to have curl installed on my server.
This has left me at a loss.
I researched curl, can't figure out which Linux platform I'm on, or how to install it.
If anyone can help me figure this out then please give me a guide.
Most everything else I've needed I've pulled from threads.
I promise I'm not some newbie with no clue; I'm just not familiar with things like curl.

Thanks.

Bob

2 May 2014, 12:47 PM
#15
ajeh avatar

ajeh

Oba-san

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

Re: Everything works except USPS

Run the file:
/includes/extras/curltester.php

and see what it says ...

If all tests are good then cURL is working fine ...