Forums / Upgrading from 1.3.x to 1.3.9 / blank page problem on checkout -- GV only

blank page problem on checkout -- GV only

Locked

Views: 3,400

Results 1 to 17 of 17
This thread is locked. New replies are disabled.
11 Dec 2007, 5:24 PM
#1
rasyr avatar

rasyr

Zen Follower

Join Date:
Aug 2006
Posts:
233
Plugin Contributions:
0

blank page problem on checkout -- GV only

Okay, so I set up a mirror of my store.

I got it running fine, and did the upgrade. everything went smoothly.

I went to do a test (using a Gift Certificate to pay), and went through the checkout process.

I confirmed the order and got a blank page for the following URL:
index.php?main_page=checkout_process

At that point, I had not uninstalled and re-installed Paypal, so I did that, and then did the same with my shipping modules as well (UPS and USPS).

Still get the same problem. I also tried it, without a GV, and that goes to Paypal like it is supposed to. Even paying partially with GV sends the order to Paypal like it should. It is when the whole order is paid via a GV that this happens.

BTW, when this does happen, the order is placed/processed, but the shopping cart is not emptied (hope that helps)

I have the following things installed:
Gift Certificate Admin
Sales Report
User Tracker
EZ Populate
Glossy Black Theme

And I have done a few small language file tweaks (though i seriously doubt that that is the problem). I have also added in a couple of side boxes and a best seller page (linked to the sidebox) -- none of these small tweaks should have broken anything.

Any help or suggestions would be helpful.

11 Dec 2007, 6:47 PM
#2
Kim avatar

Kim

Obaa-san

Join Date:
Jun 2003
Location:
West Coast, North America
Posts:
26,684
Plugin Contributions:
0

Re: blank page problem on checkout -- GV only

Is "Gift Certificate Admin" some sort of addon? If so, disable it and test again, please.

Please do not PM for support issues: a private solution doesn't benefit the community.

Be careful with unsolicited advice via email or PM - Make sure the person you are talking to is a reliable source.

11 Dec 2007, 7:10 PM
#3
rasyr avatar

rasyr

Zen Follower

Join Date:
Aug 2006
Posts:
233
Plugin Contributions:
0

Re: blank page problem on checkout -- GV only

Kim:

Is "Gift Certificate Admin" some sort of addon? If so, disable it and test again, please.

Yes, it is an add-on for editing Gift Vouchers (i.e. so I can add or subtract money to a person who has a GV). It is several stand-alone pages and it tells you to edit the gv_admin_dhtml.php file to add the items to admin menu.

It also had some optional changes that could be made to the
admin/gv_sent.php file changing a query and giving some conditional output as well.

It doesn't touch the DB, nor do I think it would be involved in the page where it is coming up blank, but I am disabling it and giving it a try.

11 Dec 2007, 7:12 PM
#4
rasyr avatar

rasyr

Zen Follower

Join Date:
Aug 2006
Posts:
233
Plugin Contributions:
0

Re: blank page problem on checkout -- GV only

And disabling it had absolutely no effect.

11 Dec 2007, 7:27 PM
#5
drbyte avatar

drbyte

Sensei

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

Re: blank page problem on checkout -- GV only

I just did a checkout using a GV to pay for the entire order, on a fresh v1.3.8 install.
No problems.

Blank pages are usually a result of syntax errors in PHP files, or incomplete files that failed to upload properly. Maybe you'll need to download all your files and compare them against what you had attempted to upload?

.
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 Dec 2007, 7:35 PM
#6
rasyr avatar

rasyr

Zen Follower

Join Date:
Aug 2006
Posts:
233
Plugin Contributions:
0

Re: blank page problem on checkout -- GV only

ugh

Can you at least give me a list of files that are involved at that stage?

In the meantime, I will try re-uploading some of the files and see if that helps.

11 Dec 2007, 8:42 PM
#7
rasyr avatar

rasyr

Zen Follower

Join Date:
Aug 2006
Posts:
233
Plugin Contributions:
0

Re: blank page problem on checkout -- GV only

Near as I can figure out it is loading the header_php.php file from the includes/modules/pages/checkout_process folder

Here is the code

<?php
/**
 * Checkout Process Page 
 * 
 * @package page
 * @copyright Copyright 2003-2006 Zen Cart Development Team
 * @copyright Portions Copyright 2003 osCommerce
 * @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
 * @version $Id: header_php.php 4276 2006-08-26 03:18:28Z drbyte $
 */ 
// This should be first line of the script:
  $zco_notifier->notify('NOTIFY_HEADER_START_CHECKOUT_PROCESS');

  require(DIR_WS_MODULES . zen_get_module_directory('checkout_process.php'));

// load the after_process function from the payment modules
  $payment_modules->after_process();

  $_SESSION['cart']->reset(true);

// unregister session variables used during checkout
  unset($_SESSION['sendto']);
  unset($_SESSION['billto']);
  unset($_SESSION['shipping']);
  unset($_SESSION['payment']);
  unset($_SESSION['comments']);
  $order_total_modules->clear_posts();//ICW ADDED FOR CREDIT CLASS SYSTEM

  // This should be before the zen_redirect:
  $zco_notifier->notify('NOTIFY_HEADER_END_CHECKOUT_PROCESS');

  zen_redirect(zen_href_link(FILENAME_CHECKOUT_SUCCESS, '', 'SSL'));

  require(DIR_WS_INCLUDES . 'application_bottom.php');
?>

And it is never reaching this line -- $_SESSION['cart']->reset(true);

It is dying somewhere above that.

But the only thing new in the includes/modules/checkout_process.php file is the creation of the session variables. At least according to my post winmerge files.

I am going to check it again, against a fresh copy of the file.

Can anybody tell me more about that "after_process()" function and where I can find out more about it?

I know from the URL in the browser that it is attempting to lead this sequence of files/pages.

I know from the header_php.php file, that the header is supposed to be clearing the cart, but I know from experience that it is not doing that.

This tells me that the problem has to be between where I click the continue button on the Confirmation page and where it calls for the cart to reset (the first thing that I can identify for sure that is not working).

Ideas? suggestions?

11 Dec 2007, 9:32 PM
#8
drbyte avatar

drbyte

Sensei

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

Re: blank page problem on checkout -- GV only

Have you tried re-uploading your ot modules in /includes/modules/order_total ?

.
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 Dec 2007, 9:37 PM
#9
rasyr avatar

rasyr

Zen Follower

Join Date:
Aug 2006
Posts:
233
Plugin Contributions:
0

Re: blank page problem on checkout -- GV only

I re-uploaded the whole modules folder.

Nor do I have any add-ons or anything like that regarding the order totals (which I know was a problem for a few others).

11 Dec 2007, 9:40 PM
#10
drbyte avatar

drbyte

Sensei

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

Re: blank page problem on checkout -- GV only

The "after_process()" runs the after_process() function in the actively selected payment module.

Have you compared your "classes" folder vs the master fileset?

.
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 Dec 2007, 10:05 PM
#11
rasyr avatar

rasyr

Zen Follower

Join Date:
Aug 2006
Posts:
233
Plugin Contributions:
0

Re: blank page problem on checkout -- GV only

will do that...

am in the process (still) of downloading the files from the test site.

Will start doing comparisons and such as soon as it is complete.

and the only payment module installed at the moment is the Paypal module (and yes, I have uninstalled and re-installed it - a couple of times.. hehe)

12 Dec 2007, 12:55 PM
#12
rasyr avatar

rasyr

Zen Follower

Join Date:
Aug 2006
Posts:
233
Plugin Contributions:
0

Re: blank page problem on checkout -- GV only

DrByte:

The "after_process()" runs the after_process() function in the actively selected payment module.

Have you compared your "classes" folder vs the master fileset?

The contents of the classes folder compares as identical to the default fileset.

I also checked using some other payment modules, and anything purchased with GV seems a problem (check/money order, and offline CC payment). These other modules had problems even if I only paid partially with GV (unlike the paypal which went on through to paypal with a partial GV payment)

Any other ideas or suggestions?

12 Dec 2007, 1:10 PM
#13
rasyr avatar

rasyr

Zen Follower

Join Date:
Aug 2006
Posts:
233
Plugin Contributions:
0

Re: blank page problem on checkout -- GV only

I am going to try deleting my test store completely, setting it back up, and then re-upgrading it.

But before I re-upgrade, I am going to verify that payment via GV works fully, and I am going to be sure to uninstall all payment and shipping modules prior to the upgrade. I will set them back up after I upgrade it and see if I get the same problems.

It's a test site, so I have no compunctions about recreating it from my live store backups. :)

12 Dec 2007, 2:55 PM
#14
rasyr avatar

rasyr

Zen Follower

Join Date:
Aug 2006
Posts:
233
Plugin Contributions:
0

Re: blank page problem on checkout -- GV only

ok, store version 1.3.7 re-established. Paying fully with GV works fine, no white screen at all.

Next step is to uninstall the payment module and the shipping modules. And then to redo the upgrade and re-install them afterwards.

Then to check to see of the problem persists.

12 Dec 2007, 4:00 PM
#15
rasyr avatar

rasyr

Zen Follower

Join Date:
Aug 2006
Posts:
233
Plugin Contributions:
0

Re: blank page problem on checkout -- GV only

Ok, I am going through the upgrade and I noticed the red X in the image below.

It occurred to me that perhaps this was causing my problems?

Now, my live site is on a windows server, and this test site is on a Unix server. However, when I copied the DB and the files over from the my backup of the live site, I changed nothing (well, the configure.php pages are for THIS site and not the live site) and it worked perfectly.

But, is there something regarding that session.use_trans_sid being turned on that could be causing my problems here? (I checked and on my live site, this is actually turned off)

But even with that red X, I clicked on the Database Upgrade button and it said that everything went smoothly.

12 Dec 2007, 6:01 PM
#16
drbyte avatar

drbyte

Sensei

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

Re: blank page problem on checkout -- GV only

As described in the popup help text about session.use_trans_sid, if it's "on", it will potentially cause problems with proper session behavior.
Typical symptoms would be the inability to actually log in or keep items in the shopping cart.
I would not expect it to cause blank screens only for GV checkout.

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

12 Dec 2007, 7:06 PM
#17
rasyr avatar

rasyr

Zen Follower

Join Date:
Aug 2006
Posts:
233
Plugin Contributions:
0

Re: blank page problem on checkout -- GV only

well, I am now working on setting up a test cart on my company's server (rather than running the test on a unix server, to see if that does make a difference.