无法登录Magento Admin

时间:2017-09-25 20:30:32

标签: php magento

检查了之前几个问题的答案,但我还没有找到一个对我有用的解决方案。

将过去的更新应用到新客户Magento商店,他们没有跟上补丁但最近切换到我们的服务器进行托管。

关闭编译器。在每次上传后应用补丁并清除缓存/注销后,尝试登录仪表板时返回此错误:

任何帮助我进入后端的帮助都会非常感激:

Mage注册表项“_singleton / Mage_Core_Model_Domainpolicy”已经存在

跟踪:

#0 /home/pproduct/public_html/app/Mage.php(223): Mage::throwException('Mage registry k...')
#1 /home/pproduct/public_html/app/Mage.php(477): Mage::register('_singleton/Mage...', false)
#2 /home/pproduct/public_html/app/code/core/Mage/Core/Model/App.php(1317): Mage::getSingleton('Mage_Core_Model...')
#3 /home/pproduct/public_html/app/Mage.php(448): Mage_Core_Model_App->dispatchEvent('controller_acti...', Array)
#4 /home/pproduct/public_html/app/code/core/Mage/Core/Controller/Varien/Action.php(527): Mage::dispatchEvent('controller_acti...', Array)
#5 /home/pproduct/public_html/app/code/core/Mage/Adminhtml/Controller/Action.php(160): Mage_Core_Controller_Varien_Action->preDispatch()
#6 /home/pproduct/public_html/app/code/core/Mage/Core/Controller/Varien/Action.php(407): Mage_Adminhtml_Controller_Action->preDispatch()
#7 /home/pproduct/public_html/app/code/core/Mage/Core/Controller/Varien/Router/Standard.php(254): Mage_Core_Controller_Varien_Action->dispatch('login')
#8 /home/pproduct/public_html/app/code/core/Mage/Core/Controller/Varien/Front.php(172): Mage_Core_Controller_Varien_Router_Standard->match(Object(Mage_Core_Controller_Request_Http))
#9 /home/pproduct/public_html/app/code/core/Mage/Core/Model/App.php(354): Mage_Core_Controller_Varien_Front->dispatch()
#10 /home/pproduct/public_html/app/Mage.php(684): Mage_Core_Model_App->run(Array)
#11 /home/pproduct/public_html/index.php(87): Mage::run('', 'store')
#12 {main}

1 个答案:

答案 0 :(得分:0)

应通过DB更改用户权限来获取正确的商店ID: 尝试:

SET FOREIGN_KEY_CHECKS=0;
UPDATE `core_store` SET store_id = 0 WHERE code='admin';
UPDATE `core_store_group` SET group_id = 0 WHERE name='Default';
UPDATE `core_website` SET website_id = 0 WHERE code='admin';
UPDATE `customer_group` SET customer_group_id = 0 WHERE customer_group_code='NOT LOGGED IN';
SET FOREIGN_KEY_CHECKS=1;