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

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

rocket.man created an issue. See original summary.

bkhandruk’s picture

Assigned: bkhandruk » Unassigned
Status: Active » Needs review
FileSize
1.17 KB

Fixed 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 to Drupal\linkchecker\Form\LinkCheckerEditLinkSettingsForm.
Now installation runs fine.

  • hass committed 0da6b58 on 8.x-1.x authored by rocket.man
    Issue #2783835 by rocket.man: fatal error and exception occur during...
hass’s picture

Status: Needs review » Fixed

Thanks, but you know the D8 code is not yet usable. Happy to see more of your patches.

bkhandruk’s picture

Thanks for a quick reply, @hass. I'll get to some other issues of this module when I have free time.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.