Drupal 11 - Index now settings form error

Created on 26 September 2024, about 2 months ago

Problem/Motivation

ArgumentCountError: Too few arguments to function Drupal\Core\Form\ConfigFormBase::__construct(), 1 passed in /var/www/html/modules/contrib/index_now/src/Form/ModuleSettingsForm.php on line 71 and exactly 2 expected in Drupal\Core\Form\ConfigFormBase->__construct() (line 44 of core/lib/Drupal/Core/Form/ConfigFormBase.php). 

Steps to reproduce

Install Index Now on a Drupal 11 and try to access the settings form.

Proposed resolution

In Drupal 10 the second argument was optional and could be set on NULL which is not the case anymore on Drupal 11.
We have to pass a Drupal\Core\Config\TypedConfigManagerInterface argument.

Remaining tasks

User interface changes

API changes

Data model changes

๐Ÿ› Bug report
Status

Active

Version

3.1

Component

Code

Created by

๐Ÿ‡ซ๐Ÿ‡ทFrance MacSim

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