Closed (fixed)
Project:
Commerce File
Version:
7.x-2.x-dev
Component:
Code
Priority:
Major
Category:
Task
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
31 Jan 2013 at 18:00 UTC
Updated:
4 Jan 2014 at 02:58 UTC
Jump to comment: Most recent
Comments
Comment #1
pierrepaul commentedI can confirm this with commerce 7.15-dev and Entity API 7.x-1.0. No license are issued.
Comment #2
pierrepaul commentedSwitching the priority to critical, since the module doesn't work if it's not fixed/explained.
Comment #3
Anonymous (not verified) commentedI am experiencing this issue as well--very frustrating.
The error readout I get is :
Location http://X.X.X.X/admin/commerce/orders/11/licenses?render=overlay&render=overlay
Referrer http://X.X.X.X/admin/commerce/orders/11/licenses?render=overlay
Message EntityMetadataWrapperException: Invalid data value given. Be sure it matches the required data type and format. in EntityMetadataWrapper->set() (line 124 of /home/XXX/public/XXX/public/profiles/commerce_kickstart/modules/contrib/entity/includes/entity.wrapper.inc).
Severity error
Comment #4
bojanz commentedI can't reproduce this. Your problem is that you're missing a field on the license entity type (did you create any custom types?) which should never be missing?
We should move the field creation code from hook_enable() to hook_flush_caches(), so that the missing fields are created on each cache clear, fixing the problem for edge cases like yours.
Can you try adding this to your commerce_file.module:
And clearing cache?
Comment #5
bojanz commentedThis was done in 7.x-2.x (see https://drupal.org/node/1395488#comment-7658191)
Tagging for possible backport.