apolyshow Posted May 27, 2011 Share Posted May 27, 2011 Dear all i need your help. I am trying to install the down for maintenance module but when i put the appropriate code to catalog/includes/template_top.php & catalog/includes/template_bottom.php then the logo and the right and left collumes are disapeared. Also then i am having problem with admin panel because i can see enything in there. Do i have to proceed or am i going to destroy everything until now? I hav allready install the SPPC module and some languages before the down for maintenance. Can you think a solution? The code for example for the first file that it makes the issue is: <?php // BOF: WebMakers.com Added: Down for Maintenance if ((DOWN_FOR_MAINTENANCE == 'false') || ((DOWN_FOR_MAINTENANCE == 'true') && (DOWN_FOR_MAINTENANCE_HEADER_OFF == 'false')) ) { require(DIR_WS_INCLUDES . 'header.php'); } // EOF: WebMakers.com Added: Down for Maintenance ?> Please help. Quote One amateur made the Arc, 5.000 pro made the Titanic... Link to comment Share on other sites More sharing options...
apolyshow Posted May 28, 2011 Author Share Posted May 28, 2011 (edited) Ok i put the database it seems to be ok i made all the changes the section in admin panel was ok and when i put the site on maintenance, the the admin panel became all a white page.... I mean the page with the configuration of the maintenance only.The athore admin panel is ok...I think..The other site is ok only the admin has disapeared. Any idea? Edited May 28, 2011 by apolyshow Quote One amateur made the Arc, 5.000 pro made the Titanic... Link to comment Share on other sites More sharing options...
apolyshow Posted May 28, 2011 Author Share Posted May 28, 2011 Ok something is wrong with the database of down for maintenance. I can't think something else and i don't know what to do. Something conflicts as with the files that we must change i was very careful. Quote One amateur made the Arc, 5.000 pro made the Titanic... Link to comment Share on other sites More sharing options...
apolyshow Posted May 28, 2011 Author Share Posted May 28, 2011 (edited) The page taht becomes white when i was pushing the save option is this one http://*****************/admin/configuration.php?gID=16&cID=310&action=save , so i am guessing that faulse is on the configuration.php file but when i am pushing the buck button on ie then the admin panel is back again in page where i was trying to put the site on maintance in true or false option. And the the syntax that i use */ require('includes/application_top.php'); $action = (isset($HTTP_GET_VARS['action']) ? $HTTP_GET_VARS['action'] : ''); 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; } } $gID = (isset($HTTP_GET_VARS['gID'])) ? $HTTP_GET_VARS['gID'] : 1; $cfg_group_query = tep_db_query("select configuration_group_title from " . TABLE_CONFIGURATION_GROUP . " where configuration_group_id = '" . (int)$gID . "'"); $cfg_group = tep_db_fetch_array($cfg_group_query); require(DIR_WS_INCLUDES . 'template_top.php'); ?> Any idea please? Edited May 28, 2011 by apolyshow Quote One amateur made the Arc, 5.000 pro made the Titanic... Link to comment Share on other sites More sharing options...
apolyshow Posted May 28, 2011 Author Share Posted May 28, 2011 I believe that everything are happening because of a conflict between SPPC and Down for maintenance.... Please help Quote One amateur made the Arc, 5.000 pro made the Titanic... Link to comment Share on other sites More sharing options...
SLiCK_303 Posted May 28, 2011 Share Posted May 28, 2011 (edited) What OSC version are you using? I use http://addons.oscommerce.com/info/6332, it actually works..... Edited May 28, 2011 by SLiCK_303 Quote Link to comment Share on other sites More sharing options...
SLiCK_303 Posted May 28, 2011 Share Posted May 28, 2011 I converted http://addons.oscommerce.com/info/6332 to 2.3.1, and added it to the ad-ons section, it is awaiting for manual validation.... Quote Link to comment Share on other sites More sharing options...
SLiCK_303 Posted May 30, 2011 Share Posted May 30, 2011 The lovely ppl that manage the add-ons section never approved my contrib, so I took out the pre-edited files, and added it again. http://addons.oscommerce.com/info/8030 , enjoy... Quote 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.