4 replies [Last post]
darkbrewery's picture
Offline
Joined: 02/09/2008
Juice: 49
Was this information Helpful?

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.

darkbrewery's picture
Offline
Joined: 02/09/2008
Juice: 49
Re: Fatal Error when Reviewing order after selecting paypal paym

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?

Al
Al's picture
Offline
Bug FinderGetting busy with the Ubercode.Internationalizationizer
Joined: 02/14/2008
Juice: 249
Re: Fatal Error when Reviewing order after selecting paypal paym

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("

keyone's picture
Offline
Joined: 10/01/2008
Juice: 95
Re: Re: Fatal Error when Reviewing order after selecting paypal

Thanks, this helped me alot, too!

wtmahaney's picture
Offline
Joined: 04/29/2009
Juice: 2
Thanks AL

Al

Thanks so much this just saved us hours of aggravation. I simply appended the line using "_tax" all seems fine now.

wtmahaney