If i go to /checkout i get the following error. I'm not even sure whats supposed to be on that page if anything, but its certainly a page people might go to. here's the full error on my site

EntityMetadataWrapperException: Invalid data value given. Be sure it matches the required data type and format. in EntityDrupalWrapper->set() (line 694 of /home/artfo/public_html/dl7/sites/all/modules/entity/includes/entity.wrapper.inc).
The website encountered an unexpected error. Please try again later.

Comments

rfay’s picture

Please install/enable the commerce_devel module and then report the backtrace provided in admin/reports/dblog after the failure.

You'll need to give some other information as well: Did this ever work? Has it been through multiple upgrades? Did you see errors on installation?

Depending on what you find out, you may find the patch in #1107788-35: Unknown data property commerce_product. in EntityStructureWrapper->getPropertyInfo() useful, as it lets you reinstall missing fields.

amcc’s picture

Did this ever work?
- not as far as i'm aware
Has it been through multiple upgrades?
- i've tried using beta3 and dev, i'm pretty sure both give the same error
Did you see errors on installation?
- no i dont think so, but i can try a fresh install later today and try again

here's the errors from the dblog: there are 10 separate errors/warnings/notices when i navigate to site.com/checkout

if you need more detail please ask

----------

Error/Exception extended information: Notice: Undefined index: args in commerce_devel_printable_backtrace() (line 91 of /home/artfo/public_html/dl7/sites/all/modules/commerce_devel/commerce_devel.module) Backtrace:
commerce_devel_printable_backtrace(Array) commerce_devel.module:120
_commerce_devel_exception_handler(Object) 
Notice: Undefined index: args in _commerce_devel_error_handler() (line 59 of /home/artfo/public_html/dl7/sites/all/modules/commerce_devel/commerce_devel.module).
Error/Exception extended information: Warning: Invalid argument supplied for foreach() in commerce_devel_printable_backtrace() (line 91 of /home/artfo/public_html/dl7/sites/all/modules/commerce_devel/commerce_devel.module) Backtrace:
commerce_devel_printable_backtrace(Array) commerce_devel.module:120
_commerce_devel_exception_handler(Object) 
Warning: Invalid argument supplied for foreach() in _commerce_devel_error_handler() (line 59 of /home/artfo/public_html/dl7/sites/all/modules/commerce_devel/commerce_devel.module).
Error/Exception extended information: Notice: Undefined index: args in commerce_devel_printable_backtrace() (line 91 of /home/artfo/public_html/dl7/sites/all/modules/commerce_devel/commerce_devel.module) Backtrace:
commerce_devel_printable_backtrace(Array) commerce_devel.module:120
_commerce_devel_exception_handler(Object) 
Notice: Undefined index: args in _commerce_devel_error_handler() (line 59 of /home/artfo/public_html/dl7/sites/all/modules/commerce_devel/commerce_devel.module).
Error/Exception extended information: Warning: Invalid argument supplied for foreach() in commerce_devel_printable_backtrace() (line 91 of /home/artfo/public_html/dl7/sites/all/modules/commerce_devel/commerce_devel.module) Backtrace:
commerce_devel_printable_backtrace(Array) commerce_devel.module:120
_commerce_devel_exception_handler(Object) 
Warning: Invalid argument supplied for foreach() in _commerce_devel_error_handler() (line 59 of /home/artfo/public_html/dl7/sites/all/modules/commerce_devel/commerce_devel.module).
Error/Exception extended information: EntityMetadataWrapperException: Invalid data value given. Be sure it matches the required data type and format. in EntityDrupalWrapper->set() (line 694 of /home/artfo/public_html/dl7/sites/all/modules/entity/includes/entity.wrapper.inc) Backtrace:
EntityMetadataWrapper->__construct('commerce_order', , Array) entity.wrapper.inc:284
EntityStructureWrapper->__construct('commerce_order', , Array) entity.wrapper.inc:569
EntityDrupalWrapper->__construct('commerce_order', , Array) entity.module:907
entity_metadata_wrapper() commerce_cart.pages.inc:17
commerce_cart_checkout_router('commerce_order', ) menu.inc:503
menu_execute_active_handler() index.php:21
EntityMetadataWrapperException: Invalid data value given. Be sure it matches the required data type and format. in EntityDrupalWrapper->set() (line 694 of /home/artfo/public_html/dl7/sites/all/modules/entity/includes/entity.wrapper.inc).
rszrama’s picture

What's in your shopping cart? And do you have any additional Commerce contrib modules enabled?

amcc’s picture

I only get this if the cart is empty. Otherwise I get the redirection to the appropriate checkout/[order no] page.

My contrib commerce modules are commerce devel and commerce paypal.

I'll try a fresh install soon

rfay’s picture

Status: Active » Postponed (maintainer needs more info)
Issue tags: -checkout, -commerce
rszrama’s picture

Status: Postponed (maintainer needs more info) » Fixed

I didn't realize it, but I just fixed this issue yesterday when it came up in a developer training. Sorry for not closing this issue.

Commit: http://drupalcode.org/project/commerce.git/commitdiff/d8b0728

Status: Fixed » Closed (fixed)

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