Posted by nquocbao on December 20, 2011 at 2:48pm
8 followers
Jump to:
| Project: | Ubercart |
| Version: | 7.x-3.x-dev |
| Component: | Code |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | closed (fixed) |
Issue Summary
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
#1
#2
i luv u so much right now (:
thanks that worked
#3
Thanks it was a great help
#4
Works 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?
#5
No-ones probably seen this as it was moved from ubercart to uc_recurring, moving back.
#6
Committed, thanks for the patch. I don't monitor the uc_recurring queue, which is why this wasn't picked up earlier.
#7
Automatically closed -- issue fixed for 2 weeks with no activity.