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.

Comments

dixon_’s picture

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?

vordude’s picture

I 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.

dixon_’s picture

Status: Active » Postponed (maintainer needs more info)

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?

fmizzell’s picture

StatusFileSize
new94.64 KB

I 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.

fmizzell’s picture

Status: Postponed (maintainer needs more info) » Active
geoffreyr’s picture

I'm using the dev version of UUID and that seems to work well with the current version of Drupal Commerce (1.3).

dixon_’s picture

Status: Active » Closed (works as designed)

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.