Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Download Controller Fatal Error


graphicore

Recommended Posts

I just installed the latest version of Download Controller and this is what I get when doing checkout:

 

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

 

Any help?????

Link to comment
Share on other sites

Hello,

 

Can you please provide the downloads_controller.php file

 

Thanks

 

I just installed the latest version of Download Controller and this is what I get when doing checkout:

 

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

 

Any help?????

Hard Work Is The Simplest Way Of Success

Link to comment
Share on other sites

Hello,

 

Can you please provide the downloads_controller.php file

 

Thanks

 

<?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

?>

Let me know what to fix.

Link to comment
Share on other sites

I have the exact same problem:

 

 

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

 

 

 

 

 

and the downloads_controller.php file is:

 

 

 

<?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

midwestb... Have you found a solution yet????

 

Well I found a working solution:

 

1.- Just copy the files:

 

catalog/checkout_proccess.php

catalog/checkout_shipping.php

catalog/includes/modules/download.php

catalog/includes/function/general.php

catalog/includes/function/downloads_controller.php

catalog/includes/languajes/english/images/buttons/button_download.gif

 

Leave the rest of the files as they are by default.

 

Also remember to upload to your MySQL database the file downloads_controller.sql to add the fields you need.

 

Do not have to modify the files described in the read me file in the package.

Link to comment
Share on other sites

I did get the problem fixed (see the "official paypal ipn + downloads contrller guide" thread for details).

 

but basically, I think the main problem was the addition of other order_status', and having to change the orders in which they occur in the actually SQL database - something i knew nothing of without that guide.

 

fixing that, and using the 2nd newest package on the contribution site seemed to fix things.

Link to comment
Share on other sites

  • 1 year later...

Archived

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

×
×
  • Create New...