Posting in the Magento forums has been disabled pending the implementation of a new and improved forum solution which should better serve the community.

For new questions please post at magento.stackexchange.com, the community-run support site for the Magento community. We will be providing updates on the new forum solution soon. For questions or concerns please email community@magento.com.

Magento Forum

Magento cache and php cache problem ,
 
Kunal1234h
Jr. Member
 
Total Posts:  4
Joined:  2013-03-28
 

Hi ,
In magento we had enabled compilation mode , now the compilation mode has been disabled , but when we try to disable magento cache , we are getting errors

Mage registry key \\\\\\\\\\\\\\\"_singleton/core/resource\\\\\\\\\\\\\\\" already exists
Trace:
#0 /opt/bitnami/apps/magento/htdocs/app/Mage.php(222): Mage::throwException(\\\\\\\\\\\\\\\’Mage registry k...\\\\\\\\\\\\\\\’)
#1 /opt/bitnami/apps/magento/htdocs/app/Mage.php(476): Mage::register(\\\\\\\\\\\\\\\’_singleton/core...\\\\\\\\\\\\\\\’, Object(Mage_Core_Model_Resource))
#2 /opt/bitnami/apps/magento/htdocs/app/code/core/Mage/Core/Model/Resource/Setup.php(141): Mage::getSingleton(\\\\\\\\\\\\\\\’core/resource\\\\\\\\\\\\\\\’)
#3 /opt/bitnami/apps/magento/htdocs/app/code/core/Mage/Core/Model/Resource/Setup.php(234): Mage_Core_Model_Resource_Setup->__construct(\\\\\\\\\\\\\\\’core_setup\\\\\\\\\\\\\\\’)
#4 /opt/bitnami/apps/magento/htdocs/app/code/core/Mage/Core/Model/App.php(417): Mage_Core_Model_Resource_Setup::applyAllUpdates()
#5 /opt/bitnami/apps/magento/htdocs/app/code/core/Mage/Core/Model/App.php(343): Mage_Core_Model_App->_initModules()
#6 /opt/bitnami/apps/magento/htdocs/app/Mage.php(683): Mage_Core_Model_App->run(Array)
#7 /opt/bitnami/apps/magento/htdocs/index.php(87): Mage::run(\\\\\\\\\\\\\\\’\\\\\\\\\\\\\\\’, \\\\\\\\\\\\\\\’store\\\\\\\\\\\\\\\’)
#8 {main}
Error log record number: 957190468

To overcome this ,

we have tried the following solutions
we have disabled the compilation mode, flushed all the cache , and executed the following command

cd /opt/bitnami/

cd apps/magento/htdocs
php -f shell/compiler.php—clear

but still when we try to disable magento cache we are getting the above error .

 
Magento Community Magento Community
Magento Community
Magento Community
 
Sindre|ProperHost
Mentor
 
Avatar
Total Posts:  1158
Joined:  2008-04-24
 

If you have SSH access, run the following commands from your Magento root directory.

Delete all cache

rm -rf var/cache/*

Disable compilation module

php -f shell/compiler.php --disable
php 
-f shell/compiler.php --clear

Optionally, also rename the includes folder.

Rebuild indexes

php -f shell/indexer.php reindexall
 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
Back to top