错误:当将magento从1.5升级到1.7时,在非对象上调用成员函数getAllOptions()

I had magento site which was based on community edition 1.5 when i upgraded it to 1.7 the error came up : "Call to a member function getAllOptions() on a non-object..." Have tried almost every solution but couldn't make it working.

The full error-message is:

Call to a member function getAllOptions() on a non-object in /site-path/app/code/core/Mage/Core/Model/Cache.php on line 434

Is your webshop using Aitoc Extensions ?

http://www.magentocommerce.com/boards/viewthread/279027/

You need to re-install or upgrade the extensions but what you can do in the meanwhile is:

comment App/Mage.php line 198

//self::$_appRoot = null;

Because this line is called on: app/code/core/Mage/Core/Model/Config/Options.php line 54:

Hope it helps!

Fatal error: Call to a member function getAllOptions() on a non-object. In the file app/code/core/Mage/Core/Model/Cache.php.

comment App/Mage.php line 198 //self::$_appRoot = null;