Fatal Error when Reviewing order after selecting paypal payment option

Posts: 20
Joined: 02/09/2008

Hey, I've got the following error:

Fatal error: Call to undefined function uc_taxes_calculate() in /mnt/local/home/rossignol/concretejungleint.com/sites/all/modules/ubercart/payment/uc_paypal/uc_paypal.module on line 1182

Is this my fault or what? I've tried almost everything and can't find anything to this specific issue in the forums.

Posts: 20
Joined: 02/09/2008

Here's what can be found on line 1182

$tax = 0;
  if (module_exists('uc_taxes')) {
    $taxes = uc_taxes_calculate($order);
    if (is_array($taxes)) {
      foreach ($taxes as $tax_item) {
        $tax += $tax_item['amount'];
      }
    }
  }

Can anyone help me figure this out?

Posts: 89
Joined: 02/14/2008
Bug FinderGetting busy with the Ubercode.Internationalizationizer

Not your fault. Merging uc_taxes.module with an older version throws up that in line 446 the function name was changed from uc_taxes_calculate($order) (what uc_paypal.module expects) to uc_taxes_calculate_tax($order)...

How to fix your site fast: Add in uc_paypal.module twice the missing "_tax", line 1132 & 1182.

@Lyle: Scanning folder ubercart shows no further matches for "uc_taxes_calculate("

Posts: 22
Joined: 10/01/2008

Thanks, this helped me alot, too!