After installing the drimage module an a Drupal site with version 11.1.1 and visiting the settings form on /admin/config/media/drimage
I got fatal PHP error.
In the latest Drupal 11 version the ConfigFormBase class expects the second argument to be of type TypedConfigManagerInterface. But the DrimageSettingsForm class, which extends from the ConfigFormBase class, does not pass that argument in the parent::__contructor.
The full error message:
NOTICE: PHP message: Uncaught PHP Exception ArgumentCountError: "Too few arguments to function Drupal\Core\Form\ConfigFormBase::__construct(), 1 passed in /var/www/html/web/modules/contrib/drimage/src/Form/DrimageSettingsForm.php on line 62 and exactly 2 expected" at /var/www/html/web/core/lib/Drupal/Core/Form/ConfigFormBase.php line 44
/admin/config/media/drimage
Pass the TypedConfigManagerInterface to the parent::__construct
in the constructor of the DrimageSettingsForm class.
Active
2.3
Code