ArgumentCountError: Too few arguments

Created on 19 February 2025, 3 days ago

Problem/Motivation

After the upgrade to Drupal 11 the following sites results in errors:

  • On /admin/config/localized: ArgumentCountError: Too few arguments to function Drupal\Core\Form\ConfigFormBase::__construct(), 1 passed in /app/drupal/modules/contrib/localized_config/src/Form/LocalizedConfigForm.php on line 66 and exactly 2 expected in Drupal\Core\Form\ConfigFormBase->__construct() (line 44 of core/lib/Drupal/Core/Form/ConfigFormBase.php)
  • and on /admin/config/localized/settings: ArgumentCountError: Too few arguments to function Drupal\Core\Form\ConfigFormBase::__construct(), 1 passed in /app/drupal/modules/contrib/localized_config/src/Form/LocalizedConfigSettings.php on line 25 and exactly 2 expected in Drupal\Core\Form\ConfigFormBase->__construct() (line 44 of core/lib/Drupal/Core/Form/ConfigFormBase.php)

Steps to reproduce

  • Use localised config on a Drupal 11 site
  • Navigate to /admin/config/localized

Proposed resolution

For drupal/modules/contrib/localized_config/src/Form/LocalizedConfigForm.php

For drupal/modules/contrib/localized_config/src/Form/LocalizedConfigSettings.php

🐛 Bug report
Status

Active

Component

Code

Created by

🇩🇪Germany demilua

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