I am getting a the fatal error message below appear on random occasions:
Fatal error: Call to a member function isRequired() on a non-object in
{SERVER_PATH}app/code/core/Mage/Captcha/Model/Observer.php on line 167
The fatal error takes down both the frontend and admin
. The only way that I can seem to resolve the issue when it occurs is by restarting the server. After restarting the server the website can go up to 2 – 3 weeks without the issue repeating itself.
Has anybody come across this same issue before or know how it can be resolved?
Best Answer
We had the same issue. I have overloaded the core method and added an additional check. Maybe this will help, if the error occurs the next time.
app/code/local/Stackexchange/CaptchaExtension/Model/Observer.php
app/code/local/Stackexchange/CaptchaExtension/etc/config.xml
app/etc/modules/Stackexchange_CaptchaExtension.xml