The exception is triggered upon clicking the generated link on the spammer's comment. Installed modules include core 7.12, Rules 2, Entity 7.x-1.0-rc1+31-dev. It also occured on Entity rc-1

Message:

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

Comments

dwightlathan77’s picture

The error occurs when a custom link is selected pointing to a sub folder I was designating to Rule link actions. When the default link url is used the error does not occur.

It could be a problem parsing the subfolder as part of a variable?

sepgil’s picture

Status: Active » Postponed (maintainer needs more info)

Sorry, but I don't get it. :P
What are trying to do? What do you mean by custom link and sub folders??
It seems you're trying to pass a variable of the wrong type to something...

derhasi’s picture

Status: Postponed (maintainer needs more info) » Active

I had the same error.

After i changed the path from "admin-action/projects/node-publish" to "node-publish-action", the link worked. Maybe some argument isn't passed correctly.

mxh’s picture

#3 confirmed. Thanks for the tip :)

sepgil’s picture

Status: Active » Fixed

@derhasi: you were right. Arguments of the links were parsed wrongly, but i've fixed it. Therefore paths like "admin-action/projects/node-publish" should work again.

Status: Fixed » Closed (fixed)

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

giorgio79’s picture

Can we get a new stable release, I just stumbled in this bug? I was still using the 2011 stable release and notice there has not been a stable release for a year.

giorgio79’s picture

Version: 7.x-1.0-beta1 » 7.x-1.x-dev
Status: Closed (fixed) » Active

I am still getting this error in dev

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

Here is the code

$rules_link = rules_link_load("my_promo");

global $user;
rules_link_render_link($rules_link,$user->uid);

Entity type is set to User in rules link config.

sepgil’s picture

Could you export the rules link and post it here?

sepgil’s picture

Status: Active » Postponed (maintainer needs more info)
giorgio79’s picture

Status: Postponed (maintainer needs more info) » Closed (fixed)

Sorry, I don't recall, how I stumbled on this. Next time will write a better issue post, so we can replicate cleanly. Setting it back to fixed. :)