Rex Hotel- NIght
  • Camera: Canon EOS 7D
  • Created: February 01, 2010 - 18:04
  • Credit: John Brackett
  • Shutter: 0.1
  • ISO: 3200
  • Aperture: 6.3
  • Focal Length: 28
Rubicon Estates Old Train Station
  • Camera: Canon EOS 7D
  • Created: May 31, 2010 - 01:53
  • Shutter: 0.005
  • ISO: 250
  • Aperture: 5
  • Focal Length: 28
Ephesus Library Inscription
  • Camera: Canon EOS 30D
  • Created: September 02, 2009 - 14:42
  • Shutter: 0.005
  • ISO: 250
  • Aperture: 14
  • Focal Length: 20
Discoveries Monument Lisbon
  • Camera: Canon EOS 30D
  • Created: September 11, 2007 - 16:15
  • Shutter: 0.003125
  • ISO: 200
  • Aperture: 13
  • Focal Length: 38
Dramatic BW shot of the Fort Sumter Pilot boat at sunset
  • Camera: Canon EOS 5D Mark II
  • Created: December 24, 2011 - 04:41
  • Shutter: 0.00625
  • ISO: 250
  • Aperture: 5.6
  • Focal Length: 35
Steeple of St. Philips Church from an Alley.
  • Camera: Canon EOS 5D Mark II
  • Created: December 24, 2011 - 05:02
  • Shutter: 0.003125
  • ISO: 640
  • Aperture: 4
  • Focal Length: 100
show sidebar & content

Zen Cart Blank Checkout Page Error- Solved!

25 Apr 2008 / 7 Comments / in Blog

cart2I was recently preparing the launch of a new Zen Cart store for a client when encountered a blank page on checkout. There was no error, just a blank page. Baffled, I reloaded the CHECKOUT page and processed another test transaction only to see the blank page appear farther up the checkout process on the CART page.

The admin showed the orders were being processed, so the data was hitting the database. I had no where to go, and was looking at either systematically going through each template file and each database table to see if I could find any evidence of what was causing the errors.

The more I thought about doing this the reality of the tedious hours it would take to just find it began to sink in. I did research and found other developers that had encountered this issue, but none seemed to offer any clear path that would fix my issue. Basically they were even more lost than I was on the blank page horror.

Finally I found the Zen Cart Error-Logging Utility. This little app saved the day and boosted my confidence for future Zen Cart installs. First, the download page explains that the blank page effect is the result of PHP syntax errors. This can happen by tinkering around in the template files and mistyping an operator. Ok, that sounded good. However, I had purposely set my customizations from the admin just for this reason.

Apparently Zen Cart version 1.3.8 has this bug. It’s recommended to upgrade to 1.3.8a, which I had already done. I was still getting the error.

I proceeded to download and install the Debugging Tool per their instructions.

I ran the transaction again and returned this error in the log file

  • [04-Apr-2008 13:34:22] PHP Warning: Cannot modify header information - headers already sent by
    (output started at /home/broadcas/public_html/catalog/includes/languages/
    english.php:1401)
    in/home/broadcas/public_html/catalog/includes/init_includes/
    init_templates.php on line 78
  • [04-Apr-2008 13:34:22] PHP Warning: Cannot modify header information - headers already sent by
    (output started at /home/broadcas/public_html/catalog/includes/languages/
    english.php:1401)
    in /home/broadcas/public_html/catalog/includes/functions/
    functions_general.php on line 44\

I replaced these files and thought I got it working until the confirmation page came up blank. After more research I discovered that functions_general.php is not the correct file to swap, it’s english.php in the languages file. At this point I just uploaded the whole damn languages folder from a fresh download of Zen Cart 1.3.8a. Boom! it all worked. It tested and retested with no errors.

If you run into this issue, or any other Zen Cart weirdness, please download this file. It will save tons of time and frustration, when you need to squash little pain-in-the-ass bugs like this.

Tags: , ,

7 Responses to Zen Cart Blank Checkout Page Error- Solved!

  1. Jaco says:

    Hi Im getting a blank page after submitting a contact form, registration form, and going to checkout, which file must I replace? Must I upload a fresh enghlish.php file? where can i find just the 1 file? I just installed the latest zen cart version

    Regards
    Jaco

  2. John Brackett says:

    You have to use the debugger. Likely it’s a piece of PHP code that’s broken or has a simple syntax error.

  3. Chip says:

    OK… I had the same problem. Do this… go get the new fileset A (per above). You have done something during an installation of an editor or something … so start with the includes/lang/english.php replace that.

    Next (if that does not work)

    includes/application_top.php replace with new. This worked for me. So if that does not work for you just follow the output. HINT. when the php say REQUIRE go to that file then it will keep requiring until you get to the yourTemplate/common/top and bottom I hope this helps

    If you don’t understand the above then you should find a programmer that knows php. Thanks!

  4. LadyLove says:

    I keep getting a HTTP 404 – File not found. ’This link appears broken’ error for my site will the “Zen Cart Error-Logging Utility” help resolve this problem. I contacted my web host on the issue & they tried to blame it on a template I am using but I am sure its not the template.

  5. Sonny Mataka says:

    Hey Thanks for your help man.. i was buggin out trying to figure out why i could not get PHP errors to output on
    zencart.. this is a real life saver considering my time is friggin crunched as it is!

    Sonny!

  6. imane says:

    great!

    It works

    thanks a million

  7. kyli says:

    GREAT !!! thanks a lot !!

Leave a Reply

Want to join the discussion?
Feel free to contribute!

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>