Mage registry key “_singleton/VladimirPopov_WebForms_Model_Observer” already exists

依然范特西╮ 提交于 2019-12-01 11:57:39
croman91

It is very important to clear the Compiler cache and after that turn it on in backend of Magento.

Clear the cache:

SSH:
find ./var/cache -type f -delete
FTP: 
mrm -r ./var/cache ; mkdir ./var/cache

Disable/Clear Magento compilation

SSH:
php -f shell/compiler.php -- disable
php -f shell/compiler.php -- clear
FTP:
mv ./includes ./includes.unused

Ok, so Debug. Go to app/Mage.php. Find register function add in

if ($key == '_singleton/VladimirPopov_WebForms_Model_Observer'){
    Mage::log(debug_backtrace(false), null, 'backtrace.log');
}

Do this right before if (isset(self::$_registry[$key])) {

Then go to app/var/log/some_filename.log. There should be two entries. One is right and one is wrong (read duplicate). That should help you to find the offending file/function.

NOTE: Be sure to backup app/Mage first and restore it after. This is a critical file.

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