Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Download_Controllerv5.3b_MS2.2_2 I get an Error


netiad

Recommended Posts

Hello,

 

I am trying to install Download_Controllerv5.3b_MS2.2_2 When I login to my test account I get this error:

 

 

Fatal error: Cannot redeclare tep_get_configuration_key_value() (previously declared in /home/softesou/public_html/includes/functions/downloads_controller.php:13) in /home/softesou/public_html/includes/functions/downloads_controller.php on line 18

Link to comment
Share on other sites

  • 1 month later...
  • 2 months later...
Hello,

 

I am trying to install Download_Controllerv5.3b_MS2.2_2 When I login to my test account I get this error:

Fatal error: Cannot redeclare tep_get_configuration_key_value() (previously declared in /home/softesou/public_html/includes/functions/downloads_controller.php:13) in /home/softesou/public_html/includes/functions/downloads_controller.php on line 18

 

It sounds as if the same function is being called for twice. Try commenting out line 18 in includes/functions/downloads_controller.php and see what happens.

Link to comment
Share on other sites

This is the code:

 

////
// BOF: WebMakers.com Added: configuration key value lookup
 function tep_get_configuration_key_value($lookup) {
$configuration_query_raw= tep_db_query("select configuration_value from " . TABLE_CONFIGURATION . " where configuration_key='" . $lookup . "'");
$configuration_query= tep_db_fetch_array($configuration_query_raw);
$lookup_value= $configuration_query['configuration_value'];
return $lookup_value;
}
// EOF: WebMakers.com Added: configuration key value lookup

?>

 

Line 18 is the closed }

Link to comment
Share on other sites

Sure,

 

<?php
/*

 WebMakers.com Added: Downloads Controller Functions
 NOTE: Some function may already exist in other Add-Ons I have created.

*/
?>
<?php

////
// BOF: WebMakers.com Added: configuration key value lookup
 function tep_get_configuration_key_value($lookup) {
$configuration_query_raw= tep_db_query("select configuration_value from " . TABLE_CONFIGURATION . " where configuration_key='" . $lookup . "'");
$configuration_query= tep_db_fetch_array($configuration_query_raw);
$lookup_value= $configuration_query['configuration_value'];
return $lookup_value;
 }
// EOF: WebMakers.com Added: configuration key value lookup

?>

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...