Hello all.

I want to set my drupal site offline through database because there is a bug in my theme and I can't click radio buttons on forms in content area.

I search for "site_offline" variable in database but I get 0 results. I also make the search like %offline% (with phpmyadmin) but I don't find anything useful.

Does anyone know what may be wrong?

Comments

pos’s picture

Look if you have the possible to install the drupal addon drush
Then can you use http://drupal.stackexchange.com/questions/16/how-to-take-a-drupal-site-o...

It have a loots off nice command for administrating drupal sites

chefarov’s picture

Hello Pos

Unfortunately I don't have terminal access (only ftp). So I cannot use drush.

jamesoakley’s picture

What you want is the variable with name maintenance_mode in the table variables. Set to "b:0;" to put out of maintenance mode, and "b:1;" to put in maintenance mode


This signature is currently blank
chefarov’s picture

I can't find maintenance_mode variable...

Edit: I just remembered that I have used a pressflow installation... Maybe there are some changes in database structure? As I can see the tables are the same but may that be the reason I find the maintenance_mode variable?

roper.’s picture

There is no "maintenance_mode" the correct variable is "site_offline" as the OP suggests. The reason you can't find it in the {variables} DB table is because you've never set it to anything and it just defaults to FALSE.

jamesoakley’s picture

Ah... I was looking at D7. My bad.

Glad it's fixed though.


This signature is currently blank
yelvington’s picture

Simplest solution, when a theme gets so hosed that you can't use the site, is to temporarily remove the offending theme and let Drupal fall back on an ugly, themeless but functional site.

Then install an admin theme so you don't do this again.

chefarov’s picture

Exactly. I had forgotten about admin theme.
Thanks