Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
At the moment the module ships with a default install configuration. This breaks configuration management for me. I can't enable the module after it's been disabled. The easiest is to just remove the file
This is the error I got:
exception 'Drupal\Core\Config\PreExistingConfigException' with message 'Configuration objects (smtp.settings) provided by smtp already exist in active configuration'
Comment | File | Size | Author |
---|---|---|---|
#2 | remove_install-2651434-2.patch | 423 bytes | miiimooo |
|
Comments
Comment #2
miiimoooAttach find the simple patch.
Comment #3
ptmkenny CreditAttribution: ptmkenny commentedSome clarification-- when you say "I can't enable the module after it's been disabled," do you mean that you can't turn the module "On" after you have turned it "Off" under Install Options at /admin/config/system/smtp?
Comment #4
estoyausenteNew D8 installation using only SMTP module.
When I try to install SMTP with web interface, the installation threw me this warning:
Applying this patch installation are ok.
I think that it is RBTC, but maybe with another review it's better.
Comment #5
ptmkenny CreditAttribution: ptmkenny commentedConfirming that I receive the error described in the issue without the patch, and the patch clears up the error and allows a normal install on Drupal 8.0.2 on Pantheon. RTBC.
Comment #6
Anonymous (not verified) CreditAttribution: Anonymous commentedfwiw, removing the default config isn't needed here, on a clean composer install + drush enable, on Drupal 8.0.3
@
BUG: Uninstall fails with ImmutableConfigException
https://www.drupal.org/node/2653338#comment-10848258
@
BUG: Invalid placeholder: !url" errors when accessing the config page
https://www.drupal.org/node/2611210
then
With no errors in the install.
Settings can now be toggled at will, either at cli, e.g.
or in the UI.
Comment #7
wundo CreditAttribution: wundo at Chuva Inc. for Chuva Inc. commentedCould anyone please confirm if this is still happening with latest DEV?
thanks
Comment #8
wundo CreditAttribution: wundo at Chuva Inc. for Chuva Inc. commentedComment #9
miiimoooI think what was happening was:
* enable module
* configure
* export configuration to a staging folder
* disable module (pm-uninstall)
* enabling module gives an error because there is already configuration for it (in the staging folder)
Something like this
Comment #10
estoyausenteI was installing and uninstalling the module several times (I was testing issues related with this) and I think that we can close this issue, it seems resolved.
In the las version it is resolved. @miiimooo I did the process that you describes in #9 and I didn't find any error.
Reopen it if someone can to reproduce this issue.