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.
CommentFileSizeAuthor
#1 1476930-order-pane-render.patch2.12 KBlongwave
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

longwave’s picture

Status: Active » Needs review
FileSize
2.12 KB

Please test the attached patch.

JamesOakley’s picture

Status: Needs review » Reviewed & tested by the community

I 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

longwave’s picture

Status: Reviewed & tested by the community » Fixed

Committed #1

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

loparr’s picture

Category: Bug report » Support request
Issue summary: View changes
Status: Closed (fixed) » Active

HI, 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

loparr’s picture

Status: Active » Closed (fixed)

after installing latest dev, errors are gone. closing