Early Bird Registration for DrupalCon Portland 2024 is open! Register by 23:59 PST on 31 March 2024, to get $100 off your ticket.
Sometimes I received next exception:
EntityMetadataWrapperException: Unknown data property commerce_product. in EntityStructureWrapper->getPropertyInfo() (line 335 of /var/www/store/sites/all/modules/contrib/entity/includes/entity.wrapper.inc).
I could fix it with copiyng next code protection:
if (!in_array('commerce_product', array_keys($line_item_wrapper->getPropertyInfo()))) {
continue;
}
Please review my patch
Comment | File | Size | Author |
---|---|---|---|
#3 | commerce_rma-missing_commerce_product_property-2429487-3.patch | 2.93 KB | jkuma |
#2 | 2429487-missing-commerce-product-param-fix.patch | 854 bytes | id.tarzanych |
Comments
Comment #1
id.tarzanych CreditAttribution: id.tarzanych commentedComment #2
id.tarzanych CreditAttribution: id.tarzanych commentedComment #3
jkuma CreditAttribution: jkuma as a volunteer commentedThank you, I have rolled your patch against last dev and added a comment. Sorry some code cleaning is present in the patch.
Comment #5
jkuma CreditAttribution: jkuma as a volunteer commented