Error on settings form

Created on 22 June 2022, almost 3 years ago
Updated 23 October 2024, 6 months ago

Problem/Motivation

TypeError: implode(): Argument #1 ($pieces) must be of type array, string given in implode() (line 39 of modules/contrib/page_cache_query_ignore/src/Form/PageCacheQueryIgnoreConfigForm.php).

Steps to reproduce

Somehow the module was "wrongly" enabled (drush pm:enable page_cache_query_ignore returned an unrelated error).
Reinstalling the module fixed the error.

Proposed resolution

Small sanity check before using implode(). Use implode() only if $config->get('query_parameters') in not empty.

🐛 Bug report
Status

Closed: cannot reproduce

Version

2.1

Component

Code

Created by

🇭🇺Hungary pasqualle 🇭🇺 Budapest

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

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024