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.
- Install a base Commerce Kickstart
- Install UUID 7.x-1.0-alpha3 release
- 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
Comment #1
droweski CreditAttribution: droweski commentedUsing 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.
Comment #2
DevElCuy CreditAttribution: DevElCuy commentedConfirmed!
Comment #3
skwashd CreditAttribution: skwashd commented@develCuy are you confirming that this is fixed in 7.x-1.x HEAD?
Comment #4
drupal a11y CreditAttribution: drupal a11y commentedI 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.
Comment #5
skwashd CreditAttribution: skwashd commented@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.
Comment #7
batje CreditAttribution: batje commentedrunning commerce_kickstart RC4 and UUID 7.x1.x-dev, this issue is still there
Comment #8
batje CreditAttribution: batje commentedIn 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)
Comment #9
mpdonadioI 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.
Comment #10
andyg5000I 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.
Comment #11
AnybodyHas this ever been resolved? We're running into similar problems in PHP7 but this issue seems to be dead?
Comment #12
TolstoyDotCom CreditAttribution: TolstoyDotCom commentedI 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.
Comment #13
kscheirerBased on #12, update to 1.2.