- Issue created by @Eli-T
- Status changed to Needs review
5 months ago 9:53am 29 June 2024 - Status changed to Fixed
5 months ago 10:11am 29 June 2024 Automatically closed - issue fixed for 2 weeks with no activity.
Config form shows the following error
The website encountered an unexpected error. Try again later.
TypeError: Drupal\Core\Form\ConfigFormBase::__construct(): Argument #1 ($config_factory) must be of type Drupal\Core\Config\ConfigFactoryInterface, null given, called in /var/www/html/web/modules/contrib/govuk_notify/src/Form/GovUKNotifyAdminForm.php on line 26 in Drupal\Core\Form\ConfigFormBase->__construct() (line 41 of core/lib/Drupal/Core/Form/ConfigFormBase.php).
Drupal\govuk_notify\Form\GovUKNotifyAdminForm->__construct() (Line: 33)
Drupal\govuk_notify\Form\GovUKNotifyAdminForm::create() (Line: 41)
Drupal\Core\DependencyInjection\ClassResolver->getInstanceFromDefinition() (Line: 48)
Drupal\Core\Controller\HtmlFormController->getFormObject() (Line: 58)
Log in and visit /admin/config/system/govuk_notify as an administrator.
Use the passed value to the constructor for the config factory rather than $this. Promoted properties aren't usable in the constructor (TIL!).
All the things.
None.
None.
None.
Fixed
3.1
Code
Automatically closed - issue fixed for 2 weeks with no activity.