I have a Computed Field which stores a text value which is returned by the following code:
$urlref = $_SERVER['HTTP_REFERER'];
...and stored in the DB as a "Text Field". This appears exactly as you would expect as the URL of the referring page.
However, when I use Rules to "set a data value" by writing the value of this field into an empty text field of another content type I get the following error:
Notice: Array to string conversion in RulesTokenEvaluator->evaluate() (line 199 of /sites/all/modules/rules/modules/system.eval.inc).
The value that ends up in the text field that has been written to is the word "Array".
It would appear that Rules thinks the original value is an array but I'm not sure why.
Comments
Comment #1
kojis commentedI had the same error, updating to the latest *computed_field* (2012-Feb-15) resolved it for me, and the output is now as expected.
Comment #2
mitchell commentedGlad this was fixed. Please reopen if the problem continues.
Comment #4
IgnitedCoder commentedNotice: Array to string conversion in RulesTokenEvaluator->evaluate() (line 203 of /var/www/vhosts/srisk/sites/all/modules/rules/modules/system.eval.inc).
Simple calculated field...
Please help!!
Thanks
Comment #5
tr commentedThe initial problem was fixed.
The problem raised by @IgnitedCoder is unclear due to lack of details. At a minimum we need steps to reproduce along with an export of your rule, simplified as much as possible and ideally containing only core Rules events/conditions/actions. If you must use custom fields to reproduce this then they should be standard core Drupal fields applied to core Drupal content types/entities and you should describe how you've configured them.