Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Down for maintenance problem


apolyshow

Recommended Posts

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.

One amateur made the Arc, 5.000 pro made the Titanic...

Link to comment
Share on other sites

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 by apolyshow

One amateur made the Arc, 5.000 pro made the Titanic...

Link to comment
Share on other sites

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.

One amateur made the Arc, 5.000 pro made the Titanic...

Link to comment
Share on other sites

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 by apolyshow

One amateur made the Arc, 5.000 pro made the Titanic...

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...