By chefarov on
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
Look if you have the possible
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
No ssh
Hello Pos
Unfortunately I don't have terminal access (only ftp). So I cannot use drush.
Variables table
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
:(
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?
There is no
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.
D6 vs D7
Ah... I was looking at D7. My bad.
Glad it's fixed though.
This signature is currently blank
Simplest solution
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.
Exactly. I had forgotten
Exactly. I had forgotten about admin theme.
Thanks