When I cancel a subscription, I get this error:

Notice: Undefined index: cancel callback in uc_recurring_invoke() (line 732 of *****\sites\all\modules\contrib\uc_recurring\uc_recurring.module).

I think the code should be changed from

function uc_recurring_invoke($handler, $op, $params = array()) {
  $info = uc_recurring_get_recurring_info($handler);
  $function = $info[$op];
  if (function_exists($function)) {
    // Add the op argument to the params, in case the handler will need to use
    // it to identify the operation it is in.
    $params[] = $op;
    return call_user_func_array($function, $params);
  }
}

to

function uc_recurring_invoke($handler, $op, $params = array()) {
  $info = uc_recurring_get_recurring_info($handler);
  $function = isset($info[$op]) ? $info[$op] : "";
  if ($function && function_exists($function)) {
    // Add the op argument to the params, in case the handler will need to use
    // it to identify the operation it is in.
    $params[] = $op;
    return call_user_func_array($function, $params);
  }
}

Comments

nquocbao’s picture

More information: I'm using Authorize CIM to handle the payment

rickmanelius’s picture

Same issue here I'm using the latest stable release of ubercart (7.x-3.0) and drupal (7.12).

gregsomers’s picture

Priority: Normal » Critical

I get this issue as well (along with many others). It has been (half) a year since this was reported and still no fix. The module is completely unusable in its current form

matthand’s picture

Thanks to nquocbao! This seems to be a working solution.

univate’s picture

Status: Active » Fixed

This has been fixed.

Status: Fixed » Closed (fixed)

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