Mage registry key "_singleton/core/resource" already exists
Trace:
#0 /.../app/Mage.php(222): Mage::throwException('Mage registry k...')
#1 /.../app/Mage.php(476): Mage::register('_singleton/core...', Object(Mage_Core_Model_Resource))
#2 /.../app/code/core/Mage/Core/Model/Resource/Setup.php(141): Mage::getSingleton('core/resource')
#3 /.../app/code/core/Mage/Core/Model/Resource/Setup.php(234): Mage_Core_Model_Resource_Setup->__construct('core_setup')
#4 /.../app/code/core/Mage/Core/Model/App.php(417): Mage_Core_Model_Resource_Setup::applyAllUpdates()
#5 /.../app/code/core/Mage/Core/Model/App.php(343): Mage_Core_Model_App->_initModules()
#6 /.../app/Mage.php(683): Mage_Core_Model_App->run(Array)
#7 /.../index.php(104): Mage::run('', 'store')
#8 {main}
嗨,我遇到了错误,从几个博客和社区论坛中,我知道问题出在缓存上。所以我在 index.php 中添加了这个
$app = Mage::app();
if ($app != null)
{
$cache = $app->getCache();
if ($cache != null)
{
$cache->clean();
}
}
原始来源:http: //vipinsahu.com/magento-mage-registry-key-_singletoncoreresource-already-exists#ixzz24XXCt6m2
但我还是一样。请给我你的想法来解决这个问题。谢谢。