Community

Site broken - How to toggle modules on/off in DB?

My site is broken, and I suspect some modules to be wrongly de-activated.
As I cannot do anything to get to any page including admin page, I looked at the DB and found that modules have entries in the "system" table where the field "status" might be the information about a module being on or off.

Is this true?
Can we safely play with the values in this "status" field in order to get the proper modules running?

Thanks for help

Comments

You can play with that value,

You can play with that value, but first make a backup, or if you have a usable previous backup , just restore that.

PS. If you disabled AND un-installed modules, then you might have lost data, in that case restoring a back-up is your option.

I made it!

I made it!
I restored the status of the modules as they should have been, and the site is now up and running.

I do daily backups, but I much prefered not losing the last day work.

Thanks you for the insight

One word of caution: playing with module satus in the database is quite sensible. You never know the all dependencies and end up with the same kind of trouble that triggered this demand (call to undefined functions).
Deactivating as many modules as possible in the database and then reactivate them progressively in the modules admin page.
Remember the address of this page as you can very well not be able to reach it: ?q=admin/build/modules

JV

hai..can u please tell me in

hai..can u please tell me in step by step tutorial ?? cause i really confuse what i must to do with this solution? cause now i cant go to my admin page..

thanks

FAQ

There is a Troubleshooting FAQ that you can look at.
The answer is there.

Step by step

Step 1: Disable all modules directly in the data base: it was really necessary in my case!
The FAQ will help you for that http://drupal.org/node/157632

Step 2: go to your module admin page at yoursite.com/?q=admin/build/modules and set them accordingly
(as you have switched off all the modules, you have no menu available to go there...

JV