Quantcast
Channel: Issues for Drupal core
Viewing all articles
Browse latest Browse all 301255

TypeError: Cannot access offset of type string on string in Drupal\views\Plugin\views\filter\NumericFilter->valueForm()

$
0
0

Problem/Motivation

TypeError: Cannot access offset of type string on string in Drupal\views\Plugin\views\filter\NumericFilter->valueForm() (line 239 of core/modules/views/src/Plugin/views/filter/NumericFilter.php).

Drupal\views\Plugin\views\filter\NumericFilter->valueForm(Array, Object) (Line: 40)
Drupal\views\Plugin\views\filter\Date->valueForm(Array, Object) (Line: 939)
Drupal\views\Plugin\views\filter\FilterPluginBase->buildExposedForm(Array, Object) (Line: 111)
Drupal\views\Form\ViewsExposedForm->buildForm(Array, Object)

Steps to reproduce

This error is triggered when passing an empty value to a query parameter for an exposed views filter, like this:
?date_ranges_start=&date_ranges_start_op=overlaps

Proposed resolution

Improve the isset() check.


Viewing all articles
Browse latest Browse all 301255

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>