My Magento site has suddenly stopped working. The homepage loads a blank page, and when I go to the admin I get the following error:

```
Fatal error: Call to a member function getBlockName() on a non-object in ../app/code/core/Mage/Captcha/Block/Captcha.php on line 43

```

I have deleted the cache and session files but this didn't have any effect.