- Issue created by @etiennejacquot
- Status changed to Postponed: needs info
over 1 year ago 6:02am 18 April 2023 - π³π±Netherlands Lendude Amsterdam
If you look at the parent method
\Drupal\views\Plugin\views\filter\NumericFilter::opSimple
there$this->value['value']
is also used, it seems to work there, since that filter is used much more often than GroupByNumeric I trust that is is what is expected at that point.So for me the question is, how come this is a string in your case? Do you have steps to reproduce this on a clean Drupal install? Or (less useful but might help) the config file for the View that is giving this error?
- πΊπΈUnited States rickward
I am a colleague of Etienne who is trying to assist with this issue.
Interestingly, if we try to edit this view on the php 8 install, we get a similar but different error:
TypeError: Cannot access offset of type string on string in Drupal\views\Plugin\views\filter\NumericFilter->adminSummary() (line 394 of /code/web/core/modules/views/src/Plugin/views/filter/NumericFilter.php)
I have attached the config file.
- πΊπΈUnited States rickward
Also, this view is using Better Exposed Filters, so I wonder if that could be a contributing factor.
- πΊπΈUnited States rickward
OK - This view is using a filter criterion that I've not seen before: COUNT(DISTINCT Content: Published)
I'm not sure what that is accomplishing in this context, but removing that filter criterion fixes the view. Any insight anyone could offer would be greatly appreciated. - π΅π°Pakistan hamza_niazi
I m facing the same issue with view using Exposed form style: basic