To protect and to serve.... |
I migrated a Drupal 6 site to Drupal 8.
All I wanted is to install devel and then develop like mad.
But Devel won't install. It says:
Unable to install Devel, system.menu.devel already exists in active configuration.
Diving into Drupal 8 I solved it, but I must honestly tell you that I do not really understand all consequences. It has something to do with the dependencies. The old site had Devel running, so maybe that caused the problem....
Solution (providing you have drush installed)
Open terminal and navigate to the root folder of your website
$ drush php
Wait till the drush php prompt (>>>) appears
type
Drupal::configFactory()->getEditable('system.menu.devel')->delete();
push enter
some message appears like => Drupal\Core\Config\Config {#8157}
type
exit
After that I had no problem installing Devel (and develop like hell....)
EDIT sept 2023 (I stumbled onto my own blog running into this problem once again)
In drupal 9 use
php -d memory_limit=-1 vendor/drush/drush/drush config:delete
system.menu.devel
edited sept 2023