Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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
Comment #1
lsolesen CreditAttribution: lsolesen commentedWe need more information if you want us to dig into this. Can you reproduce this issue on a clean install of 2.16?
Comment #2
docans CreditAttribution: docans commentedI 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.
Comment #3
lsolesen CreditAttribution: lsolesen commented@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?
Comment #4
docans CreditAttribution: docans commentedI 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
Comment #5
asb CreditAttribution: asb commentedRelated:
* #2314411: EntityMetadataWrapperException: … in … entity.wrapper.inc
* #1844978: Node edit form error: EntityMetadataWrapperException: Unknown data property title. in EntityStructureWrapper->getPropertyInfo()
Comment #6
vgriffin CreditAttribution: vgriffin commentedThis isn't just kickstart.
I'm having the same error in Commerce 7.x-1.9, where I just reported it.
Comment #7
vgriffin CreditAttribution: vgriffin commentedThis 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!
Comment #8
jordimateubesancon CreditAttribution: jordimateubesancon commentedSame 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!
Comment #9
TaraRowell CreditAttribution: TaraRowell commentedI 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
Comment #10
lsolesen CreditAttribution: lsolesen commented@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.
Comment #11
Mzambrana CreditAttribution: Mzambrana commentedHello! I have the same problem. Add to Cart and boom !! error. You gotta fix it ??
Thank you very much!
Comment #13
Tamuren CreditAttribution: Tamuren commentedI am also experiencing this issue. It started after I installed commerce_shipping, and appears when I go attempt to view a Product node.
Comment #14
Arne Slabbinck CreditAttribution: Arne Slabbinck commentedI'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
Comment #15
mglamanHi 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.
Comment #16
winstonchurchil99 CreditAttribution: winstonchurchil99 commentedI had this problem after transfer with features the product to a production server. Commerce repair module fix it for me.
Comment #17
Abbass CreditAttribution: Abbass commentedSeems like it is a PHP 7 compatibility issue https://www.drupal.org/project/message/issues/2620280