Filters break on views not even implementing shs.

Created on 7 September 2023, over 1 year ago

Problem/Motivation

I've spent a considerable amount of time tracking down the issue I'm having on nearly every view on my site. Once I implemented shs, this error started showing on the site for most views using filters of any kind, even ones that aren't implementing shs.

TypeError: array_filter(): Argument #1 ($array) must be of type array, string given in array_filter() (line 135 of core/modules/views/src/Plugin/views/filter/ManyToOne.php).

Once I deactivate shs, the views go back to normal. The only other modules that I'm using for filtering are Better Exposed Filters and Selective Better Exposed Filters. I suspect there may be an issue with Selective Better Exposed Filters and this module if I had to guess. If I deactivate Selective Better Exposed Filters and leave SHS enabled, I still get this issue.

Currently on Drupal 9.5.10 and PHP 8.1.23.

I've tried all versions of 2.0.0 of this module and this issue is persistent.

Steps to reproduce

Install Selective Better Exposed Filters
Install SHS
Create a view with filters enabled

This is basically all I've done and the views quit working across my site. We were using Selective Better Exposed Filters for months and then also added SHS for one view in particular. That's when we notice the broken views across the site.

πŸ› Bug report
Status

Active

Version

2.0

Component

Compatibility with other modules

Created by

πŸ‡ΊπŸ‡ΈUnited States jasonglisson

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024