How do I disable a module when Drush or the GUI doesnt work? My site just gives a WSOD and throws this error:


  Error: Unsupported operand types in sites/all/modules/rules/includes/rules.state.inc, line 620


Since I can't even get to my site now without a WSOD, and when I do a rush cc all or drush pm-disable rules I get that error via the command line, how can I disable the Rules module?
If you have access to your database, you can do it through there. 

You can see all the modules enabled with:

SELECT name,status FROM system WHERE type='module' AND status='1';


You can disable a module by setting it's status to 0.

UPDATE system SET status='0' WHERE name='module_name';


For more on uninstalling stuff via drupal's db.