Results 1 to 8 of 8
  1. #1
    Join Date
    Aug 2008
    Location
    Marion, Indiana
    Posts
    18
    Plugin Contributions
    0

    Default Blank Page turned to server error during checkout process

    During the checkout process, I run into a small problem-- I get a blank page, but then, I installed the Debug Error Logging Utility add-on, and it is basically a 500 - Internal Server Error

    I use Zen Cart V. 1.38
    I belive the problem may be related to my server or GoDaddy.
    Aeverine Nieves
    NO SIR GIFTS

  2. #2
    Join Date
    Aug 2008
    Location
    Marion, Indiana
    Posts
    18
    Plugin Contributions
    0

    Default Re: Blank Page turned to server error during checkout process

    This is the error
    [01-Apr-2009 13:32:39] PHP Parse error: syntax error, unexpected '*' in D:\Hosting\3124114\html\store\includes\modules\pages\checkout_confirmation\heade r_php.php on line 72
    Aeverine Nieves
    NO SIR GIFTS

  3. #3
    Join Date
    Oct 2006
    Location
    Alberta, Canada
    Posts
    4,151
    Plugin Contributions
    0

    Default Re: Blank Page turned to server error during checkout process

    Why not just remove the * as indicated?

    The error msg. tells the exact file and line number.
    The learning is in the doing.

    Potent Products

  4. #4
    Join Date
    Aug 2008
    Location
    Marion, Indiana
    Posts
    18
    Plugin Contributions
    0

    Default Re: Blank Page turned to server error during checkout process

    Quote Originally Posted by Website Rob View Post
    Why not just remove the * as indicated?

    The error msg. tells the exact file and line number.
    I am having trouble finding that particular line number since I use notepad.
    Aeverine Nieves
    NO SIR GIFTS

  5. #5
    Join Date
    Oct 2006
    Location
    Alberta, Canada
    Posts
    4,151
    Plugin Contributions
    0

    Default Re: Blank Page turned to server error during checkout process

    Using the same file from a default install, I see:

    70 // load the selected payment module
    71 require(DIR_WS_CLASSES . 'payment.php');
    72 if ($credit_covers) {

    HTH
    The learning is in the doing.

    Potent Products

  6. #6
    Join Date
    Aug 2008
    Location
    Marion, Indiana
    Posts
    18
    Plugin Contributions
    0

    Default Re: Blank Page turned to server error during checkout process

    Quote Originally Posted by nsgowner View Post
    I am having trouble finding that particular line number since I use notepad.
    I believe it has something to do with that Rewards or Sore Credit or mod I installed

    Looking at my checkout_confirmation/header_php.php file starting from line 70 onward

    // load the selected payment module
    require(DIR_WS_CLASSES . 'payment.php');
    * // BEGIN REWARDS POINTS
    if ($_SESSION['credit_covers']) $credit_covers = true;
    // END REWARDS POINTS

    if ($credit_covers) {

    unset($_SESSION['payment']);
    $_SESSION['payment'] = '';
    }

    //@debug echo ($credit_covers == true) ? 'TRUE' : 'FALSE';

    $payment_modules = new payment($_SESSION['payment']);
    $payment_modules->update_status();
    if (($_SESSION['payment'] == '' && !$credit_covers) || (is_array($payment_modules->modules)) && (sizeof($payment_modules->modules) > 1) && (!is_object($$_SESSION['payment'])) && (!$credit_covers) ) {
    $messageStack->add_session('checkout_payment', ERROR_NO_PAYMENT_MODULE_SELECTED, 'error');
    }

    if (is_array($payment_modules->modules)) {
    $payment_modules->pre_confirmation_check();
    }

    if ($messageStack->size('checkout_payment') > 0) {
    zen_redirect(zen_href_link(FILENAME_CHECKOUT_PAYMENT, '', 'SSL'));
    }
    //echo $messageStack->size('checkout_payment');
    //die('here');

    // Stock Check
    $flagAnyOutOfStock = false;
    $stock_check = array();
    if (STOCK_CHECK == 'true') {
    for ($i=0, $n=sizeof($order->products); $i<$n; $i++) {
    if ($stock_check[$i] = zen_check_stock($order->products[$i]['id'], $order->products[$i]['qty'])) {
    $flagAnyOutOfStock = true;
    }
    }
    // Out of Stock
    if ( (STOCK_ALLOW_CHECKOUT != 'true') && ($flagAnyOutOfStock == true) ) {
    zen_redirect(zen_href_link(FILENAME_SHOPPING_CART));
    }
    }

    // update customers_referral with $_SESSION['gv_id']
    if ($_SESSION['cc_id']) {
    $discount_coupon_query = "SELECT coupon_code
    FROM " . TABLE_COUPONS . "
    WHERE coupon_id = :couponID";

    $discount_coupon_query = $db->bindVars($discount_coupon_query, ':couponID', $_SESSION['cc_id'], 'integer');
    $discount_coupon = $db->Execute($discount_coupon_query);

    $customers_referral_query = "SELECT customers_referral
    FROM " . TABLE_CUSTOMERS . "
    WHERE customers_id = :customersID";

    $customers_referral_query = $db->bindVars($customers_referral_query, ':customersID', $_SESSION['customer_id'], 'integer');
    $customers_referral = $db->Execute($customers_referral_query);

    // only use discount coupon if set by coupon
    if ($customers_referral->fields['customers_referral'] == '' and CUSTOMERS_REFERRAL_STATUS == 1) {
    $sql = "UPDATE " . TABLE_CUSTOMERS . "
    SET customers_referral = :customersReferral
    WHERE customers_id = :customersID";

    $sql = $db->bindVars($sql, ':customersID', $_SESSION['customer_id'], 'integer');
    $sql = $db->bindVars($sql, ':customersReferral', $discount_coupon->fields['coupon_code'], 'string');
    $db->Execute($sql);
    } else {
    // do not update referral was added before
    }
    }

    if (isset($$_SESSION['payment']->form_action_url)) {
    $form_action_url = $$_SESSION['payment']->form_action_url;
    } else {
    $form_action_url = zen_href_link(FILENAME_CHECKOUT_PROCESS, '', 'SSL');
    }

    // if shipping-edit button should be overridden, do so
    $editShippingButtonLink = zen_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL');
    if (method_exists($$_SESSION['payment'], 'alterShippingEditButton')) {
    $theLink = $$_SESSION['payment']->alterShippingEditButton();
    if ($theLink) $editShippingButtonLink = $theLink;
    }
    // deal with billing address edit button
    $flagDisablePaymentAddressChange = false;
    if (isset($$_SESSION['payment']->flagDisablePaymentAddressChange)) {
    $flagDisablePaymentAddressChange = $$_SESSION['payment']->flagDisablePaymentAddressChange;
    }


    require(DIR_WS_MODULES . zen_get_module_directory('require_languages.php'));
    $breadcrumb->add(NAVBAR_TITLE_1, zen_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL'));
    $breadcrumb->add(NAVBAR_TITLE_2);

    // This should be last line of the script:
    $zco_notifier->notify('NOTIFY_HEADER_END_CHECKOUT_CONFIRMATION');
    ?>
    I may have to adjust something in this file
    Aeverine Nieves
    NO SIR GIFTS

  7. #7
    Join Date
    Aug 2008
    Location
    Marion, Indiana
    Posts
    18
    Plugin Contributions
    0

    Default Re: Blank Page turned to server error during checkout process

    ERROR HAS BEEN FIXED After a test order. One minor problem is E-mail Transport.
    Aeverine Nieves
    NO SIR GIFTS

  8. #8
    Join Date
    Oct 2006
    Location
    Alberta, Canada
    Posts
    4,151
    Plugin Contributions
    0

    Default Re: Blank Page turned to server error during checkout process

    To help others following this thread it is a common courtesy to provide what worked for fixing the problem.

    // load the selected payment module
    require(DIR_WS_CLASSES . 'payment.php');
    * // BEGIN REWARDS POINTS
    if ($_SESSION['credit_covers']) $credit_covers = true;
    // END REWARDS POINTS

    As line #72 in your file is marked in Red above, is it safe to presume you removed the * at the beginning?
    The learning is in the doing.

    Potent Products

 

 

Similar Threads

  1. Checkout process -- The page cannot be displayed error
    By jdl in forum Addon Payment Modules
    Replies: 6
    Last Post: 2 Feb 2009, 02:57 PM
  2. Blank page in checkout process - Help please
    By pete3006 in forum Upgrading from 1.3.x to 1.3.9
    Replies: 1
    Last Post: 3 Apr 2008, 07:25 PM
  3. Blank Page On Checkout -- turned out to be Optional Shipping Insurance mod
    By 2004g35 in forum Upgrading from 1.3.x to 1.3.9
    Replies: 0
    Last Post: 31 Dec 2007, 12:16 AM
  4. Error on front page only with featured products turned on
    By 0be1 in forum Upgrading from 1.2 to 1.3.x
    Replies: 1
    Last Post: 21 Oct 2007, 01:48 PM
  5. Blank Pages - Registration confirmation and Checkout process
    By Duminas in forum Managing Customers and Orders
    Replies: 0
    Last Post: 18 Oct 2006, 01:49 AM

Bookmarks

Posting Permissions

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