After upgrading to Beta4 I am seeing this error:

EntityMetadataWrapperException: Invalid data value given. Be sure it matches the required data type and format. in EntityDrupalWrapper->set() (line 694 of /home/content/21/7420121/html/adb/sites/all/modules/entity/includes/entity.wrapper.inc). Backtrace:
EntityDrupalWrapper->set(Array) entity.wrapper.inc:35
EntityMetadataWrapper->__construct('commerce_line_item', Array, Array) entity.wrapper.inc:284
EntityStructureWrapper->__construct('commerce_line_item', Array, Array) entity.wrapper.inc:569
EntityDrupalWrapper->__construct('commerce_line_item', Array, Array) entity.module:935
entity_metadata_wrapper('commerce_line_item', Array) commerce_product_bundle.rules.inc:42
commerce_product_bundle_calculate_price(Array, Object, Object, 'execute')
call_user_func_array('commerce_product_bundle_calculate_price', Array) faces.inc:123
FacesExtendable->__call('execute', Array) rules.core.inc:149
RulesExtendable->__call('execute', Array) rules.plugins.inc:20
RulesAction->executeCallback(Array, Object) rules.core.inc:1256
RulesAbstractPlugin->evaluate(Object) rules.core.inc:1879
RulesActionContainer->evaluate(Object) rules.plugins.inc:210
Rule->evaluate(Object) rules.plugins.inc:379
RulesReactionRule->evaluate(Object) rules.core.inc:1879
RulesActionContainer->evaluate(Object) rules.plugins.inc:669
RulesEventSet->executeByArgs(Array) rules.module:778
rules_invoke_event('commerce_product_calculate_sell_price', Object) commerce_product_pricing.module:125
commerce_product_calculate_sell_price(Object) commerce_product_pricing.module:71
commerce_product_pricing_commerce_price_field_formatter_prepare_view('commerce_product', Array, Array, Array, 'und', Array, Array) commerce_price.module:378
commerce_price_field_formatter_prepare_view('commerce_product', Array, Array, Array, 'und', Array, Array) field.default.inc:165
field_default_prepare_view('commerce_product', Array, Array, Array, 'und', Array, 'node_teaser', NULL) field.attach.inc:331
_field_invoke_multiple('prepare_view', 'commerce_product', Array, 'node_teaser', NULL, Array) field.attach.inc:386
_field_invoke_multiple_default('prepare_view', 'commerce_product', Array, 'node_teaser', NULL, Array) field.module:892
field_view_field('commerce_product', Object, 'commerce_price', 'node_teaser') commerce_product_reference.module:199
commerce_product_reference_node_view(Object, 'teaser', 'en')
call_user_func_array('commerce_product_reference_node_view', Array) module.inc:819
module_invoke_all('node_view', Object, 'teaser', 'en') node.module:1388
node_build_content(Object, 'teaser', 'en') node.module:1286
node_view(Object, 'teaser', NULL) node.module:2520
node_view_multiple(Array) node.module:2546
node_page_default()
call_user_func_array('node_page_default', Array) menu.inc:503
menu_execute_active_handler() index.php:21
. .

Comments

JohnDoranNY’s picture

After clearing caches I am seeing this error instead (trying to access the home page)

(note; the original error message seemed to be with line 'commerce_line_item' but the new message seems to be with 'commerce_cart.module'

----------------------------------

EntityMetadataWrapperException: Unable to get the data property data as the parent data structure is not set. in EntityStructureWrapper->getPropertyValue() (line 421 of /home/content/21/7420121/html/adb/sites/all/modules/entity/includes/entity.wrapper.inc). Backtrace:
EntityStructureWrapper->getPropertyValue('data', Array) entity.wrapper.inc:76
EntityMetadataWrapper->value() entity.wrapper.inc:238
EntityValueWrapper->value() commerce_cart.module:692
commerce_cart_order_refresh(Object) commerce_cart.module:461
commerce_cart_commerce_order_load(Array)
call_user_func_array('commerce_cart_commerce_order_load', Array) entity.inc:333
DrupalDefaultEntityController->attachLoad(Array, ) commerce_order.controller.inc:156
CommerceOrderEntityController->attachLoad(Array, ) entity.inc:203
DrupalDefaultEntityController->load(Array, Array) common.inc:7442
entity_load('commerce_order', Array, Array, ) commerce_order.module:379
commerce_order_load_multiple(Array, Array) commerce_order.module:350
commerce_order_load('1') commerce_cart.module:502
commerce_cart_order_load('1') commerce_cart.module:422
commerce_cart_block_view('cart')
call_user_func_array('commerce_cart_block_view', Array) module.inc:795
module_invoke('commerce_cart', 'block_view', 'cart') block.module:827
_block_render_blocks(Array) block.module:657
block_list('sidebar_second') block.module:315
block_get_blocks_by_region('sidebar_second') block.module:268
block_page_build(Array) common.inc:5480
drupal_render_page(Array) common.inc:2537
drupal_deliver_html_page(Array) common.inc:2432
drupal_deliver_page(Array, '') menu.inc:518
menu_execute_active_handler() index.php:21

JohnDoranNY’s picture

FYI: I deleted everything in the database relating to shipping and relating to shopping cart entries/line items, etc.. and that got rid of the error messages...

rszrama’s picture

Ok, we obviously need to get a patch in to googletorp to make sure Shipping supports beta4. It's probably a very minor API change affecting things and causing the errors.

rszrama’s picture

Status: Active » Closed (duplicate)