Voting starts in March for the Drupal Association Board election.
Either you have installed or modified a theme that just breaks everything, or you've deleted the current theme without disabling it first.
- Try clearing or rebuilding your CSS/JS and theme caches
- Make sure you have installed the new theme in the correct location (e.g.
- Make sure the file ownership and permissions of the new theme files is correct (i.e. whichever user Drupal runs as, typically the same as the web server, can read and execute)
- Make sure you have installed any base theme that may be required
- Make sure you have installed any dependencies that may be required by the theme, such as jQuery libraries or contrib modules
If you see some content but no menus or navigation blocks
We can fix up the themes by going directly to the required pages.
- Log in to your Drupal site, i.e. http://example.com/?q=user
- Browse your themes page and select a theme you know to be working:
- Clear or rebuild your CSS/JS and theme caches
If the problem theme still appears, check that it has not been forced in your
If you see no content at all, only error messages or a totally blank screen and you cannot login anymore.
Method 1: Change the active theme with Drush
You can change your default theme with a drush command, for example
# for Drupal 6/7 drush vset theme_default garland
# for Drupal 8 (Drush 7+) drush config-set system.theme default bartik
Then, clear or rebuild your CSS/JS and theme caches. If the problem theme still appears, check that it has not been forced in your
If drush fails with an error, it is likely you have other problems with the installation besides or in addition to the theme, such as an incompatible module.
Method 2: Change the active theme in the database
The default theme setting is stored in Drupal's database, and thus can be changed by manipulating the database from the command line or an administration overlay or client like PHPMyAdmin or MySQL Workbench for MySQL.
Always make a backup of your database before changing values in it directly, as it is possible to destroy data and render your site unrecoverable at the database level. You have been warned.
In Drupal 6 and 7, the setting is stored in the
# activate a trusted theme UPDATE system SET status=1 WHERE name = 'garland';
# change the default setting UPDATE variable SET value='s:7:"garland"' WHERE name = 'theme_default'; # clear the cache tables TRUNCATE cache; TRUNCATE cache_bootstrap; TRUNCATE cache_block;
Note that 's:7' refers to the length of the following string. Modify as needed. This is database surgery, tricky stuff.
If you are using per-user themes, and you've just messed it up for yourself as admin, try
UPDATE users SET theme='garland' WHERE uid = '1';
In Drupal 8, the setting is in the
config table, and stored as a blob value for
Method 3: Remove theme files
Remove the files of the bad theme and clear or rebuild the cache. After clearing the cache you should be able to log in again. The site will not look very pretty until you change to a working theme, but the menus should be navigable.