Closed (outdated)
Project:
Belgrade
Version:
8.x-1.x-dev
Component:
Code
Priority:
Major
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
5 Dec 2017 at 11:41 UTC
Updated:
19 Mar 2018 at 19:58 UTC
Jump to comment: Most recent
Got this error on a clean install when enabling via Drush.
Drupal\Core\Entity\EntityStorageException: 'block' entity with ID 'social' already exists. in [error]
/xxxx/commerce/web/core/lib/Drupal/Core/Entity/EntityStorageBase.php:425
Steps:
1. Install Commerce with Composer.
2. Install Bootstrap, Commerce Bootstrap and Belgrade via Composer.
composer require drupal/bootstrap
composer require drupal/commerce_bootstrap
composer require drupal/belgrade3. Enable Bootstrap, Commerce Bootstrap and Belgrade via drush.
drush en bootstrap
drush en commerce_bootstrap
drush en belgradeSee full error and Stack Trace below:
drush en belgrade
The following extensions will be enabled: belgrade
Do you really want to continue? (y/n): y
Drupal\Core\Entity\EntityStorageException: 'block' entity with ID 'social' already exists. in [error]
/xxx/commerce/web/core/lib/Drupal/Core/Entity/EntityStorageBase.php:425
Stack trace:
#0 /xxx/commerce/web/core/lib/Drupal/Core/Entity/EntityStorageBase.php(389):
Drupal\Core\Entity\EntityStorageBase->doPreSave(Object(Drupal\block\Entity\Block))
#1 /xxx/commerce/web/core/lib/Drupal/Core/Config/Entity/ConfigEntityStorage.php(259):
Drupal\Core\Entity\EntityStorageBase->save(Object(Drupal\block\Entity\Block))
#2 /xxx/commerce/web/core/lib/Drupal/Core/Entity/Entity.php(377):
Drupal\Core\Config\Entity\ConfigEntityStorage->save(Object(Drupal\block\Entity\Block))
#3 /xxx/commerce/web/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php(637):
Drupal\Core\Entity\Entity->save()
#4 /xxx/commerce/web/core/lib/Drupal/Core/Config/ConfigInstaller.php(330):
Drupal\Core\Config\Entity\ConfigEntityBase->save()
#5 /xxx/commerce/web/core/lib/Drupal/Core/Config/ConfigInstaller.php(229):
Drupal\Core\Config\ConfigInstaller->createConfiguration('', Array, true)
#6 /xxx/commerce/web/core/lib/Drupal/Core/Config/ConfigInstaller.php(153):
Drupal\Core\Config\ConfigInstaller->installOptionalConfig(Object(Drupal\Core\Config\ExtensionInstallStorage), Array)
#7 /xxx/commerce/web/core/lib/Drupal/Core/ProxyClass/Config/ConfigInstaller.php(75):
Drupal\Core\Config\ConfigInstaller->installDefaultConfig('theme', 'belgrade')
#8 /xxx/commerce/web/core/lib/Drupal/Core/Extension/ThemeInstaller.php(197):
Drupal\Core\ProxyClass\Config\ConfigInstaller->installDefaultConfig('theme', 'belgrade')
#9 /xxx/commerce/web/core/lib/Drupal/Core/Extension/ThemeHandler.php(164):
Drupal\Core\Extension\ThemeInstaller->install(Array, true)
#10 phar:///usr/local/bin/drush/commands/core/drupal/environment.inc(298):
Drupal\Core\Extension\ThemeHandler->install(Array)
#11 phar:///usr/local/bin/drush/commands/pm/pm.drush.inc(1161): drush_theme_enable(Array)
#12 phar:///usr/local/bin/drush/includes/command.inc(373): drush_pm_enable('belgrade')
#13 phar:///usr/local/bin/drush/includes/command.inc(224): _drush_invoke_hooks(Array, Array)
#14 phar:///usr/local/bin/drush/includes/command.inc(192): drush_command('belgrade')
#15 phar:///usr/local/bin/drush/lib/Drush/Boot/BaseBoot.php(67): drush_dispatch(Array)
#16 phar:///usr/local/bin/drush/includes/preflight.inc(66): Drush\Boot\BaseBoot->bootstrap_and_dispatch()
#17 phar:///usr/local/bin/drush/includes/startup.inc(325): drush_main()
#18 phar:///usr/local/bin/drush/drush(114): drush_startup(Array)
#19 /usr/local/bin/drush(10): require('phar:///usr/loc...')
#20 {main}Got same error after uninstalling both bootstrap and commerce_bootstrap and attempting to enable belgrade without enabling them before.
Comments
Comment #2
Carlos Miranda Levy commentedComment #3
mglamanConfig was changed, and cannot reproduce.