Hi,

I have got the error below when I have tried to install the module after that I uninstalled it some minutes before:

The following extensions will be enabled: paragraphs_bootstrap_layouts, classy_paragraphs
Do you really want to continue? (y/n): y
exception 'Drupal\Core\Config\PreExistingConfigException' with message 'Configuration objects (core.entity_form_display.paragraph.paragraphs_column.default,              [error]
core.entity_form_display.paragraph.paragraphs_row.default, core.entity_view_display.paragraph.paragraphs_column.default,
core.entity_view_display.paragraph.paragraphs_row.default, field.field.paragraph.paragraphs_column.field_paragraphs_column,
field.field.paragraph.paragraphs_row.field_paragraphs_row, field.storage.paragraph.field_paragraphs_column, field.storage.paragraph.field_paragraphs_row,
paragraphs.paragraphs_type.paragraphs_column, paragraphs.paragraphs_type.paragraphs_row) provided by paragraphs_bootstrap_layouts already exist in active configuration'
in /*****/core/lib/Drupal/Core/Config/PreExistingConfigException.php:65
Stack trace:
#0 /*****/core/lib/Drupal/Core/Config/ConfigInstaller.php(480):
Drupal\Core\Config\PreExistingConfigException::create('paragraphs_boot...', Array)
#1 /*****/core/lib/Drupal/Core/ProxyClass/Config/ConfigInstaller.php(132):
Drupal\Core\Config\ConfigInstaller->checkConfigurationToInstall('module', 'paragraphs_boot...')
#2 /*****/core/lib/Drupal/Core/Extension/ModuleInstaller.php(141):
Drupal\Core\ProxyClass\Config\ConfigInstaller->checkConfigurationToInstall('module', 'paragraphs_boot...')
#3 /*****/core/lib/Drupal/Core/ProxyClass/Extension/ModuleInstaller.php(83): Drupal\Core\Extension\ModuleInstaller->install(Array, true)
#4 /usr/local/Cellar/drush/8.1.11/libexec/commands/core/drupal/environment.inc(131): Drupal\Core\ProxyClass\Extension\ModuleInstaller->install(Array, true)
#5 /usr/local/Cellar/drush/8.1.11/libexec/commands/core/drupal/environment.inc(198): drush_module_install(Array)
#6 /usr/local/Cellar/drush/8.1.11/libexec/commands/pm/pm.drush.inc(1167): drush_module_enable(Array)
#7 [internal function]: drush_pm_enable('paragraphs_boot...')
#8 /usr/local/Cellar/drush/8.1.11/libexec/includes/command.inc(422): call_user_func_array('drush_pm_enable', Array)
#9 /usr/local/Cellar/drush/8.1.11/libexec/includes/command.inc(231): _drush_invoke_hooks(Array, Array)
#10 [internal function]: drush_command('paragraphs_boot...')
#11 /usr/local/Cellar/drush/8.1.11/libexec/includes/command.inc(199): call_user_func_array('drush_command', Array)
#12 /usr/local/Cellar/drush/8.1.11/libexec/lib/Drush/Boot/BaseBoot.php(67): drush_dispatch(Array)
#13 /usr/local/Cellar/drush/8.1.11/libexec/includes/preflight.inc(66): Drush\Boot\BaseBoot->bootstrap_and_dispatch()
#14 /usr/local/Cellar/drush/8.1.11/libexec/drush.php(12): drush_main()
#15 {main}

Any idea to address it?
Thanks!

Comments

jlballes created an issue.

Rob Holmes’s picture

Hi there, this is a duplicate of the issue https://www.drupal.org/node/2906153

Basically the config is not removed when the module is uninstalled, you can remove it by hand in the meantime before re-installing bearing in mind you will lose any modifications to the new paragraph types.

The following drush commands should clear up the left over config.

drush config-delete core.entity_form_display.paragraph.paragraphs_row.default
drush config-delete core.entity_view_display.paragraph.paragraphs_column.default
drush config-delete core.entity_view_display.paragraph.paragraphs_row.default
drush config-delete field.field.paragraph.paragraphs_column.field_paragraphs_column
drush config-delete field.field.paragraph.paragraphs_row.field_paragraphs_row
drush config-delete field.storage.paragraph.field_paragraphs_column
drush config-delete field.storage.paragraph.field_paragraphs_row
drush config-delete paragraphs.paragraphs_type.paragraphs_column
drush config-delete paragraphs.paragraphs_type.paragraphs_row