In views_php_handler_field.inc, the function php_click_sort() throws a run-time error because the incoming arguments $row1 and $row2 do not contain the required field ($this->field_alias) which in my case is "views_php_1".

FYI, I've configured my php view field to sort on case insensitive natural order.

Comments

monaw’s picture

Here is the run-time error message:

Notice: Undefined property: stdClass::$views_php_1 in views_php_handler_field->php_click_sort()

lionsharz’s picture

Same issue

Notice: Undefined property: stdClass::$views_php_31 in views_php_handler_field->php_click_sort() (line 185 of sites/all/modules/views_php/plugins/views/views_php_handler_field.inc).

adr_p’s picture

I experience the same issue. One click generates lots of the below in logs:

Notice: Undefined property: stdClass::$views_php_1 in views_php_handler_field->php_click_sort() (line 185 of /sites/all/modules/contrib/views_php/plugins/views/views_php_handler_field.inc).

adr_p’s picture

Version: 7.x-1.x-dev » 7.x-1.0-alpha3
NoRandom’s picture

Any news about this issue? any workaround? I'm experiencing the problem with any kind of sort I want to apply.