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
Comment #1
bakyildiz commentedI 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') {.Comment #2
tr commentedI 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.
Comment #3
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.