Hi there,

I get the following error as soon as I try to checkout with a coupon that makes the product free. The order is placed, but you get an ugly error.

EntityMetadataWrapperException: Invalid data value given. Be sure it matches the required data type and format. in EntityDrupalWrapper->set() (line 737 of /sites/all/modules/entity/includes/entity.wrapper.inc).

If somebody knows how I can fix this, please let me know!

Comments

VM’s picture

what version of ubercart and entity api is in use?

Besbos’s picture

UberCart: 7.x-3.8
Entity API: 7.x-1.6

VM’s picture

I'd research the issue queue of the modules involved. A quick search with google provides many threads in which the error can be found.

Besbos’s picture

Hi, I already did, but none of these topics go about the module UberCart. They are about modules I do not use.

VM’s picture

They commonality that they share is entity API. Note that the error isn't from ubercart.

Did you research the ubercart and entity api issue queue for similar reports? If there aren't any existing reports, did you file one?

Besbos’s picture

I have found a related issue, but there wasn't any answer that I could use.

How do you mean, 'If there weren't any did you file one?'

VM’s picture

if there aren't any already existing issue you create one in the queue. As there is an existing issue you comment on it and provide as much information as you can.