Drupal Module Lock Out

Recently I found myself in a catch-22 with a Drupal site I have running locally as a sandbox for development. A module I had enabled (SecurePages) was working great. Later, though, when I went to start up the web server after I had taken it down, I couldn't establish a connection to the SSL that the module requires. The server wouldn't start because of this. I first tried turning off the the "Secure (SSL/TLS) Connections" includes call in httpd.conf. The server was then able to start up ok, but I kept getting "Error Code -12263" when attempting to go into the Admin to disable the module.

So, I had to disable it manually. It may not be the "proper" way to do it, but I like that I can dive in and tweak something like this as a quick fix if necessary. I used phpMyAdmin to do this, but here's the SQL that ran for anyone who could use this information (including myself for if and when I get into a similar situation).

UPDATE `dbname`.`system` SET `status` = '0' WHERE CONVERT( `system`.`filename` USING utf8 ) = 'path/to/contrib/modules/securepages/securepages.module' LIMIT 1;

The important part of this is the `status` field. It had been '1' and what I did was change it to '0' to disable the module. From there I was able to get to the site and work with it without any further trouble.

Post new comment

The content of this field is kept private and will not be shown publicly.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Lines and paragraphs break automatically.
  • You can enable syntax highlighting of source code with the following tags: <code>, <blockcode>. Beside the tag style "<foo>" it is also possible to use "[foo]".
CAPTCHA
This question is for testing whether you are a human visitor and to prevent automated spam submissions.
7 + 8 =
Solve this simple math problem and enter the result. E.g. for 1+3, enter 4.