I Am having this error when i try to access the cart or checkout.

EntityMetadataWrapperException: Unknown data property commerce_product. in EntityStructureWrapper->getPropertyInfo() (line 335 of mysite.com/profiles/commerce_kickstart/modules/contrib/entity/includes/entity.wrapper.inc).

This occurred during checkout. I dont have any coupon codes. I am using commerce kickstart, with drupal 7.30 Any idea what is going on

Thanks

Comments

lsolesen’s picture

Priority: Critical » Normal
Status: Active » Postponed (maintainer needs more info)

We need more information if you want us to dig into this. Can you reproduce this issue on a clean install of 2.16?

docans’s picture

I will try to do so. I started having this issue on my site as soon as i updated to the latest release of commerce kickstart after Drupal 7.30 was released.

lsolesen’s picture

@docans What version did you upgrade form? What product type are you adding to cart and so on? Any other contrib modules not bundled with ck 2.x? Custom code?

docans’s picture

I updated from commerce kickstart 2.15. I have normal products in the cart. A few custom code but all the custom code was working fine until i upgraded to the latest version of comerce kickstart. I did how ever do a roll back from commerce kickstart 2.16 to 2.15 and everything is working fine. I guess there is a bug in the new commerce kickstart somewhere in the code. But i cant tell from where it cometh from.

Let me know if you need more info

vgriffin’s picture

This isn't just kickstart.

I'm having the same error in Commerce 7.x-1.9, where I just reported it.

vgriffin’s picture

This appears to happen if there is any problem displaying YOUR particular commerce_product. In my case, I had missed setting the connection to the line item type in the add-to-cart widget. It may be that a change in the underlying code for Commerce 1.9 has made it pickier. A better error message would definitely help!

jordimateubesancon’s picture

Same as vgriffin #7. Just modified the settings for the add-to-cart widget on the product display "manage display" configuration and the error has disappeared. Thanks a lot!

TaraRowell’s picture

I searched for a root cause on my site - early development and no significant overrides.
While I can't help with the nitty gritty, the Commerce Repair module fixed the break:
https://www.drupal.org/project/commerce_repair

lsolesen’s picture

Category: Bug report » Support request
Status: Postponed (maintainer needs more info) » Fixed

@TaraRowell. Cool might be an upgrade issue. I will be closing this for now. If someone can replicate on a clean install of the latest version 2.20 or provide exact steps to reproduce from a clean install please reopen.

Mzambrana’s picture

Hello! I have the same problem. Add to Cart and boom !! error. You gotta fix it ??

Thank you very much!

Status: Fixed » Closed (fixed)

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

Tamuren’s picture

Status: Closed (fixed) » Active

I am also experiencing this issue. It started after I installed commerce_shipping, and appears when I go attempt to view a Product node.

Arne Slabbinck’s picture

I'm facing the same problem in version 7.x-1.11 .
It occured when transferring configuration from a development site to a live site using features. I did enable all commerce modules & dependencies in one go. My products don't have a commerce_price field so I can't add a price..

EntityMetadataWrapperException: Unknown data property commerce_product. in EntityStructureWrapper->getPropertyInfo() (regel 335 van /home/welzijnszorg/drupal/sites/all/modules/entity/includes/entity.wrapper.inc).

commerce_repaire module didn't fix this

mglaman’s picture

Status: Active » Closed (fixed)

Hi Tamuren,

It sounds like you need to open this issue in Commerce Shipping. I'd recommend making a new one there rather than opening a closed one.

Noedel, I'd recommend the Commerce queue for you.

winstonchurchil99’s picture

I had this problem after transfer with features the product to a production server. Commerce repair module fix it for me.

Abbass’s picture

Seems like it is a PHP 7 compatibility issue https://www.drupal.org/project/message/issues/2620280