when I save the view I become the following error message:

Notice: Undefined property: stdClass::$views_php_4 in views_php_handler_field->render() (line 223 of /www/htdocs/xxx/wer/sites/all/modules/views_php/plugins/views/views_php_handler_field.inc).

can you help me to solve this? I use the latest dev version from february.

kind regards


bharata’s picture

Any resolution for this André?

I get the same error when I have any php entered in the field. Except that my error says "views_php_2" instead of 4...


bharata’s picture

My problem was that I was entering the php code into the wrong field.

Try scrolling down to enter your code into the SECOND FIELD... Remember to use php tags there too.

Good luck!!

DevDaveUK’s picture

Issue summary: View changes

Confirm @bharata comments. My error was caused by having PHP code in the value field rather than the Output field. This was partly due to a work around for a different bug. The Value box was used to access the Value of Variables such as $row->myCustomField. However this would keep returning the nid/id and not the actual value so using $data-> and drilling down to the value and assigning it to a PHP variable was causing an error until this task was moved to the output box leaving Value box blank.

fizk’s picture

Category: Bug report » Support request
Status: Active » Closed (works as designed)