Forums / Addon Shipping Modules / blank page after USPS shipping module update

blank page after USPS shipping module update

Views: 1,595

Results 1 to 8 of 8
5 Aug 2013, 11:38 PM
#1
westcoak avatar

westcoak

New Zenner

Join Date:
Sep 2008
Posts:
4
Plugin Contributions:
0

blank page after USPS shipping module update

A couple days ago we had someone place an order from outside the country when we noticed international shipping rates were not working. After doing some searching, I found that there was a recent update for the USPS shipping, so I downloaded it making sure it worked for our current version of zen-cart, and I installed it following the instructions. After that, when a person got to the check-out page, they got to a blank white page, and were no longer able to place an order.

After that I went back to our previous version of the usps shipping module and installed it. From there we were able to click check-out, but the page after went to a blank page that had lots of repeating text:

We looked in the php.ini and put in 'America/Anchorage' for the timezone and got the same result. Here is a snippet of some of the text we got:

tting this warning, you most likely misspelled the timezone identifier. We selected 'America/Anchorage' for 'AKDT/-8.0/DST' instead in /Library/WebServer/Documents/MORA/moweb/includes/languages/moose/english.php on line 16 Warning: date(): 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/Anchorage' for 'AKDT/-8.0/DST' instead in /Library/WebServer/Documents/MORA/moweb/includes/languages/english/email_extras.php on line 30 Warning: date(): 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/Anchorage' for 'AKDT/-8.0/DST' instead in /Library/WebServer/Documents/MORA/moweb/includes/languages/english.php on line 16 Warning: date(): 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/Anchorage' for 'AKDT/-8.0/DST' instead in /Library/WebServer/Documents/MORA/moweb/includes/init_includes/init_special_funcs.php on line 40 Warning: date(): 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/Anchorage' for 'AKDT/-8.0/DST' instead in /Library/WebServer/Documents/MORA/moweb/includes/counter.php on line 21 Warning: mktime(): It is not safe to rely on the system's timezone settings. You are required to use the date.

We have since gone back to the more recent version of the usps shipping, but we still have the problem of a blank white page after clicking checkout. Does anybody have an idea on what we can do to fix this?

Our website is onceinabluemoose.com/moweb

6 Aug 2013, 5:25 PM
#2
drbyte avatar

drbyte

Sensei

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

Re: blank page after USPS shipping module update

You haven't told us anything about your PHP version, your Zen Cart customizations, etc.
Please click Reply below and answer all the questions in the Posting Tips section.

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

6 Aug 2013, 6:12 PM
#3
westcoak avatar

westcoak

New Zenner

Join Date:
Sep 2008
Posts:
4
Plugin Contributions:
0

Re: blank page after USPS shipping module update

Oh sorry,

We're using Zen Cart 1.3.8a that we installed about 5 years ago.
We haven't done any addons or customizations short of our template.
Our server is on a Mac mini running OSX Server 10.6.8.
PHP version is 5.3.15 MYSQL is 14.12. DISTRIB 5.0.92

6 Aug 2013, 7:27 PM
#4
drbyte avatar

drbyte

Sensei

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

Re: blank page after USPS shipping module update

You can get rid of the date/time errors by putting a valid timezone into your php.ini file.

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

6 Aug 2013, 9:55 PM
#5
westcoak avatar

westcoak

New Zenner

Join Date:
Sep 2008
Posts:
4
Plugin Contributions:
0

Re: blank page after USPS shipping module update

We noticed that the timezone in the php.ini was blank so we added America/Anchorage and still are getting the same blank white page when clicking checkout.

7 Aug 2013, 12:35 AM
#6
drbyte avatar

drbyte

Sensei

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

Re: blank page after USPS shipping module update

Glad you fixed the timezone error.

Now what errors are appearing in the logs?
Have you added the debug-logging tool? from here: http://www.zen-cart.com/content.php?124-blank-page

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

11 Aug 2013, 10:54 PM
#7
westcoak avatar

westcoak

New Zenner

Join Date:
Sep 2008
Posts:
4
Plugin Contributions:
0

Re: blank page after USPS shipping module update

Snippit from the end of the log:

[07-Aug-2013 22:12:04 UTC] PHP Warning: date(): 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/Anchorage' for 'AKDT/-8.0/DST' instead in /Library/WebServer/Documents/MORA/moweb/includes/modules/shipping/usps.php on line 1583
[07-Aug-2013 22:12:04 UTC] PHP Fatal error: Uncaught exception 'Exception' with message 'DateTime::__construct(): 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/Anchorage' for 'AKDT/-8.0/DST' instead' in /Library/WebServer/Documents/MORA/moweb/includes/modules/shipping/usps.php:1586
Stack trace:
#0 /Library/WebServer/Documents/MORA/moweb/includes/modules/shipping/usps.php(1586): DateTime->__construct('tomorrow')
#1 /Library/WebServer/Documents/MORA/moweb/includes/modules/shipping/usps.php(756): usps->zen_usps_shipdate()
#2 /Library/WebServer/Documents/MORA/moweb/includes/modules/shipping/usps.php(267): usps->_getQuote()
#3 /Library/WebServer/Documents/MORA/moweb/includes/classes/shipping.php(129): usps->quote('')
#4 /Library/WebServer/Documents/MORA/moweb/includes/modules/pages/checkout_shipping/header_php.php(170): shipping->quote()
#5 /Library/WebServer/Documents/MORA/moweb/index.php(36): require('/Library/WebSer...')
#6 {main}
thrown in /Library/WebServer/Documents/MORA/moweb/includes/modules/shipping/usps.php on line 1586
[07-Aug-2013 22:12:04 UTC] PHP Deprecated: Function ereg() is deprecated in /Library/WebServer/Documents/MORA/moweb/includes/classes/db/mysql/query_factory.php on line 177
[07-Aug-2013 22:12:04 UTC] PHP Deprecated: Function ereg() is deprecated in /Library/WebServer/Documents/MORA/moweb/includes/classes/db/mysql/query_factory.php on line 177

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

drbyte

Sensei

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

Re: blank page after USPS shipping module update

WestcoAK:

We're using Zen Cart 1.3.8a that we installed about 5 years ago.
Right. And PHP versions have changed multiple times every year since then, including numerous big changes that require big changes to your very old version of Zen Cart.
Your problems are going to continue to get worse until you upgrade to a modern version of Zen Cart. So get that into your plans A.S.A.P.

WestcoAK:

[07-Aug-2013 22:12:04 UTC] PHP Fatal error: Uncaught exception 'Exception' with message 'DateTime::__construct(): 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/Anchorage' for 'AKDT/-8.0/DST'
Further, your USPS errors are caused by changes made to PHP in the way PHP handles dates, and your error messages indicate that you've still not fixed your timezone settings, so you'll need to fix that in order to proceed with using that module.

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