Settings for throws fatal error after update to 2.x

Created on 26 June 2025, about 1 month ago

Problem/Motivation

After upgrading from 8.x-1.0-alpha6 to 2.0.1 I get a fatal error when accessing the settings form.

TypeError: implode(): Argument #1 ($array) must be of type array, string given in implode() (line 65 of modules/contrib/m4032404/src/Form/M4032404Form.php).

Steps to reproduce

  1. Install 8.x-1.0-alpha6
  2. Upgrade to 2.0.1
  3. Open settings form /admin/config/system/m4032404
  4. Proposed resolution

    Method to bypass redirection RTBC added the pages sequence - this was added to the install config but no update hook was provided to set the default value for existing sites. This wasn't a big issue as the config form handled the config key being missing.

    📌 Automated Drupal 11 compatibility fixes for m4032404 Needs review then introduced a lot of refactoring which does not work with a missing value.

    Either:

  • handle missing config in the config form or,
  • provide an update hook to set a default value if the key is missing

The work around is to either manual edit you config to add the missing default values, or update first to 8.x-1.0, save your config via the UI, then upgrade to 2.0.1

Remaining tasks

  • Decide approach
  • Implement
  • Test
🐛 Bug report
Status

Active

Version

2.0

Component

Code

Created by

🇳🇿New Zealand ericgsmith

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