Mage registry key “controller” already exists

╄→гoц情女王★ 提交于 2020-01-24 01:23:09

问题


I have configured an ecommerce site using Magento, but it is throwing an error.

Mage registry key "controller" already exists

I am not sure what to do. The URL for site is http://musicademy.sweetersinging.com/store/admin


回答1:


This usually happens if you try and run Mage::run() twice - or specifically, once more after the index.php bootstrap.

Sounds like a (extremely) badly written 3rd party extension or template. It (sadly) wouldn't be the first time I've seen someone execute this within a .phtml file.

Go through the standard debug process, refresh between each.

  1. Move app/code/local to app/code/local.bak
  2. Move app/code/community to app/code/community.bak
  3. Move app/design/frontend/your_custom_package to app/design/frontend/your_custom_package.bak

Once you've found the cause above, then you can start to filter through the filters/dirs to check.




回答2:


If you have Magefirewall extension installed try disabling at the webserver(by going to magento_root_dir/app/etc/modules/magefirewall.xml) and clear the cache (by deleting all the files/folders in magento_root_dir/var/cache/) if you don't have access to the admin panel. Doing this solved the issue for me on Magento CE 1.9.2.2.



来源:https://stackoverflow.com/questions/9737069/mage-registry-key-controller-already-exists

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!