I'm facing this problem as well; unfortunately, none of the above patches worked for me.
Drupal: 9.5.9
PHP: 8.1.17
MySQL: 8.0.30TypeError: Cannot access offset of type string on string in Drupal\views\Plugin\views\filter\NumericFilter->adminSummary() (line 396 of /web/core/modules/views/src/Plugin/views/filter/NumericFilter.php)
Any suggestion?
- π§π¬Bulgaria pfrenssen Sofia
@La558, your proposed line change is already included in the patch from #27, it is recommended to try testing the latest patch first, rather than going back to older revisions of the patch.
@DiDebru, thanks for adding some test coverage! It seems to need some more work though, since the test-only version of the patch is supposed to have a failure indicating the bug.
- last update
almost 2 years ago 30,060 pass - @pfrenssen opened merge request.
- π¨π¦Canada liquidcms
I was trying to make a view of a simple bundle that had a multivalue field and use aggregation to count (field) the number of items and filter on counts being > X. When i added count filter the view crashed. I get a WSOD with:
TypeError: Cannot access offset of type string on string in Drupal\views\Plugin\views\filter\NumericFilter->adminSummary() (line 413 of E:\www\dev\web\core\modules\views\src\Plugin\views\filter\NumericFilter.php).
when i try to add it and from the point on my view is corrupt. Adding this patch allows me to edit the view again.
Sadly, i am still not able to filter on count.