In the line (on 1291 for me due to an pplied patch, but on line 1288 for the patch) of file uc_recurring/modules/uc_recurring_hosted/uc_recurring_hosted.module

$form['cc_data'] += uc_payment_method_credit_form(array(), $order);

the function uc_payment_method_credit_form is called with the wrong number of arguments, $form_state is not passed to it as the second argument...

The line should be

$form['cc_data'] += uc_payment_method_credit_form(array(), $form_state, $order);

I have created a patch.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

DrCord’s picture

Issue summary: View changes
DrCord’s picture

DrCord’s picture

Issue summary: View changes
DrCord’s picture

Issue summary: View changes
DrCord’s picture

As I was going through the file more I found other instances of the exact same problem. I created a patch that fixed all of these and a nearby use of the $user variable without it being available.