Receiving a TypeError from AccountForm when using multistep for anonymous user registration

Created on 16 November 2022, about 2 years ago
Updated 7 September 2023, over 1 year ago

Problem/Motivation

We're using simple_multistep for user registration of new users; the registration has 3 steps.

Following the change in https://git.drupalcode.org/project/simple_multistep/-/commit/cdb6a11a13e..., we are now seeing a TypeError after submitting step 2:

TypeError: key(): Argument #1 ($array) must be of type array, null given in key() (line 362 of core/modules/user/src/AccountForm.php).

Steps to reproduce

1. Install the latest 8.x-1.x-dev version of the module
2. Use simple_multistep for user registration
3. Create at least three steps for user registration
4. Attempt to go through user registration

I notice in FormStep.php, it seems like name, pass, and mail are specifically added to step values if it sees account -- I believe that roles should be added to this list.

πŸ› Bug report
Status

Fixed

Version

1.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States mediabounds

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