Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Parse Error?


Guest

Recommended Posts

Posted

Ok, I am the first to admit here that I know so little about php that I could fit my knowledge on the tip of a pi and have plenty of room left over. So....when I just went into my admin area and clicked on MODULES, I was kind of confused when the following error came up:

 

Parse error: syntax error, unexpected T_CASE in /home/trucklo/public_html/catalog/admin/modules.php on line 62

 

In looking at the modules.php file, here is what is around that general area:

 

$action = (isset($HTTP_GET_VARS['action']) ? $HTTP_GET_VARS['action'] : '');

 

if (tep_not_null($action)) {

switch ($action) {

case 'save':

while (list($key, $value) = each($HTTP_POST_VARS['configuration'])) {

if (is_array($value) ) {

$value = implode( ", ", $value);

$value = ereg_replace (", --none--", "", $value);

tep_db_query("update " . TABLE_CONFIGURATION . " set configuration_value = '" . $value . "' where configuration_key = '" . $key . "'");

}

tep_redirect(tep_href_link(FILENAME_MODULES, 'set=' . $set . '&module=' . $HTTP_GET_VARS['module']));

break;

case 'install':

case 'remove':

$file_extension = substr($PHP_SELF, strrpos($PHP_SELF, '.'));

$class = basename($HTTP_GET_VARS['module']);

if (file_exists($module_directory . $class . $file_extension)) {

include($module_directory . $class . $file_extension);

$module = new $class;

if ($action == 'install') {

$module->install();

} elseif ($action == 'remove') {

$module->remove();

}

}

tep_redirect(tep_href_link(FILENAME_MODULES, 'set=' . $set . '&module=' . $class));

break;

}

}

?>

 

Earlier this evening I installed the EP, which works fine -- or appears to. I have also put in the Seperate Pricing Module, which also appears to work fine. I am wanting to install the UPSXML and that is where I got this error. I restored the backup, but this error persists.

 

Any suggestions would be MORE than welcome.....and thanks in advance all!

 

Todd

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...