Zen Cart Logo
Forums / Built-in Shipping and Payment Modules / Blank Screen On Checkout After Selecting Shipping Method

Blank Screen On Checkout After Selecting Shipping Method

Views: 1,369

Results 1 to 3 of 3
1 Sep 2011, 1:10 PM
#1
andrewbt avatar

andrewbt

New Zenner

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

Blank Screen On Checkout After Selecting Shipping Method

I am in the processes of setting up my first zen cart (v1.3.9h). Installation was done by Godaddy when I purchased the domain and set up hosting for this site.

http://glutenfreeartisanbakery.com/zencart/

Until now all has been fine but I just installed the module for authorize.net AIM to process payments. I got the login id, transaction key & md5 hash from them and put it all in.

When I select shipping option to test checkout it goes to a blank page when it should be going to the credit card screen.

Log file gives this message:

[30-Aug-2011 06:18:07] PHP Warning: Cannot modify header information - headers already sent by (output started at /home/content/30/8154830/html/zencart/includes/languages/english/modules/shipping/flatwest.php:53) in /home/content/30/8154830/html/zencart/includes/functions/functions_general.php on line 45

flatwest.php is a duplicate of the flat.php files that I created to add a 2nd flat rate charge applicable to shipping orders on the west coast which I defined by adding a new zone definition with specific states in it. When I duplicated the 2 flat.php files in

/includes/modules/shipping/flat.php
/includes/languages/english/modules/shipping/flat.php

I changed all references from FLAT to FLATWEST as I read on this forum somewhere.

Is this causing my error? I appreciate any advice!

Thanks

Andrew Beattie

1 Sep 2011, 1:37 PM
#2
stevesh avatar

stevesh

Black Belt

Join Date:
Feb 2005
Location:
Lansing, Michigan USA
Posts:
19,793
Plugin Contributions:
2

Re: Blank Screen On Checkout After Selecting Shipping Method

As the error message says, the problem is on line 53 of flatwest.php. Check that file around that area and compare lines 50-56 or so (text editors don't always number lines the same) to the same lines of the original flat.php.

29 Aug 2013, 11:36 PM
#3
nazca avatar

nazca

New Zenner

Join Date:
Aug 2013
Location:
California
Posts:
22
Plugin Contributions:
0

Re: Blank Screen On Checkout After Selecting Shipping Method

stevesh:

As the error message says, the problem is on line 53 of flatwest.php. Check that file around that area and compare lines 50-56 or so (text editors don't always number lines the same) to the same lines of the original flat.php.

I just went through the same problem. I coulden't get PHP to output an error but in my experience usually a blank screen in zen cart means that you are trying to output some text before zen cart is outputting headers. Somewhere.

I made a custom shipping module. I wanted to get the id of the logged in customer at one point and for troubleshooting had a line like this in there.

echo $_SESSION['customer_id'] ;

well it was outputting the customer id just like I intended it too. But the shipping module was loading before any zen cart template files were and therefor before the headers. Causing php to die and not execute anything past the echo.

Simply commenting out the echo fixed my problem.