O'Reilly logo

Drupal 6 Theming Cookbook by Karthik Kumar

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Resetting the default theme manually

There will be times where certain changes we have made to the theme will render the site utterly unusable. For example, this can happen when there are layout issues with the theme which might make navigating to the theme administration pages difficult, or when we have introduced an error in our PHP code which leads to the White Screen of Death where all we have to work with is an unusable blank screen. While we could simply stomp our way into the database and change the current theme, the "Drupal Way" advocates a cleaner and simpler solution to rescue the site.

In this recipe, we will be looking at rescuing an unusable site via the settings.php configuration file.

Getting ready

This recipe only applies when a ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required