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.
When I checkout with ubercart, I receive this error:
Strict warning: Only variables should be passed by reference in uc_payment_form_uc_cart_checkout_review_form_alter() (line 144 of *****\sites\all\modules\contrib\ubercart\payment\uc_payment\uc_payment.module).
It can be fixed by changing in uc_payment.module line 144 from
$form['#suffix'] = drupal_render(drupal_get_form($redirect, $order));
to
$suffix = drupal_get_form($redirect, $order);
$form['#suffix'] = drupal_render($suffix);
Comments
Comment #1
nquocbao CreditAttribution: nquocbao commentedComment #2
DoctorGonzo CreditAttribution: DoctorGonzo commentedi luv u so much right now (:
thanks that worked
Comment #3
helpmelearn CreditAttribution: helpmelearn commentedThanks it was a great help
Comment #4
apostl3pol CreditAttribution: apostl3pol commentedWorks for me too, thanks. Strange that after almost a year this hasn't been updated... have all the Ubercart devs moved on to Drupal Commerce or what?
Comment #5
univate CreditAttribution: univate commentedNo-ones probably seen this as it was moved from ubercart to uc_recurring, moving back.
Comment #6
longwaveCommitted, thanks for the patch. I don't monitor the uc_recurring queue, which is why this wasn't picked up earlier.