简体   繁体   中英

Delete module from database in drupal7

i install module "kvantstuio" in drupal 7, and my site crushed. i go to

site/all/modules/kvanstudio

and delete this folder, then site work fine again. but when i click some button, i have an error

Fatal error: require_once() [function.require]: Failed opening required 'Z:\\home\\mysite\\www/sites/all/modules/kvantstudio/kvantstudio.module

i try this open phpmyadmin, open table "block" delete all string with "kvantstudio" but the error remained. what do I do ?

First thing is do a drush and then check. if that didn't work then go to your 'system' table in your phpmyadmin and see whether the module is still enabled(1) or disabled(0). you can disable module.

Look in the system table, and you can delete the row with the name "kvanstudio."

In the future, if you need to manually disable a module, you can set it's status to 0 in the system table.

There is a way to remove module in database :

  1. rm -rf modulePath

  2. drush sql-query "DELETE from system where type = 'module' AND name = 'nameOfModule';"

If it can help someone

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM