QueryString::buildUrl causes error.

Created on 27 July 2023, 11 months ago
Updated 2 December 2023, 7 months ago

Problem/Motivation

I get this error, sorry no time to document how to reproduce.

Symfony\\Component\\HttpFoundation\\Exception\\BadRequestException: Input value \"page\" contains a non-scalar value. in /code/vendor/symfony/http-foundation/InputBag.php:37\nStack trace:\n#0 /code/web/modules/contrib/facets/src/Plugin/facets/url_processor/QueryString.php(92):

Steps to reproduce

JSON:API + Seach API + JSON:API Facets gives me this error on Drupal 10.1.1

Proposed resolution

One line change fixes it. I've seen this fix other modules in a similar fashion. Perhaps someone knows why this is needed?

From: $current_page = $get_params->get('page');

To: $current_page = $get_params->all('page');

Remaining tasks

User interface changes

API changes

Data model changes

🐛 Bug report
Status

Needs review

Version

3.0

Component

Code

Created by

🇺🇸United States joshmiller Indianapolis, Indiana, USA

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

Comments & Activities

Production build 0.69.0 2024