Early Bird Registration for DrupalCon Portland 2024 is open! Register by 23:59 PST on 31 March 2024, to get $100 off your ticket.
Hey guys, I been struggling on this for a while! I have installed the commerce shipping module, and I always get the error EntityMetadataWrapperException : Unknown data property shipping_method after I press the "continue" button in the checkout form, but when I disable the shipping module, it all works fine ! (same error with dev and beta version)
Comments
Comment #1
googletorp CreditAttribution: googletorp commentedWhat version of commerce and entity are you using?
Comment #2
masterpiece CreditAttribution: masterpiece commentedEntity version is 7.x-1.0-beta8 and commerce version 7.x-1.0-beta3
Comment #3
masterpiece CreditAttribution: masterpiece commentedComment #4
googletorp CreditAttribution: googletorp commentedI'm unable to reproduce this. I also have a live site runnning this module which also works without any problems.
The problem most likely arises from calling commerce_shipping_line_item_title on a line item with a different type than shipping, as it otherwise wont have the shipping_method property.
My guess is that you have altered a view or something similar that causes this error.
Anyways for me to be able to fix this I need i guide on how to reproduce this on a fresh install.
Comment #5
masterpiece CreditAttribution: masterpiece commentedOk, adtually the error occured after updating the drupal commerce module,
Comment #6
googletorp CreditAttribution: googletorp commentedThis doens't seem related to commerce_shipping, closing.
Comment #7
aries CreditAttribution: aries commentedI got the same error. My hotfix was to comment out the line
in the commerce_shipping_line_item_new(), around line 337.
Comment #8
aries CreditAttribution: aries commentedComment #9
googletorp CreditAttribution: googletorp commentedThis is essentially the same problem as #1107788: Unknown data property commerce_product. in EntityStructureWrapper->getPropertyInfo()
I've assigned Ryan to this, but I don't expect to work on it here, but instead get it resolved in Commerce.
If you run into this problem you should be able to run
commerce_shipping_configure_line_item();
and it should create the missing field that wasn't created during install for unknown issues, or you can reinstall the module.Comment #10
aries CreditAttribution: aries commented#9 is ok, but somewhere the shipping_field field had been created earlier, so it's not enough to fire this function but had to remove the field manually (eg. with removing the "field_revision_shipping_method" and "field_data_shipping_method" database tables). Maybe it's a bug somewhere else (Core?).
Comment #11
googletorp CreditAttribution: googletorp commentedIf you already had the tables installed, either something was messed up when the field was created (core issue) or you did some alterations in the db or via custom code (you made the problem your self). Either way this is not the same issue and not related to commerce shipping, so marking this as fixed again.