Error when using the module together with user_registrationpassword

Created on 19 April 2021, almost 4 years ago
Updated 13 March 2024, about 1 year ago

Problem/Motivation

I get this error: ArgumentCountError: Too few arguments to function user_registrationpassword_form_user_register_form_alter(), 2 passed in /app/web/modules/contrib/form_mode_manager/src/FormAlter.php on line 110 and exactly 3 expected in user_registrationpassword_form_user_register_form_alter() (line 234 of modules/contrib/user_registrationpassword/user_registrationpassword.module). when I use the module together with user_registrationpassword.

Steps to reproduce

Install drupal/form_mode_manager 8.x-2.x and drupal/user_registrationpassword 8.x-1.0-alpha5
Create another form mode for the entity User and visit that page with the user_registrationpassword module enabled.

Proposed resolution

Seems that the new version of form_mode_manager "8.x-2.x " is taking care of the changes in user_registrationpassword but one argument is missing. I'll provide a patch.

🐛 Bug report
Status

Fixed

Version

2.0

Component

Code

Created by

🇪🇸Spain isaacrc

Live updates comments and jobs are added and updated live.
  • Needs tests

    The change is currently missing an automated test that fails when run with the original code, and succeeds when the bug has been fixed.

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