We've recently hit a rather nasty issue where enabling UUID on a site with Commerce 1.2 instantly causes a fatal error on non-admin pages, particularly when the cart block is enabled.
The specifics of the error is as follows:
Error message: EntityMetadataWrapperException: Unknown data property commerce_product
Using Commerce Devel to get more info revealed the following:
EntityStructureWrapper->getPropertyInfo('commerce_product') entity.wrapper.inc:396
EntityStructureWrapper->get('commerce_product') entity.wrapper.inc:431
EntityStructureWrapper->__set('commerce_product', '3') commerce_product_reference.module:1080
commerce_product_line_item_populate(Object, Object) commerce_product_reference.module:1057
commerce_product_line_item_new(Object, 1, 0, Array, 'product') commerce_cart.module:2184
commerce_cart_field_formatter_view('node', Object, Array, Array, 'und', Array, Array) field.default.inc:210
field_default_view('node', Object, Array, Array, 'und', Array, 'teaser', NULL) field.attach.inc:209
_field_invoke('view', 'node', Object, 'teaser', NULL, Array) field.attach.inc:386
_field_invoke_default('view', 'node', Object, 'teaser', NULL, Array) field.attach.inc:1181
field_attach_view('node', Object, 'teaser', 'en') node.module:1361
node_build_content(Object, 'teaser', 'en') node.module:1285
node_view(Object, 'teaser', NULL) node.module:2534
node_view_multiple(Array) node.module:2560
node_page_default()
call_user_func_array('node_page_default', Array) menu.inc:517
menu_execute_active_handler() index.php:21
Commerce product display nodes have a commerce_product field by default. I'm wondering whether UUID is affecting the product display entity in some way that results in it losing its Commerce Product data property?
See #1441094 and http://www.drupalcommerce.org/node/1242 for more details.
| Comment | File | Size | Author |
|---|---|---|---|
| #4 | Screen shot 2012-05-08 at 11.57.13 AM.png | 94.64 KB | fmizzell |
Comments
Comment #1
dixon_I'm not sure how UUID would or could affect this. Can you provide some more information that would take us closer to a solution here?
Can you try using the latest version of UUID 7.x-1.x-dev?
Comment #2
vordude commentedI had a very similar error with uuid alpha 3 and organic groups 2.x. The latest uuid dev looks like took care of the issue.
Comment #3
dixon_Yeah, we've fixed a lot of small issues in the latest dev. @geoffreyr Can you also please test the dev to see if the error goes away?
Comment #4
fmizzell commentedI have not tested the dev, but the problem is caused by the uuid implementation of hook_entity_property_alter, after installing uuid the entity_property_info array became what is shown in the image. I will check the dev, but wanted to report what is causing the issue.
Comment #5
fmizzell commentedComment #6
geoffreyr commentedI'm using the dev version of UUID and that seems to work well with the current version of Drupal Commerce (1.3).
Comment #7
dixon_I'm closing this one, since the latest version of UUID 7.x-1.x-dev seems to work with Commerce 1.3, telling from geoffreyr's comment. Please re-open if there's still problems after upgrading.