Attempt to install module leads to the following errors
First I get this exception
Drupal\Core\Config\ImmutableConfigException: Can not set values on immutable configuration linkchecker.settings:error.impersonate_account. Use \Drupal\Core\Config\ConfigFactoryInterface::getEditable() to retrieve a mutable configuration object in Drupal\Core\Config\ImmutableConfig->set() (line 27 of [root]/core/lib/Drupal/Core/Config/ImmutableConfig.php).
Then this fatal error occurs
Fatal error: Cannot redeclare class Drupal\linkchecker\Controller\LinkCheckerEditLinkSettingsForm in [root]/modules/contrib/linkchecker/src/Form/LinkCheckerEditLinkSettingsForm.php on line 16
Comment | File | Size | Author |
---|---|---|---|
#2 | linkchecker-fatal_error_and_exception_occur_during_module_installation-2783835-2.patch | 1.17 KB | bkhandruk |
Comments
Comment #2
bkhandruk CreditAttribution: bkhandruk commentedFixed exception by using
\Drupal::configFactory()->getEditable()
instead of\Drupal::config()
like it says in documentation.Fixed fatal error by changing class
Drupal\linkchecker\Controller\LinkCheckerEditLinkSettingsForm
toDrupal\linkchecker\Form\LinkCheckerEditLinkSettingsForm
.Now installation runs fine.
Comment #4
hass CreditAttribution: hass commentedThanks, but you know the D8 code is not yet usable. Happy to see more of your patches.
Comment #5
bkhandruk CreditAttribution: bkhandruk commentedThanks for a quick reply, @hass. I'll get to some other issues of this module when I have free time.