Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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.
Comment | File | Size | Author |
---|---|---|---|
#5 | uc_recurring-uc_country_select_function_removed-2484073-5.patch | 2.11 KB | DrCord |
Comments
Comment #1
DrCord CreditAttribution: DrCord commentedComment #2
DrCord CreditAttribution: DrCord commentedHere is a patch for this issue.
Comment #3
DrCord CreditAttribution: DrCord commentedComment #4
DrCord CreditAttribution: DrCord commentedComment #5
DrCord CreditAttribution: DrCord commentedAs 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.