Strict warning: Only variables should be passed by reference in uc_recurring_product_form_uc_cart_checkout_form_alter() (line 409 of /opt/lampp/htdocs/mysite/sites/all/modules/uc_recurring/modules/uc_recurring_product/uc_recurring_product.module).
I got this error when I click checkout from /cart page.
| Comment | File | Size | Author |
|---|---|---|---|
| #6 | uc_recurring-only-var-pass-by-ref-1983238-6.patch | 1.3 KB | tinker |
| #5 | uc_recurring-only-var-pass-by-ref-1983238-5.patch | 1.3 KB | tinker |
Comments
Comment #1
sumitmadan commentedChanged 409 line from :
$form['panes']['payment']['payment_method']['#default_value'] = array_pop(array_keys($form['panes']['payment']['payment_method']['#options']));to
Comment #3
emcniece commentedJust hit this too - easy fix, but should the system really mark it as closed and fix? I hope the maintainer sees this...
Comment #4
longwaveNot fixed, needs review by the maintainer.
Comment #5
tinker commentedConfirmed problem still in dev and code change in #1 fixes problem. Attached patch using #1.
Apply patch using
git am uc_recurring-only-var-pass-by-ref-1983238-5.patchComment #6
tinker commentedGrrr, just noticed the variable name $paymentMethodKeys does not follow coding standards. Renamed to $payment_method_keys.
Apply patch using
git am uc_recurring-only-var-pass-by-ref-1983238-6.patchComment #7
univate commentedCommitted.