Closed (duplicate)
Project:
Ubercart
Version:
7.x-3.x-dev
Component:
Shipping
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
20 Jan 2012 at 20:37 UTC
Updated:
17 Jul 2013 at 08:07 UTC
uc_quote_node_update (line 104) checks
(!empty($node->shipping_address['street1']))
however when I print $node, it appears that $node->shipping_address is an object. This causes calls to uc_quote_node_update to fail, and thus kills any node_update that invokes it.
If I change all $node->shipping_address['field'] to $node->shipping_address->field, the code works fine.
The most curious thing about this is I've been working with this Ubercart installation for a month, and just now hit this issue. It appears to be very specific, as I guess uc_quote_node_update doesn't get called very often. It's also possible that $node->shipping_address isn't always an object, but I'm not sure how to check that.
Comments
Comment #1
goodeit commentedsorry, this is a bug report
Comment #2
longwaveNobody else has reported this, seems like it should have been fixed in #1339076: Fatal error: Cannot use object of type UcAddress as array