Mage注册表项" _singleton / tax / observer"已经存在

时间:2015-06-14 09:33:22

标签: php magento installation singleton

我这样做时遇到了这个错误。 错误发生在前端和后端。

我尝试过以下行动:

刷新缓存(删除var / cache文件夹中的所有内容):不起作用。

去了编译器并注意到它已被禁用

试过&运行编译器:也不起作用

有什么建议吗?



Trace:
#0 /var/www/vhosts/jomgroupon.com/httpdocs/app/Mage.php(222): Mage::throwException('Mage registry k...')
#1 /var/www/vhosts/jomgroupon.com/httpdocs/app/Mage.php(476): Mage::register('_singleton/tax/...', false)
#2 /var/www/vhosts/jomgroupon.com/httpdocs/app/code/core/Mage/Core/Model/App.php(1316): Mage::getSingleton('tax/observer')
#3 /var/www/vhosts/jomgroupon.com/httpdocs/app/Mage.php(447): Mage_Core_Model_App->dispatchEvent('catalog_product...', Array)
#4 /var/www/vhosts/jomgroupon.com/httpdocs/app/code/core/Mage/Catalog/Model/Resource/Product/Collection.php(526): Mage::dispatchEvent('catalog_product...', Array)
#5 /var/www/vhosts/jomgroupon.com/httpdocs/app/code/core/Mage/Eav/Model/Entity/Collection/Abstract.php(885): Mage_Catalog_Model_Resource_Product_Collection->_afterLoad()
#6 /var/www/vhosts/jomgroupon.com/httpdocs/lib/Varien/Data/Collection.php(301): Mage_Eav_Model_Entity_Collection_Abstract->load()
#7 /var/www/vhosts/jomgroupon.com/httpdocs/app/design/frontend/base/default/template/catalog/product/widget/new/column/new_default_list.phtml(36): Varien_Data_Collection->getItems()
#8 /var/www/vhosts/jomgroupon.com/httpdocs/app/code/core/Mage/Core/Block/Template.php(241): include('/var/www/vhosts...')
#9 /var/www/vhosts/jomgroupon.com/httpdocs/app/code/core/Mage/Core/Block/Template.php(272): Mage_Core_Block_Template->fetchView('frontend/base/d...')
#10 /var/www/vhosts/jomgroupon.com/httpdocs/app/code/core/Mage/Core/Block/Template.php(286): Mage_Core_Block_Template->renderView()
#11 /var/www/vhosts/jomgroupon.com/httpdocs/app/code/core/Mage/Core/Block/Abstract.php(863): Mage_Core_Block_Template->_toHtml()
#12 /var/www/vhosts/jomgroupon.com/httpdocs/app/code/core/Mage/Core/Block/Text/List.php(43): Mage_Core_Block_Abstract->toHtml()
#13 /var/www/vhosts/jomgroupon.com/httpdocs/app/code/core/Mage/Core/Block/Abstract.php(863): Mage_Core_Block_Text_List->_toHtml()
#14 /var/www/vhosts/jomgroupon.com/httpdocs/app/code/core/Mage/Core/Block/Abstract.php(582): Mage_Core_Block_Abstract->toHtml()
#15 /var/www/vhosts/jomgroupon.com/httpdocs/app/code/core/Mage/Core/Block/Abstract.php(526): Mage_Core_Block_Abstract->_getChildHtml('right', true)
#16 /var/www/vhosts/jomgroupon.com/httpdocs/app/design/frontend/default/skytheme/template/page/2columns-right.phtml(58): Mage_Core_Block_Abstract->getChildHtml('right')
#17 /var/www/vhosts/jomgroupon.com/httpdocs/app/code/core/Mage/Core/Block/Template.php(241): include('/var/www/vhosts...')
#18 /var/www/vhosts/jomgroupon.com/httpdocs/app/code/core/Mage/Core/Block/Template.php(272): Mage_Core_Block_Template->fetchView('frontend/defaul...')
#19 /var/www/vhosts/jomgroupon.com/httpdocs/app/code/core/Mage/Core/Block/Template.php(286): Mage_Core_Block_Template->renderView()
#20 /var/www/vhosts/jomgroupon.com/httpdocs/app/code/core/Mage/Core/Block/Abstract.php(863): Mage_Core_Block_Template->_toHtml()
#21 /var/www/vhosts/jomgroupon.com/httpdocs/app/code/core/Mage/Core/Model/Layout.php(555): Mage_Core_Block_Abstract->toHtml()
#22 /var/www/vhosts/jomgroupon.com/httpdocs/app/code/core/Mage/Core/Controller/Varien/Action.php(390): Mage_Core_Model_Layout->getOutput()
#23 /var/www/vhosts/jomgroupon.com/httpdocs/app/code/local/Gclone/Deal/controllers/IndexController.php(72): Mage_Core_Controller_Varien_Action->renderLayout()
#24 /var/www/vhosts/jomgroupon.com/httpdocs/app/code/core/Mage/Core/Controller/Varien/Action.php(419): Gclone_Deal_IndexController->viewAction()
#25 /var/www/vhosts/jomgroupon.com/httpdocs/app/code/core/Mage/Core/Controller/Varien/Router/Standard.php(250): Mage_Core_Controller_Varien_Action->dispatch('view')
#26 /var/www/vhosts/jomgroupon.com/httpdocs/app/code/core/Mage/Core/Controller/Varien/Front.php(176): Mage_Core_Controller_Varien_Router_Standard->match(Object(Mage_Core_Controller_Request_Http))
#27 /var/www/vhosts/jomgroupon.com/httpdocs/app/code/core/Mage/Core/Model/App.php(354): Mage_Core_Controller_Varien_Front->dispatch()
#28 /var/www/vhosts/jomgroupon.com/httpdocs/app/Mage.php(683): Mage_Core_Model_App->run(Array)
#29 /var/www/vhosts/jomgroupon.com/httpdocs/index.php(87): Mage::run('', 'store')
#30 {main}




2 个答案:

答案 0 :(得分:0)

检查此文件: /var/www/vhosts/jomgroupon.com/httpdocs/app/code/local/Gclone/Deal/controllers/IndexController.php 如果您打电话给法师: :register()方法

Mage::register('_singleton/tax/observer', $theObject)

然后通过添加第三个参数来更改该调用: Mage::register('_singleton/tax/observer', $theObject, true);

有关详细说明,请参阅:Error processing request: Mage registry key "_singleton/callforprice/observer" already exists

答案 1 :(得分:0)

最后我找到了解决方案here: 1st:看起来税/观察员在您的站点中不存在,检查Observer.php是否在app / code / core / Tax / Model文件夹中 第二步:检查是否有affiliateplusprogram / observer类文件。

找到的观察者文件名在两个文件夹中都发生了变化。更正后,点击checkout

时不再提示错误