Results 1 to 3 of 3
  1. #1
    Join Date
    Sep 2011
    Posts
    1
    Plugin Contributions
    0

    Default 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

  2. #2
    Join Date
    Feb 2005
    Location
    Lansing, Michigan USA
    Posts
    20,021
    Plugin Contributions
    3

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

  3. #3
    Join Date
    Aug 2013
    Location
    California
    Posts
    22
    Plugin Contributions
    0

    Default Re: Blank Screen On Checkout After Selecting Shipping Method

    Quote Originally Posted by stevesh View Post
    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.

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

 

 

Similar Threads

  1. v154 Blank Screen After Upgrade (fixed) but now blank screen after login!
    By Kias Henry in forum Upgrading to 1.5.x
    Replies: 6
    Last Post: 23 Jun 2015, 07:32 PM
  2. v150 Blank screen after unsuccessful checkout
    By derbypip in forum General Questions
    Replies: 1
    Last Post: 5 Oct 2013, 09:42 PM
  3. Replies: 6
    Last Post: 11 Jan 2013, 12:51 PM
  4. Blank Screen after Checkout/login...
    By utopiko in forum General Questions
    Replies: 13
    Last Post: 16 Jun 2009, 11:01 PM
  5. Blank screen After checkout
    By judah in forum General Questions
    Replies: 5
    Last Post: 20 Oct 2008, 11:44 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg