Hello,

I have this error show up:

EntityMetadataWrapperException: Unable to get the data property type as the parent data structure is not set. w EntityStructureWrapper->getPropertyValue() (line 442 z /home/narhir/public_html/vinti-moda.pl/profiles/commerce_polska/modules/entity/includes/entity.wrapper.inc).

It shows up when I click on "finalize my order" and then I fill the shipping and billing details then I click on "go to next step" and this error shows up :( it was working fine before, and I didnt did any "Crucial" changes that could make it act like that,

And I think it all started when I deleted my test orders.

this error shows up exactly, if like I for example try to buy something and I go till the "choose payment method" and then I change my mind and I go to homepage and then I want to continue realization of my order and I got this error to fix it I have to go to orders and cancel the last admin order. but then it happens all again

Comments

narhir’s picture

Issue summary: View changes

And I think it all started when I deleted my test orders

rszrama’s picture

Priority: Critical » Normal
Status: Active » Closed (duplicate)

How did you delete your test orders? This error comes up most regularly when people just delete the contents of the commerce_order table, but it's never safe to directly delete data from the database when fields are involved. If this is what you've done, I can help you clean it up. If not, we'll have to have more information to point you in the right direction, such as other contributed modules you may be using.

narhir’s picture

Hello, thank you for your reply, I was in total panic mode with it yesterday, when it comes how I deleted I just simply visited the: admin/commerce/orders/list and clicked on "Delete" next to my test order which was I think in "Pending" mode,

and I managed to fix it, Im not really 100% sure what was the reason that broke it, but I uninstalled shipping 1.0 and deleted and then I noticed its still on the list, so I checked my "profile installer files" and there was "second" shipping 1.0 (it could couse this error, but Im not sure at this point) so I deleted both folders and installed shipping 2.0 instead and now problem is gone! :)

maybe it would help someone else with similiar error

rszrama’s picture

Ahh, yeah, Shipping 2.x is definitely the way to go. Just make sure you're using Commerce Flat Rate with it, and not the Commerce Shipping Flat Rate module that was written for 1.x. The right one is: http://drupal.org/project/commerce_flat_rate

bessone’s picture

I have the same problem if i come back from the third step to the second one and i change the shipping address, when i proceed again to the third i have this problem.

I use Shipping 2.x and Flat rate with some rules that change the shipping services based on order's total weight.

bessone’s picture

Issue summary: View changes

additional informations