ORIGINAL POST:
Even if it's turned off in the configuration screen, it's impossible to uncheck the box in the list of modules to de-activate it. Tested on Drupal 8.0.2.
CURRENT ISSUE:
Attempting to uninstall the SMTP module gives the following error:
Message Drupal\Core\Config\ImmutableConfigException: Can not set values on immutable configuration system.mail:interface. Use \Drupal\Core\Config\ConfigFactoryInterface::getEditable() to retrieve a mutable configuration object in Drupal\Core\Config\ImmutableConfig->set() (line 32 of /srv/bindings/2cc586e53d6d4f85b2ce2edfa90e7b7f/code/core/lib/Drupal/Core/Config/ImmutableConfig.php).
Comment | File | Size | Author |
---|---|---|---|
#5 | Uninstall.png | 136.19 KB | iamanupmenon |
#4 | smtp-uninstall_fails_with-2653338-4.patch | 603 bytes | Arlina |
|
Comments
Comment #2
ptmkenny CreditAttribution: ptmkenny commentedmodules can no longer be disabled in D8
I'm updating the issue because it seems the real bug here is that it can't be uninstalled, which should be supported in D8.
Comment #3
ptmkenny CreditAttribution: ptmkenny commentedComment #4
Arlina CreditAttribution: Arlina as a volunteer and at Chapter Three commentedAttached patch fixes the exception thrown when uninstalling the module.
Comment #5
iamanupmenon CreditAttribution: iamanupmenon at Srijan | A Material+ Company commentedChecked
I can uninstall when the module is enabled
No error comes up then
Also i cannot disable the module, the checkbox is disabled by default
Attached screenshot
Comment #6
Anonymous (not verified) CreditAttribution: Anonymous commentedverified patch
Comment #7
TheodorosPloumisPatch worked for me too. Thanks.
Comment #8
wundo CreditAttribution: wundo at Chuva Inc. for Chuva Inc. commentedPlease re-roll this patch.
Comment #9
asrobHi,
afaik this is in the last dev, that's why I changed its status.
Comment #10
ws.agency CreditAttribution: ws.agency at Websolutions Agency commentedStill getting same issue with latest dev.
Drupal\Core\Config\ImmutableConfigException: Can not set values on immutable configuration system.mail:interface. Use \Drupal\Core\Config\ConfigFactoryInterface::getEditable() to retrieve a mutable configuration object in Drupal\Core\Config\ImmutableConfig->set() (line 32 of /core/lib/Drupal/Core/Config/ImmutableConfig.php).
Comment #11
anish.a CreditAttribution: anish.a at Zyxware Technologies commentedThis is fixed in the latest branch. Please verify so that we can close this.
Issue #2651976
Commit ID:
23e78da06cacdb165f6fcf582a8d61ff6e6869b8
Comment #12
estoyausenteThe uninstall process have not this error anymore. I tested it several times using UI and using drush and the process (In the last dev version) has been finished correctly.