我最近将magento网站恢复为备份版本。当我尝试访问/ admin时,我收到以下错误。
Mage registry key "_singleton/monkey/observer" already exists
跟踪:
#0 /home/energize/public_html/shop/app/Mage.php(223): Mage::throwException('Mage registry k...')
#1 /home/energize/public_html/shop/app/Mage.php(477): Mage::register('_singleton/monk...', false)
#2 /home/energize/public_html/shop/app/code/core/Mage/Core/Model/App.php(1335): Mage::getSingleton('monkey/observer')
#3 /home/energize/public_html/shop/app/Mage.php(448): Mage_Core_Model_App->dispatchEvent('core_block_abst...', Array)
#4 /home/energize/public_html/shop/app/code/core/Mage/Core/Block/Abstract.php(292): Mage::dispatchEvent('core_block_abst...', Array)
#5 /home/energize/public_html/shop/app/code/core/Mage/Core/Model/Layout.php(456): Mage_Core_Block_Abstract->setLayout(Object(Mage_Core_Model_Layout))
#6 /home/energize/public_html/shop/app/code/core/Mage/Core/Model/Layout.php(472): Mage_Core_Model_Layout->createBlock('adminhtml/page_...', 'head')
#7 /home/energize/public_html/shop/app/code/core/Mage/Core/Model/Layout.php(239): Mage_Core_Model_Layout->addBlock('adminhtml/page_...', 'head')
#8 /home/energize/public_html/shop/app/code/core/Mage/Core/Model/Layout.php(205): Mage_Core_Model_Layout->_generateBlock(Object(Mage_Core_Model_Layout_Element), Object(Mage_Core_Model_Layout_Element))
#9 /home/energize/public_html/shop/app/code/core/Mage/Core/Model/Layout.php(206): Mage_Core_Model_Layout->generateBlocks(Object(Mage_Core_Model_Layout_Element))
#10 /home/energize/public_html/shop/app/code/core/Mage/Core/Controller/Varien/Action.php(344): Mage_Core_Model_Layout->generateBlocks()
#11 /home/energize/public_html/shop/app/code/core/Mage/Core/Controller/Varien/Action.php(269): Mage_Core_Controller_Varien_Action->generateLayoutBlocks()
#12 /home/energize/public_html/shop/app/code/core/Mage/Adminhtml/Controller/Action.php(275): Mage_Core_Controller_Varien_Action->loadLayout(NULL, true, true)
#13 /home/energize/public_html/shop/app/code/core/Mage/Adminhtml/controllers/IndexController.php(81): Mage_Adminhtml_Controller_Action->loadLayout()
#14 /home/energize/public_html/shop/app/code/core/Mage/Core/Controller/Varien/Action.php(418): Mage_Adminhtml_IndexController->loginAction()
#15 /home/energize/public_html/shop/app/code/core/Mage/Core/Controller/Varien/Router/Standard.php(254): Mage_Core_Controller_Varien_Action->dispatch('login')
#16 /home/energize/public_html/shop/app/code/core/Mage/Core/Controller/Varien/Front.php(172): Mage_Core_Controller_Varien_Router_Standard->match(Object(Mage_Core_Controller_Request_Http))
#17 /home/energize/public_html/shop/app/code/core/Mage/Core/Model/App.php(365): Mage_Core_Controller_Varien_Front->dispatch()
#18 /home/energize/public_html/shop/app/Mage.php(684): Mage_Core_Model_App->run(Array)
#19 /home/energize/public_html/shop/index.php(83): Mage::run('', 'store')
#20 {main}
如果我尝试访问前端,我会收到此错误。
Fatal error: Call to a member function isLockExists() on a non-object in /home/energize/public_html/shop/app/code/core/Mage/Index/Model/Lock.php on line 257
答案 0 :(得分:0)
您需要编译出现此错误的服务器。
通过SSH访问服务器并在magento目录中运行以下命令。
php -f shell/compiler.php disable
php -f shell/compiler.php clear
php -f shell/compiler.php compile
答案 1 :(得分:0)
有两种方法可以帮助您登录访问Magento Admin:
1-请尝试通过FTP或Cpanel登录并转到 / app / etc / modules 并禁用Ebizmarts的模块(将代码 XML 中的 true 更改为 false 或重命名文件)
2 - 转到 /includes/config.php 并注释掉这两行。
注意:请清除缓存(如果需要,会话)。