- Issue created by @stevechai
Automatically closed - issue fixed for 2 weeks with no activity.
Error occurs when visiting the module settings page (admin/config/content/insert).
ArgumentCountError: Too few arguments to function Drupal\Core\Form\ConfigFormBase::__construct(), 1 passed in /var/www/html/web/modules/contrib/insert/src/Form/ConfigForm.php on line 18 and exactly 2 expected in Drupal\Core\Form\ConfigFormBase->__construct() (line 44 of /var/www/html/web/core/lib/Drupal/Core/Form/ConfigFormBase.php).
The error occurs due to the TypedConfigManagerInterface was optional in Drupal 10 but required in Drupal 11 as mentioned in https://www.drupal.org/node/3404140 →
Fresh install of Drupal 11
Install insert module via composer
Enable module
Go to module settings page (admin/config/content/insert)
Add TypedConfigManagerInterface to src/Form/ConfigForm.php
Active
3.0
Code
Automatically closed - issue fixed for 2 weeks with no activity.