ArgumentCountError: Too few arguments to function Drupal\Core\Form\ConfigFormBase::__construct()

Created on 15 December 2024, 7 days ago

Problem/Motivation

White page when accessing to the configuration page /admin/config/system/entity-type-permissions.
Dblog message :

ArgumentCountError: Too few arguments to function Drupal\Core\Form\ConfigFormBase::__construct(), 1 passed in /var/www/html/drupal/web/modules/contrib/entity_type_permissions/src/Form/SettingsForm.php on line 40 and exactly 2 expected in Drupal\Core\Form\ConfigFormBase->__construct() (line 43 of /var/www/html/drupal/web/core/lib/Drupal/Core/Form/ConfigFormBase.php).

Steps to reproduce

  1. Install the Drupal 11 core and check your website is working.
  2. Install the entity_type_permissions module with the command:
    composer require drupal/entity_type_permissions
  3. Enable the module
    ./vendor/bin/drush en entity_type_permissions
  4. Authenticate in your website as an administrator.
  5. Open the admin menu configuration > system > entity type permissions.

As a result, the page return an error.
In Dblog, we canread this message:

ArgumentCountError: Too few arguments to function Drupal\Core\Form\ConfigFormBase::__construct(), 1 passed in /var/www/html/drupal/web/modules/contrib/entity_type_permissions/src/Form/SettingsForm.php on line 40 and exactly 2 expected in Drupal\Core\Form\ConfigFormBase->__construct() (line 43 of /var/www/html/drupal/web/core/lib/Drupal/Core/Form/ConfigFormBase.php).

Proposed resolution

Patch the config form with the expected arguments.

🐛 Bug report
Status

Active

Version

1.0

Component

User interface

Created by

🇫🇷France frondeau Nantes, FRANCE

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