Kelly_Hero Posted November 24, 2003 Share Posted November 24, 2003 I have installed Down for Maintenance v1.1. In Admin, whenever I set Down for Maintenance: ON/OFF to true or NOTIFY PUBLIC Before going Down for Maintenance: ON/OFF to true, I get a blank white page whenever I try to go visit the site. I've checked my codes over and over and can find nothing wrong. However, I think this code may be causing my problem: Old Configuration.php Code: if ($HTTP_GET_VARS['action']) { switch ($HTTP_GET_VARS['action']) { case 'save': $configuration_value = tep_db_prepare_input($HTTP_POST_VARS['configuration_value']); $cID = tep_db_prepare_input($HTTP_GET_VARS['cID']); tep_db_query("update " . TABLE_CONFIGURATION . " set configuration_value = '" . tep_db_input($configuration_value) . "', last_modified = now() where configuration_id = '" . tep_db_input($cID) . "'"); tep_redirect(tep_href_link(FILENAME_CONFIGURATION, 'gID=' . $HTTP_GET_VARS['gID'] . '&cID=' . $cID)); break; } } New Configuration.php Code: if (tep_not_null($action)) { switch ($action) { case 'save': $configuration_value = tep_db_prepare_input($HTTP_POST_VARS['configuration_value']); $cID = tep_db_prepare_input($HTTP_GET_VARS['cID']); tep_db_query("update " . TABLE_CONFIGURATION . " set configuration_value = '" . tep_db_input($configuration_value) . "', last_modified = now() where configuration_id = '" . (int)$cID . "'"); // set the WARN_BEFORE_DOWN_FOR_MAINTENANCE to false if DOWN_FOR_MAINTENANCE = true if ( (WARN_BEFORE_DOWN_FOR_MAINTENANCE == 'true') && (DOWN_FOR_MAINTENANCE == 'true') ) { tep_db_query("update " . TABLE_CONFIGURATION . " set configuration_value = 'false', last_modified = '" . NOW . "' where configuration_key = 'WARN_BEFORE_DOWN_FOR_MAINTENANCE'"); } tep_redirect(tep_href_link(FILENAME_CONFIGURATION, 'gID=' . $HTTP_GET_VARS['gID'] . '&cID=' . $cID)); break; } } I am using OSCommerce 2.2 MS1. My Server is Microsoft-IIS/6.0. My PHP Version is: 4.3.2. Any assistance would be greatly appreciated. Kelly Quote Happiness does not come from doing easy work but from the afterglow of satisfaction that comes after the achievement of a difficult task that demanded our best. --Anonymous Link to comment Share on other sites More sharing options...
Kelly_Hero Posted November 25, 2003 Author Share Posted November 25, 2003 Anyone? Quote Happiness does not come from doing easy work but from the afterglow of satisfaction that comes after the achievement of a difficult task that demanded our best. --Anonymous Link to comment Share on other sites More sharing options...
Kelly_Hero Posted November 25, 2003 Author Share Posted November 25, 2003 Problem fixed! :D :D :D I had missed uploading the catalog/includes/languages/english/down_for_maintenance.php file to the server. Doh! Quote Happiness does not come from doing easy work but from the afterglow of satisfaction that comes after the achievement of a difficult task that demanded our best. --Anonymous Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.