Help! I enabled a buggy module and now I can't disable it!

A situation can arise where you've enabled a module through administer >> modules, but then because of a fatal error of some kind cannot get back to administer >> modules to disable it (sometimes you cannot access any pages of your site at all) -- only the error is displayed and nothing else.

This can be resolved by executing the following query in the database:

UPDATE `system` SET `status` = '0' WHERE `name` = 'module_name' LIMIT 1;

This will disable the module so that you can access your administration panel again.

deleting the module from ftp

kozuch82 - March 1, 2006 - 20:25

This worked for me at least, then you just disable it in "modules" menu...

Jan

--
StandyTalk.org - Your place to talk about standards!

Orphaned code...

ariostel - April 6, 2008 - 21:25

That wouldn't remove the mention of the module in the 'system' table. I tried deleting via ftp and disabling using the "membership" module--a relatively simple module, too--and I still ended up with links and code that I had to track down and remove manually. I'd love to see a list of objects altered by module installation, so I could be sure I got everything out.

 
 

Drupal is a registered trademark of Dries Buytaert.