equies Posted February 13, 2003 Share Posted February 13, 2003 Hi all, When I go from the shopping cart to checkout (https://smokeandpayless.securesites.com/checkout_payment.php?) I get a blank page on the live server after the ssl security warning window(it's working on localhost). Funny thing is that when I look at the file structure the payment modules are there, but when I go to OsC Admin to enable the modules they just don't show at all. I've looked at my includes/configure file but cannot see anything wrong. Wonder if you guys can suggest what's wrong, so here it is: I've also included checkout_payment.php, just in case... <?php/* osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright © 2002 osCommerce Released under the GNU General Public License */ // Define the webserver and path parameters // * DIR_FS_* = Filesystem directories (local/physical) // * DIR_WS_* = Webserver directories (virtual/URL) define('HTTP_SERVER', 'http://smokeandpayless.chainreactionweb.com'); // eg, http://localhost - should not be NULL for productive servers define('HTTPS_SERVER', 'https://smokeandpayless.securesites.com'); // eg, https://localhost - should not be NULL for productive servers define('ENABLE_SSL', true); // secure webserver for checkout procedure? This is the one to disable or enable SSL define('DIR_WS_CATALOG', '/'); // absolute path required define('DIR_WS_IMAGES', 'images/'); define('DIR_WS_ICONS', DIR_WS_IMAGES . 'icons/'); define('DIR_WS_INCLUDES', 'includes/'); // If "URL fopen wrappers" are enabled in PHP (which they are in the default configuration), this can be a URL instead of a local pathname define('DIR_WS_BOXES', DIR_WS_INCLUDES . 'boxes/'); define('DIR_WS_FUNCTIONS', DIR_WS_INCLUDES . 'functions/'); define('DIR_WS_CLASSES', DIR_WS_INCLUDES . 'classes/'); define('DIR_WS_MODULES', DIR_WS_INCLUDES . 'modules/'); define('DIR_WS_LANGUAGES', DIR_WS_INCLUDES . 'languages/'); define('DIR_WS_DOWNLOAD_PUBLIC', DIR_WS_CATALOG . 'pub/'); define('DIR_FS_DOCUMENT_ROOT', '/usr/local/etc/httpd/vhosts/smokeandpayless.com/htdocs'); define('DIR_FS_CATALOG', '/usr/local/etc/httpd/vhosts/smokeandpayless.com/htdocs/'); define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/'); define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/'); // define our database connection define('DB_SERVER', 'localhost'); // eg, localhost - should not be NULL for productive servers define('DB_SERVER_USERNAME', 'xxxxxxxxxxxxx'); define('DB_SERVER_PASSWORD', 'xxxxxxxxxx'); define('DB_DATABASE', 'xxxxxxxxxxxxxx'); define('USE_PCONNECT', 'false'); // use persistent connections? define('STORE_SESSIONS', ''); // leave empty '' for default handler or set to 'mysql' ?> And now for checkout_payment.php: <?php/* $Id: checkout_payment.php,v 1.96 2002/07/21 23:38:57 hpdl Exp $ osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright © 2002 osCommerce Released under the GNU General Public License */ require('includes/application_top.php'); if (!tep_session_is_registered('customer_id')) { $navigation->set_snapshot(); tep_redirect(tep_href_link(FILENAME_LOGIN, '', 'SSL')); } // Check if there is something in the cart if ($cart->count_contents() == 0) { tep_redirect(tep_href_link(FILENAME_SHOPPING_CART, '', 'NONSSL')); } // Stock Check if ( (STOCK_CHECK == 'true') && (STOCK_ALLOW_CHECKOUT != 'true') ) { $products = $cart->get_products(); $any_out_of_stock = 0; for ($i=0; $i<sizeof($products); $i++) { if (tep_check_stock($products[$i]['id'], $products[$i]['quantity'])) { $any_out_of_stock = 1; } } if ($any_out_of_stock) { tep_redirect(tep_href_link(FILENAME_SHOPPING_CART)); } } // Register needed checkout variables if (!tep_session_is_registered('sendto')) { $sendto = $customer_default_address_id; tep_session_register('sendto'); } if ($HTTP_POST_VARS['sendto']) { $sendto = $HTTP_POST_VARS['sendto']; } if ($HTTP_POST_VARS['shipping_quote_all'] == '0') { $shipping_quote_all = '0'; } else { $shipping_quote_all = '1'; } $address = tep_db_query("select entry_postcode as postcode, entry_country_id as country_id from " . TABLE_ADDRESS_BOOK . " where customers_id = '" . $customer_id . "' and address_book_id = '" . $sendto . "'"); $address_values = tep_db_fetch_array($address); $total_weight = $cart->show_weight(); $total_count = $cart->count_contents(); // load shipping modules as objects require(DIR_WS_CLASSES . 'shipping.php'); $shipping_modules = new shipping; $shipping_modules->quote(); if ( ($shipping_quoted == '') && (MODULE_SHIPPING_INSTALLED) ) { // Null if no quotes selected tep_redirect(tep_href_link(FILENAME_CHECKOUT_ADDRESS, '' , 'SSL')); } require(DIR_WS_LANGUAGES . $language . '/' . FILENAME_CHECKOUT_PAYMENT); $breadcrumb->add(NAVBAR_TITLE_1, tep_href_link(FILENAME_CHECKOUT_ADDRESS, '', 'SSL')); $breadcrumb->add(NAVBAR_TITLE_2); // load payment modules as objects require(DIR_WS_CLASSES . 'payment.php'); $payment_modules = new payment; ?> <!doctype html public "-//W3C//DTD HTML 4.01 Transitional//EN"> <html <?php echo HTML_PARAMS; ?>> <head> <meta http-equiv="Content-Type" content="text/html; charset=<?php echo CHARSET; ?>"> <title><?php echo TITLE; ?></title> <base href="<?php echo (getenv('HTTPS') == 'on' ? HTTPS_SERVER : HTTP_SERVER) . DIR_WS_CATALOG; ?>"> <link rel="stylesheet" type="text/css" href="stylesheet.css"> <script language="javascript"><!-- function check_form() { var error = 0; var error_message = "<?php echo JS_ERROR; ?>"; var payment_value = null; <?php // load the javascript_validation function from the payment modules if (MODULE_PAYMENT_INSTALLED) { ?> if (document.payment.payment.length) { for (var i = 0; i < document.payment.payment.length; i++) if (document.payment.payment.checked) payment_value = document.payment.payment.value; } else if (document.payment.payment.checked) { payment_value = document.payment.payment.value; } else if (document.payment.payment.value) { payment_value = document.payment.payment.value; } <?php echo $payment_modules->javascript_validation(); } if (tep_count_payment_modules() > 1) { ?> if (payment_value == null) { error_message = error_message + "<?php echo JS_ERROR_NO_PAYMENT_MODULE_SELECTED; ?>"; error = 1; } <?php } ?> if (error == 1) { alert(error_message); return false; } else { return true; } } //--></script> </head> <body marginwidth="0" marginheight="0" topmargin="0" bottommargin="0" leftmargin="0" rightmargin="0"> <!-- header //--> <?php require(DIR_WS_INCLUDES . 'header.php'); ?> <!-- header_eof //--> <!-- body //--> <table border="0" width="100%" cellspacing="3" cellpadding="3"> <tr> <td width="<?php echo BOX_WIDTH; ?>" valign="top"><table border="0" width="<?php echo BOX_WIDTH; ?>" cellspacing="0" cellpadding="2"> <!-- left_navigation //--> <?php require(DIR_WS_INCLUDES . 'column_left.php'); ?> <!-- left_navigation_eof //--> </table></td> <!-- body_text //--> <td width="100%" valign="top"><form name="payment" method="post" action="<?php echo tep_href_link(FILENAME_CHECKOUT_CONFIRMATION, '', 'SSL'); ?>" onsubmit="return check_form();"><table border="0" width="100%" cellspacing="0" cellpadding="0"> <tr> <td><table border="0" width="100%" cellspacing="0" cellpadding="0"> <tr> <td class="pageHeading"><?php echo HEADING_TITLE; ?></td> <td class="pageHeading" align="right"><?php echo tep_image(DIR_WS_IMAGES . 'table_background_payment.gif', HEADING_TITLE, HEADING_IMAGE_WIDTH, HEADING_IMAGE_HEIGHT); ?></td> </tr> </table></td> </tr> <tr> <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td> </tr> <?php if ($HTTP_GET_VARS['payment_error']) { ?> <tr> <td class="main"><?php echo $payment_modules->output_error(); ?></td> </tr> <?php } ?> <tr> <td><table border="0" width="100%" cellspacing="0" cellpadding="2"> <?php if (MODULE_PAYMENT_INSTALLED) { ?> <tr> <td><table border="0" width="100%" cellspacing="0" cellpadding="0"> <tr> <td class="tableHeading"><?php echo TABLE_HEADING_METHODS; ?></td> <td class="tableHeading" align="right"><?php if (tep_count_payment_modules() > 1) echo TABLE_HEADING_SELECTION; ?></td> </tr> </table></td> </tr> <tr> <td><?php echo tep_draw_separator(); ?></td> </tr> <tr> <td><?php echo $payment_modules->selection(); ?></td> </tr> <?php } ?> <tr> <td><table border="0" width="100%" cellspacing="0" cellpadding="2"> <tr> <td class="tableHeading"><?php echo TABLE_HEADING_DELIVERY_ADDRESS; ?></td> </tr> <tr> <td><?php echo tep_draw_separator(); ?></td> </tr> <tr> <td class="main"><?php echo tep_address_label($customer_id, $sendto, 1, ' ', '<br>'); ?></td> </tr> </table></td> </tr> <?php if (MODULE_SHIPPING_INSTALLED) { $shipping_modules->cheapest(); ?> <tr> <td><br><table border="0" width="100%" cellspacing="0" cellpadding="0"> <tr> <td class="tableHeading"><?php echo TABLE_HEADING_SHIPPING_INFO; ?></td> <td class="tableHeading" align="right" class="tableHeading"><?php if (tep_count_shipping_modules() > 1) echo TABLE_HEADING_SHIPPING_QUOTE; ?></td> </tr> </table></td> </tr> <tr> <td><?php echo tep_draw_separator(); ?></td> </tr> <tr> <td><?php echo $shipping_modules->display(); ?></td> </tr> <?php } ?> <tr> <td class="main"><br><b><?php echo TABLE_HEADING_COMMENTS; ?></b></td> </tr> <tr> <td><?php echo tep_draw_separator(); ?></td> </tr> <tr> <td><?php echo tep_draw_textarea_field('comments', 'virtual', '60', '5'); ?></td> </tr> <tr> <td class="main"><br><table border="0" width="100%" cellspacing="0" cellpadding="2"> <tr> <td class="main"><a href="<?php echo tep_href_link(FILENAME_CHECKOUT_ADDRESS, '', 'SSL'); ?>"><?php echo tep_image_button('button_shipping_options.gif', IMAGE_BUTTON_SHIPPING_OPTIONS); ?></a></td> <td class="main" align="center"><a href="<?php echo tep_href_link(FILENAME_CHECKOUT_ADDRESS, '', 'SSL'); ?>"><?php echo tep_image_button('button_change_address.gif', IMAGE_BUTTON_CHANGE_ADDRESS); ?></a></td> <td class="main" align="right"><?php echo tep_image_submit('button_continue.gif', IMAGE_BUTTON_CONTINUE); ?></td> </tr> </table></td> </tr> <tr> <td align="right" class="checkoutBar"><br>[ <?php echo CHECKOUT_BAR_DELIVERY_ADDRESS; ?> | <span class="checkoutBarHighlighted"><?php echo CHECKOUT_BAR_PAYMENT_METHOD; ?></span> | <?php echo CHECKOUT_BAR_CONFIRMATION; ?> | <?php echo CHECKOUT_BAR_FINISHED; ?> ]</td> </tr> </table></td> </tr> </table> </form></td> <!-- body_text_eof //--> <td width="<?php echo BOX_WIDTH; ?>" valign="top"><table border="0" width="<?php echo BOX_WIDTH; ?>" cellspacing="0" cellpadding="2"> <!-- right_navigation //--> <?php require(DIR_WS_INCLUDES . 'column_right.php'); ?> <!-- right_navigation_eof //--> </table></td> </tr> </table> <!-- body_eof //--> <!-- footer //--> <?php require(DIR_WS_INCLUDES . 'footer.php'); ?> <!-- footer_eof //--> <br> </body> </html> <?php require(DIR_WS_INCLUDES . 'application_bottom.php'); ?> Anyone got any idea what's wrong? If you need anymore info... just ask, as I would not know where else to look for this problem. :oops: Any help greatly appreciated!!!! Philippe www.smokeandpayless.com (U.K.) Link to comment Share on other sites More sharing options...
Huy Posted February 13, 2003 Share Posted February 13, 2003 I had the exact same/similar problem as you. Files are in the directories, everything's there, but it can't do a checkout_confirmation, right? Just a blank page? I am almost certain I know your problem. My problem was due to incorrect file permissions on the modules/order totals. It wasn't able to access the total for everything and therefore isn't able to process the order. None of the payment/order total modules would show up on the Admin/modules panel right????? Do this. Check your file permissions on catalog/includes/modules/order_totals see if the permissions is set at 755. If not, set it to that... I am not positive whether 755 is the proper value, but if I'm wrong, someone correct me. Verify by going back to your admin/modules panel...the modules should then show up. Hope this helps... Link to comment Share on other sites More sharing options...
equies Posted February 14, 2003 Author Share Posted February 14, 2003 checked permissions for order_totals: they're set to 755 :roll: whereto now? anyone? Link to comment Share on other sites More sharing options...
Huy Posted February 14, 2003 Share Posted February 14, 2003 If you haven't already done the chmod/permissions for the other modules, do that as well. I'm almost certain that it's got to do with your permissions. Or, if you've got multiple files of the same thing, make sure you remove the extra ones. I had the problem of modules not showing up and these were the two things I did to resolve my problem. Link to comment Share on other sites More sharing options...
Guest Posted September 30, 2008 Share Posted September 30, 2008 Just an update. I had exactly this problem - a blank page on trying to checkout (checkout_confirmation.php wasn't displaying). Just discovered its because when I FTPed my store to my web server, the contents of directory includes/modules/order_total/ hadn't been uploaded. When I uploaded them, it worked fine :-) HTH somebody else! Lucy Link to comment Share on other sites More sharing options...
alymirza Posted October 25, 2008 Share Posted October 25, 2008 Just an update. I had exactly this problem - a blank page on trying to checkout (checkout_confirmation.php wasn't displaying). Just discovered its because when I FTPed my store to my web server, the contents of directory includes/modules/order_total/ hadn't been uploaded. When I uploaded them, it worked fine :-) HTH somebody else! Lucy Hi, I am getting the same prb....i thinks its smthng related to oscommerce software as so many ppl are gettn this problem... i tried all the method mentioned above bt nothing worked...please help us out Link to comment Share on other sites More sharing options...
Guest Posted October 25, 2008 Share Posted October 25, 2008 Hi, I am getting the same prb....i thinks its smthng related to oscommerce software as so many ppl are gettn this problem...i tried all the method mentioned above bt nothing worked...please help us out Do you really think that it is a problem with oscommerce? It it more than likely that it is something that you have or have not done. Q1. what exactly is the problem you are having? Link to comment Share on other sites More sharing options...
danerb Posted December 5, 2008 Share Posted December 5, 2008 I'm having a simillar problem.. site was running fine till I went and enabled the SLL yesterday. Index is fine I can browse everything then when i add to the cart, click my account or checkout I just get bank a blank! I've undone everything I did earlier redone it again.. no use then used my clean 2.2rc2a file for config and app_top and still nothing.. Installed this a number of time now for many years now and reference this site against others and I always have a problem with osc security?? Changes CHMOD's every thing looks fine? So SSL is working but try to update and blank pages.. as in view source nothing! any ideas? http://www.oscommerce.com/forums/index.php?showtopic=34242 > chmod on files http://www.oscommerce.com/forums/index.php?showtopic=318914 > no answer yet "If it was easy everybody would be doing it" Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.