If I use PHP 5.4 to run my ubercart site, when I go to view an order, I get the following errors. Using 6.x-2.x-dev didn't solve it (as opposed to using released 6.x-2.7).
strict warning: Only variables should be passed by reference in /home/lifecome/public_html/sites/all/modules/ubercart/uc_order/uc_order.order_pane.inc on line 279.
strict warning: Only variables should be passed by reference in /home/lifecome/public_html/sites/all/modules/ubercart/uc_order/uc_order.order_pane.inc on line 517.
strict warning: Only variables should be passed by reference in /home/lifecome/public_html/sites/all/modules/ubercart/uc_order/uc_order.order_pane.inc on line 549.| Comment | File | Size | Author |
|---|---|---|---|
| #1 | 1476930-order-pane-render.patch | 2.12 KB | longwave |
Comments
Comment #1
longwavePlease test the attached patch.
Comment #2
jamesoakleyI applied that patch. The "admin->view order" page still loaded fine with PHP 5.3 (so didn't break things for older PHP).
Also, with the patch, I was able to load that page with PHP 5.4 without errors. I can't comment on whether or not there are any other adverse effects, but testing thus far the issue seemed fixed.
RTBC
Comment #3
longwaveCommitted #1
Comment #5
loparr commentedHI, sorry to reopen this, I applied your patch, the error is gone now
Only variables should be passed by reference in ..sites/all/modules/ubercart/uc_order/uc_order.order_pane.inc on line 279.
However on /admin/store/orders/123 I see only "array" inside products and comments pane.
Possible to do something about it? Thank you
Comment #6
loparr commentedafter installing latest dev, errors are gone. closing