Drupal 11: Too few arguments to function

Created on 18 December 2024, about 1 month ago

Problem/Motivation

A white error page error appears when trying to access the settings page in Drupal 11 (happens both in versions 11.0.9 and 11.1).

Error trace states:

'ArgumentCountError: Too few arguments to function Drupal\Core\Form\ConfigFormBase::__construct(), 1 passed in [...]/web/modules/contrib/button_formatter/src/Form/ButtonFormatterSettings.php on line 30 and exactly 2 expected in Drupal\Core\Form\ConfigFormBase->__construct() (line 43 of /var/www/drupal11/web/core/lib/Drupal/Core/Form/ConfigFormBase.php).'

Steps to reproduce

Open settings page

Proposed resolution

Refractor ConfigFormBase.php to ensure Drupal 11 compatibility.

Remaining tasks

User interface changes

API changes

Data model changes

🐛 Bug report
Status

Active

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