Hi,
When i try to enable the currency module i got the following error.

Fatal error: Cannot redeclare currency_api_get_list() (previously declared in D:\xampp\htdocs\drupal56\modules\ubercart\uc_store\uc_store.module:2703) in D:\xampp\htdocs\drupal56\modules\currency\currency_api\currency_api.module on line 471

I am using the ubercart module. So this function is declared like

if (!function_exists('currency_api_get_list')){
  function currency_api_get_list() {
  .
  .
  .
  }
}

in uc_store.module file. To bypass this problem i hava added the if function to your currency module.

Comments

bakyildiz’s picture

I have reported this problem to ubercart as well.
http://www.ubercart.org/forum/bug_reports/3917/currency_api_get_list_red.... Your modules function has additional if (variable_get('currency_api_vendor', 'all') == 'nyfed') { .

tr’s picture

Status: Active » Fixed

I suggest this issue should be closed and marked as fixed.

This is no longer an issue, and was never a bug in the Currency API module. The problem was caused by Ubercart, but that entire block of code was removed from the uc_store.module several releases back (between RC4 and RC5 - Ubercart is now at the 1.0 release). There is no longer any possible conflict with this Currency API function.

Anonymous’s picture

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.