Skip to main content

Drush

How to Remove Missing or Invalid Module/Theme (Drupal)

Error Message: Currently using Missing or invalid module The following module is marked as installed in the core.extension configuration, but it is missing:

If you accidentally removed the module folder while the module is installed, you can remove the module/theme from the configuration file with a drush command

vendor/bin/drush config:delete core.extension module.<modulename>

In our example, the module tablefield is missing from the configuration file

Drush needs a higher bootstrap level to run (How to Fix)

Drush needs a higher bootstrap level to run

Problem: With a PHP update, all drush commands stopped working

1. The obvious debugging is running the pm-update or any drush command inside a Drupal folder. If it still throws a "needs a higher bootstrap level to run," go to step 2.

2. Check all your path files

vi ~/.bashrc
vi ~/.bash_profile

bashrc is run in Linux outside shell access for all apps under your username

bash_profile is run only when you use a shell through the terminal