Fatal error: Call to a member function getCode() on a non-object in /mnt/sites/www.hats.com/files/html/app/code/core/Mage/Core/Model/App.php on line 707