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.
Hi,
There are notices when using the module:
"
Notice: Trying to get property of non-object in views_php_handler_field->render() (line 214 of /var/www/kk/sites/all/modules/contrib/views_php/plugins/views/views_php_handler_field.inc).
"
Fast look at the code:
foreach ($this->view->display_handler->get_handlers('field') as $field => $handler) {
$normalized_row->$field = isset($values->{$handler->field_alias}) ? $values->{$handler->field_alias} : NULL;
It seems that $values is actually array but not object.
Comment | File | Size | Author |
---|---|---|---|
#1 | views_php-remove-notices-1972658-1.patch | 1.2 KB | rumenyordanov |
Comments
Comment #1
rumenyordanov CreditAttribution: rumenyordanov commentedpatch attached
Comment #2
SocialNicheGuru CreditAttribution: SocialNicheGuru commented