TypeError : implode(): Argument #1 ($pieces) must be of type array, string given dans implode() (*/web/modules/contrib/pathauto/src/Form/PathautoSettingsForm.php ligne 255)

Created on 26 June 2023, about 1 year ago
Updated 18 May 2024, about 1 month ago

Problem/Motivation

When I want to access /admin/config/search/path/settings
I have this error : TypeError : implode(): Argument #1 ($pieces) must be of type array, string given dans implode() (*/web/modules/contrib/pathauto/src/Form/PathautoSettingsForm.php ligne 255)

Steps to reproduce

I just to try to access /admin/config/search/path/settings
With PHP version 8.1.20

Proposed resolution

Problem seem to be resolved if replace in /web/modules/contrib/pathauto/src/Form/PathautoSettingsForm.php ligne 255
'#default_value' => implode(', ', $config->get('safe_tokens')),
by
'#default_value' => !empty($config->get('safe_tokens')) ? implode(', ', $config->get('safe_tokens')) : NULL,

πŸ› Bug report
Status

RTBC

Version

1.11

Component

Code

Created by

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

Merge Requests

Comments & Activities

Production build 0.69.0 2024