Hello,

Does anybody knows how to (re)set the admin theme in the database? I managed to get the frontend back after a WSOD. But when i go to the admin it's not working. So I think setting the admin theme manually might help

Thanks.

Comments

mooffie’s picture

Go to your themes' folder and change the admin's theme folder name from "my-fabulous-admin-theme" to ".my-fabulous-admin-theme" so that Drupal doesn't see it (Some file-managers of some evil operating systems don't let you change the name so; If that's your case, temporarily move the folder out of that tree). Drupal will then use your regular theme even for admin sections.

(Later, after you fix the problem, restore the folder name to see it again inside Drupal.)

Does anybody knows how to (re)set the admin theme in the database?

(The variable recording the admin theme is in the variables DB table. But I don't remember whether Drupal 6 caches this table (like D7 does).)

sunset_bill’s picture

Yeah, this is a very old thread, but I'm posting here because the title's still perfectly relevant. To change admin theme in the database:

update variable set value = 's:7:"garland";' where name = 'admin_theme';

cheers,
SB

a3dse’s picture

update int_variable set value = 's:7:"garland";' where name ='theme_default';

In the following environment:
Drupal 7.24
OpenAtrium (openatrium-7.x-2.12)

Hope this helps.