Skip to navigation

Drupal: how to disable broken module manually

I did something wrong applying a patch to a module. This resulted in a broken site — I wasn’t able to see the Administration page anymore to disable the module (or any page for that matter).

Log on to your server via SSH.

mysql -p

Gets you into mysql.
To see your databases:

show databases;

To pick the drupal database:

use drupal;

Then, substituting the module name for module_name below:

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



One Response to “Drupal: how to disable broken module manually”

  1. Anonymous Says:

    THank you; lifesaver!