I had a website with ongoing problem of corrupted theme registry.

Whenever this happened, I tried running the wsod_emergency module in the dtools package, but it always failed to fix the problem. In fact, it would bail out with some weird message about "hook_exit".

Until I was able to track down the root cause of the problem, I was rescuing my website with a call to drupal_rebuild_theme_registry (using script invoked from the drush shell). I recommend the wsod_emergency.php script also invoke that function.

Comments

emccaughrin’s picture

Category: feature » bug

I am changing this from Feature Request to Bug Report. I just grepped through the code and see that it does actually try to rebuild the theme registry. Thus, I suspect that functionality isn't working.

kenorb’s picture

Status: Active » Fixed

message about "hook_exit" is always when hook_exit() was not executed, which it should on every page refresh.
http://api.drupal.org/api/drupal/developer--hooks--core.php/function/hoo...
Please try the latest dev version, it contains tracer/debugger which you can activate by adding debug at the end of the URL.
If should give you more information about the problem.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.