Sunday, April 10, 2016

Drupal 8 - Unable to install Devel, system.menu.devel already exists in active configuration.

To protect and to serve....
Well life is shit sometimes.
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....)