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.
Undefined property: stdClass::$views_php_3 in views_php_handler_field->render() (line 223 of /www/html/10/10facts.com.com/sites/all/modules/views_php/plugins/views/views_php_handler_field.inc)
Line 223 has
$value = check_plain($values->{$this->field_alias});
I've even tried deleting that line and it still has that error every time someone accesses a page. I have no idea what this means. Thanks.
Comment | File | Size | Author |
---|---|---|---|
#3 | views_php-fix_for_undefined_property-1290682.patch | 642 bytes | 3rdLOF |
Comments
Comment #1
RKS CreditAttribution: RKS commentedWhen you export a view, what can you look for to see if the view is using Views PHP for anything?
Comment #2
RKS CreditAttribution: RKS commentedComment #3
3rdLOF CreditAttribution: 3rdLOF commentedSmall patch to fix this issue. Needs review, but I was getting this error across many different fields, some with extensive use. This seems to fix them all.
Use with care, let me know if it does it for you.
Comment #4
cobenashWork for me :)
Comment #5
Nicolas Bouteille CreditAttribution: Nicolas Bouteille commentedSame for me. Thanks !
Comment #6
Nicolas Bouteille CreditAttribution: Nicolas Bouteille commentedHere are the errors I was getting :
Notice : Undefined property: stdClass::$views_php_3 in views_php_handler_field->render() (line 223 in [...] /sites/all/modules/views_php/plugins/views/views_php_handler_field.inc).
Notice : Undefined property: stdClass::$views_php_16 in views_php_handler_field->render() (line 223 in [...] /sites/all/modules/views_php/plugins/views/views_php_handler_field.inc).
Notice : Undefined property: stdClass::$views_php_17 in views_php_handler_field->render() (line 223 in [...] /sites/all/modules/views_php/plugins/views/views_php_handler_field.inc).
Notice : Undefined property: stdClass::$views_php_18 in views_php_handler_field->render() (line 223 in [...] /sites/all/modules/views_php/plugins/views/views_php_handler_field.inc).
Notice : Undefined property: stdClass::$views_php_19 in views_php_handler_field->render() (line 223 in [...] /sites/all/modules/views_php/plugins/views/views_php_handler_field.inc).
Notice : Undefined property: stdClass::$views_php_20 in views_php_handler_field->render() (line 223 in [...] /sites/all/modules/views_php/plugins/views/views_php_handler_field.inc).
Comment #7
mschuster91 CreditAttribution: mschuster91 commentedI too get this error with latest versions of Drupal/Views/Views PHP. Cause seems to be the caching subsystem, as either a) running drush cc all before any request or b) disabling all caches with DrupalFakeCache resolves it.
Drupal's caching is messed up beyond belief.
Comment #8
fizk CreditAttribution: fizk commentedCommitted, thanks!