Fatal Error With Checkboxes and Malformed URL

Created on 16 January 2025, about 1 month ago

Problem/Motivation

LogicException: Cannot create key "123" on non-array value. in Drupal\Component\Utility\NestedArray::setValue() (line 154 of core/lib/Drupal/Component/Utility/NestedArray.php).

Steps to reproduce

  1. Create view with an exposed filter using checkboxes
  2. Filter on an item to create a URL like https://example.com?tags[123]=123
  3. Change the URL to https://example.com?tags and the page will crash.

Proposed resolution

Find where the URL parameter is passed to setValue() and add a check.

Remaining tasks

  1. Fix
  2. Create a test

User interface changes

API changes

Data model changes

πŸ› Bug report
Status

Active

Version

7.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States papagrande US West Coast

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

Comments & Activities

Production build 0.71.5 2024