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
Wow thank you. That worked for me. I've been searching and searching. I had no idea how to figure that out. (unfortunately I don't understand what that did either)
ReplyDeleteThank for your solution,
ReplyDeleteDrupal::configFactory()->getEditable('devel.settings')->delete();
will fix to "Unable to install Devel, devel.settings already exists in active configuration."
Thank you! This worked for me as well!
ReplyDeleteI was wondering how to launch drupal php from terminal. thnx, this helped
ReplyDeleteI fixed this using https://www.drupal.org/project/easy_install
ReplyDeleteJust want to say that I have this bookmarked and wind up coming back to it every few months for that one annoying site that just won't behave... so thanks!
ReplyDelete