We recently installed the Views Custom Conditions to our site, enabled the module, and went to a View that we need to filter the results by specific values within a field that contains multiple values.

Even though we are using the correct table|field|matchvalue|operator configuration, we keep getting the same fatal error message:

ResponseText: Fatal error: Call to undefined function wr() in /srv/bindings/a8ef7e9a9e7941048d27dc403a7b7885/code/sites/all/modules/views_custom_conditions/views_custom_conditions_plugin_display_extender_code.inc on line 46

I have upload a screenshot of the entire error message for reference.

Comments

jacquelynfisher created an issue. See original summary.

jacquelynfisher’s picture

StatusFileSize
new92.99 KB
mylesorme’s picture

Yup - same same. Views 7.3.13 Any news?

dkrockville’s picture

I cannot get the module to work at all. Generates an error - see below.
Can you provide more examples of the settings, please?
I want to exclude nodes where the value of a user field is not among the array objects in an entity reference field in the node.

An AJAX HTTP error occurred.
HTTP Result Code: 200
Debugging information follows.
Path: https://mysite.com/admin/structure/views/ajax/display/testing_vop_displays_and_listing/page_1/views_custom_conditions
StatusText: OK
ResponseText: Fatal error: Call to undefined function wr() in /var/www/mysite.com/sites/all/modules/custom/views_custom_conditions/views_custom_conditions_plugin_display_extender_code.inc on line 46
sano’s picture

I see the same problem. It seems like changes in a newer version of Views broke this module.

Snehal Brahmbhatt’s picture

Status: Active » Needs review
StatusFileSize
new885 bytes

@jacquelynfisher, wr() is not a PHP function even it is not in views_custom_conditions and views module. The event there is no instruction for using that code. So for now, I've added this code line in a comment and it solves the issue.

Thanks.

delacosta456’s picture

hi

Thanks for this patch @Snehal Brahmbhatt it worked for me.. no more fatal error