Closed (works as designed)
Project:
Computed Field
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
25 Mar 2013 at 19:53 UTC
Updated:
10 Oct 2015 at 20:43 UTC
Jump to comment: Most recent
Comments
Comment #1
tien.xuan.vo commented@see https://drupal.org/node/1896130
Comment #2
merauluka commentedThis did not fix the issue. Even after applying the change from the link in #1 and clearing my caches I am getting this error.
Strict warning: Only variables should be passed by reference in eval() (line 1 of .../all/modules/computed_field/computed_field.module(394) : eval()'d code).The line in question appears to be
eval($settings['code']);I am on PHP 5.3 and Drupal 7.26.
Does anyone have any other ideas?
Comment #3
liquidcms commentedi get the same error with this line in my computed value:
$name = array_pop(array_pop(field_get_items($entity_type, $entity, 'field_guest_name')));
Comment #4
liquidcms commentedfixed by removing array_pop method of pulling fields from entity to use in computed field value
Comment #5
ram4nd commentedSeems like unrelated to this module. Rather PHP version or simply wrong usage of functions.