Closed (fixed)
Project:
Rules Link
Version:
7.x-1.x-dev
Component:
Code
Priority:
Major
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
9 Feb 2012 at 02:41 UTC
Updated:
12 Nov 2012 at 09:27 UTC
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
Comment #1
dwightlathan77 commentedThe 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?
Comment #2
sepgil commentedSorry, 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...
Comment #3
derhasi commentedI 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.
Comment #4
mxh commented#3 confirmed. Thanks for the tip :)
Comment #5
sepgil commented@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.
Comment #7
giorgio79 commentedCan 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.
Comment #8
giorgio79 commentedI 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
Entity type is set to User in rules link config.
Comment #9
sepgil commentedCould you export the rules link and post it here?
Comment #10
sepgil commentedComment #11
giorgio79 commentedSorry, 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. :)