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.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

RKS’s picture

When you export a view, what can you look for to see if the view is using Views PHP for anything?

RKS’s picture

Category: support » bug
3rdLOF’s picture

Small 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.

cobenash’s picture

Work for me :)

Nicolas Bouteille’s picture

Issue summary: View changes
Status: Active » Reviewed & tested by the community

Same for me. Thanks !

Nicolas Bouteille’s picture

Here 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).

mschuster91’s picture

I 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.

fizk’s picture

Status: Reviewed & tested by the community » Fixed

Committed, thanks!

  • fizk committed 65dca6b on 7.x-1.x
    Issue #1290682 by 3rdLOF: Site Report log shows this error occurs...

  • fizk committed 34f3f29 on 7.x-2.x
    Issue #1290682 by 3rdLOF: Site Report log shows this error occurs...

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.