Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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 CreditAttribution: 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 CreditAttribution: 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 CreditAttribution: 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#3 confirmed. Thanks for the tip :)
Comment #5
sepgil CreditAttribution: 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 CreditAttribution: 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 CreditAttribution: 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 CreditAttribution: sepgil commentedCould you export the rules link and post it here?
Comment #10
sepgil CreditAttribution: sepgil commentedComment #11
giorgio79 CreditAttribution: 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. :)