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, over 1 year ago
Updated 14 August 2024, 3 months 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

Fixed

Version

1.0

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.71.5 2024