EntityMetadataWrapperException Error thrown when Deleting commerce Products

The latest release of this module, 7.x-1.0-alpha3, has caused an error associated with Drupal Commerce.

  1. Install a base Commerce Kickstart
  2. Install UUID 7.x-1.0-alpha3 release
  3. Try to delete a product from the store

EntityMetadataWrapperException: Unknown data property commerce_product. in EntityStructureWrapper->getPropertyInfo() (line 339 of .../modules/entity/includes/entity.wrapper.inc).

Other actions will also cause the same error, such as creating a display node with an embedded reference to a product. (The stack trace, gives me the impression the error occurs through an interaction with Views as well, but I'm still working that out.) The product deletion action was just a simple way of testing for the error.

This problem is new, as we had UUID installed for a while, so I'm sure it has something to do with the latest, 7.x-1.0-alpha3, release.

I'll post more if I have any useful info to supply.

Comments

droweski’s picture

Using EntityAPI 7.x-1.0-rc3 & Commerce 7.x-1.3
Immediate cause is entity_get_property_info function of the entityAPI contrib module returns an empty array, so commerce and several other modules that rely on that function are broken.
Updating UUID to dev alpha+38 or above seems to fix problem.

DevElCuy’s picture

Version: 7.x-1.0-alpha3 » 7.x-1.x-dev
Status: Active » Fixed

Confirmed!

skwashd’s picture

@develCuy are you confirming that this is fixed in 7.x-1.x HEAD?

drupal a11y’s picture

I have installed the RedHen-Modules and with the "registration"-fieldtype and UUID I get the following errors:

EntityMetadataWrapperException: Unknown data property user. in EntityStructureWrapper->getPropertyInfo() (line 339 of /Applications/MAMP/htdocs/100_Projects/relevantiveIntranet/sites/default/modules/coreExtending-Modules/entity/includes/entity.wrapper.inc).

Notice: Undefined variable: replacements in uuid_tokens() (line 95 of /Applications/MAMP/htdocs/100_Projects/relevantiveIntranet/sites/default/modules/coreExtending-Modules/uuid/uuid.tokens.inc).

Disabling UUID solved the problems.
Hope this helps you for debugging.

skwashd’s picture

@mori Were you using HEAD from the 7.x-1.x branch (or a recent -dev build)? If not please try with that, a lot has changed with UUID since alpha3.

Status: Fixed » Closed (fixed)

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

batje’s picture

Status: Closed (fixed) » Active

running commerce_kickstart RC4 and UUID 7.x1.x-dev, this issue is still there

batje’s picture

Status: Active » Closed (fixed)

In fact, it does work with UUID 7.x1.x-dev (and not with alpha3, sorry, i really thought i had upgraded the module before testing)

mpdonadio’s picture

I don't think this was limited to Drupal Commerce. I have similar symptoms with a standard install profile + UUID + Entity API. Doing a proper disable/uninstall of UUID, upgrading to dev, and enabling fixed the problem for me.

andyg5000’s picture

Status: Closed (fixed) » Active

I had UUID 7.x-1.x-dev enabled and was getting empty arrays for all calls to getPropertyInfo() regardless of the entity type.

$node_wrapper = entity_metadata_wrapper('node', $node);
dpm($node_wrapper->getPropertyInfo());

returned array()

It is a commerce 7.x-1.6 site (not kickstart), but disabling uuid instantly resolved the errors and empty arrays.

Anybody’s picture

Issue summary: View changes

Has this ever been resolved? We're running into similar problems in PHP7 but this issue seems to be dead?

TolstoyDotCom’s picture

I had this issue with version 7.x-1.0-alpha3 of this module and field collection. Updating to 7.x-1.2 appears to have resolved the problem.

kscheirer’s picture

Status: Active » Closed (won't fix)

Based on #12, update to 1.2.