Magento“;“单例/核心/资源”;已存在错误

Magento“;“单例/核心/资源”;已存在错误,magento,runtime-error,Magento,Runtime Error,嗨,我得到以上的错误,从少数博客和社区论坛,我知道问题是与缓存。所以我在index.php中添加了这个 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..

嗨,我得到以上的错误,从少数博客和社区论坛,我知道问题是与缓存。所以我在index.php中添加了这个

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}
原始资料来源:

但我还是得到了同样的结果。请告诉我你解决这个问题的想法。
谢谢。

尝试在上刷新magento缓存

管理>系统>缓存管理

单击按钮刷新magento缓存并删除../var/cache上的所有文件夹/

$app = Mage::app();
if ($app != null)
{
    $cache = $app->getCache();
    if ($cache != null)
    {
        $cache->clean();
    }
}