I get the following error and i dont know why. It only get fixed when i delete all the orders.

EntityMetadataWrapperException: Unable to get the data property type as the parent data structure is not set. in EntityStructureWrapper->getPropertyValue() (line 442 of /Users/Sakis/Sites/Under_Construction/e-wireless/profiles/commerce_kickstart/modules/entity/includes/entity.wrapper.inc).

I am really blind here..... :(

Comments

NewZeal’s picture

I get the same error message on the review page in Commerce 7-x-1.2. I have shipping, stock and paypal modules installed. It only seems to happen when I am testing and going back and forth and / or changing scripts. If I open up a new browser and add a product and go to review it is all working ok.

This is a problem since customers are likely to navigate back and forth.

Apparently this is a shipping module problem: http://drupal.org/node/1379046

NewZeal’s picture

Turns out in my case it was a commerce_stock module bug: http://drupal.org/node/1498484 . An easy fix

rszrama’s picture

Category: bug » support
Status: Active » Closed (fixed)

Marking this closed unless dianikol finds the problem in core itself. I don't know of any reason this issue should appear in core; it typically is the result of contributed modules not properly loading entities / managing field data.

dianikol’s picture

I believe too that it's not a core's problem. But I see that this error comes out on different modules. Anyway the error seems to disappear now somehow.

rszrama’s picture

Hmm, ok, we'll definitely be keeping an eye out for it. Thanks for reporting! : )