在一系列SQL注入尝试的过程中,我的客户端禁用了Mage_CatalogSearch模块输出(sys-> config-> advanced-> advanced)。
问题是,由于它已重新启用,因此任何搜索查询都不再有效,并导致以下错误。
有没有人见过这个或者可能引导我朝着正确的方向前进?
The attribute model is not defined
Trace:
#0 /var/www/vhosts/mysite.com/httpdocs/app/code/core/Mage/Catalog/Model/Layer/Filter/Abstract.php(239): Mage::throwException('The attribute m...')
#1 /var/www/vhosts/mysite.com/httpdocs/app/code/local/Mana/Filters/Model/Filter/Attribute.php(61): Mage_Catalog_Model_Layer_Filter_Abstract->getAttributeModel()
#2 /var/www/vhosts/mysite.com/httpdocs/app/code/local/Mana/Filters/Model/Filter/Attribute.php(243): Mana_Filters_Model_Filter_Attribute->_getItemsData()
#3 /var/www/vhosts/mysite.com/httpdocs/app/code/core/Mage/Catalog/Model/Layer/Filter/Abstract.php(120): Mana_Filters_Model_Filter_Attribute->_initItems()
#4 /var/www/vhosts/mysite.com/httpdocs/app/code/core/Mage/Catalog/Model/Layer/Filter/Abstract.php(109): Mage_Catalog_Model_Layer_Filter_Abstract->getItems()
#5 /var/www/vhosts/mysite.com/httpdocs/app/code/local/Mana/Filters/Block/Filter.php(77): Mage_Catalog_Model_Layer_Filter_Abstract->getItemsCount()
#6 /var/www/vhosts/mysite.com/httpdocs/app/code/core/Mage/Catalog/Block/Layer/View.php(218): Mana_Filters_Block_Filter->getItemsCount()
#7 /var/www/vhosts/mysite.com/httpdocs/app/code/local/Mana/Filters/Block/View.php(156): Mage_Catalog_Block_Layer_View->canShowOptions()
#8 /var/www/vhosts/mysite.com/httpdocs/app/code/local/Mana/Filters/Block/View.php(181): Mana_Filters_Block_View->_canShowBlockInCategory()
#9 /var/www/vhosts/mysite.com/httpdocs/app/code/local/Mana/Filters/Block/View.php(150): Mana_Filters_Block_View->_canShowBlockInSearch()
#10 /var/www/vhosts/mysite.com/httpdocs/app/design/frontend/pros/default/template/catalog/layer/view.phtml(34): Mana_Filters_Block_View->canShowBlock()
#11 /var/www/vhosts/mysite.com/httpdocs/app/code/core/Mage/Core/Block/Template.php(241): include('/var/www/vhosts...')
#12 /var/www/vhosts/mysite.com/httpdocs/app/code/core/Mage/Core/Block/Template.php(272): Mage_Core_Block_Template->fetchView('frontend/proswi...')
#13 /var/www/vhosts/mysite.com/httpdocs/app/code/core/Mage/Core/Block/Template.php(286): Mage_Core_Block_Template->renderView()
#14 /var/www/vhosts/mysite.com/httpdocs/app/code/core/Mage/Core/Block/Abstract.php(863): Mage_Core_Block_Template->_toHtml()
#15 /var/www/vhosts/mysite.com/httpdocs/app/code/core/Mage/Core/Block/Text/List.php(43): Mage_Core_Block_Abstract->toHtml()
#16 /var/www/vhosts/mysite.com/httpdocs/app/code/core/Mage/Core/Block/Abstract.php(863): Mage_Core_Block_Text_List->_toHtml()
#17 /var/www/vhosts/mysite.com/httpdocs/app/code/core/Mage/Core/Block/Abstract.php(582): Mage_Core_Block_Abstract->toHtml()
#18 /var/www/vhosts/mysite.com/httpdocs/app/code/core/Mage/Core/Block/Abstract.php(526): Mage_Core_Block_Abstract->_getChildHtml('left', true)
#19 /var/www/vhosts/mysite.com/httpdocs/app/design/frontend/pros/default/template/page/2columns-left.phtml(51): Mage_Core_Block_Abstract->getChildHtml('left')
#20 /var/www/vhosts/mysite.com/httpdocs/app/code/core/Mage/Core/Block/Template.php(241): include('/var/www/vhosts...')
#21 /var/www/vhosts/mysite.com/httpdocs/app/code/core/Mage/Core/Block/Template.php(272): Mage_Core_Block_Template->fetchView('frontend/proswi...')
#22 /var/www/vhosts/mysite.com/httpdocs/app/code/core/Mage/Core/Block/Template.php(286): Mage_Core_Block_Template->renderView()
#23 /var/www/vhosts/mysite.com/httpdocs/app/code/core/Mage/Core/Block/Abstract.php(863): Mage_Core_Block_Template->_toHtml()
#24 /var/www/vhosts/mysite.com/httpdocs/app/code/core/Mage/Core/Model/Layout.php(555): Mage_Core_Block_Abstract->toHtml()
#25 /var/www/vhosts/mysite.com/httpdocs/app/code/core/Mage/Core/Controller/Varien/Action.php(390): Mage_Core_Model_Layout->getOutput()
#26 /var/www/vhosts/mysite.com/httpdocs/app/code/core/Mage/CatalogSearch/controllers/ResultController.php(80): Mage_Core_Controller_Varien_Action->renderLayout()
#27 /var/www/vhosts/mysite.com/httpdocs/app/code/core/Mage/Core/Controller/Varien/Action.php(419): Mage_CatalogSearch_ResultController->indexAction()
#28 /var/www/vhosts/mysite.com/httpdocs/app/code/core/Mage/Core/Controller/Varien/Router/Standard.php(250): Mage_Core_Controller_Varien_Action->dispatch('index')
#29 /var/www/vhosts/mysite.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))
#30 /var/www/vhosts/mysite.com/httpdocs/app/code/core/Mage/Core/Model/App.php(354): Mage_Core_Controller_Varien_Front->dispatch()
#31 /var/www/vhosts/mysite.com/httpdocs/app/Mage.php(683): Mage_Core_Model_App->run(Array)
#32 /var/www/vhosts/mysite.com/httpdocs/index.php(80): Mage::run('', 'store')
#33 {main}
答案 0 :(得分:1)
如果将来任何人在Mana Dev分层导航栏中遇到同样的问题,这可能会有所帮助。您看到此错误,因为您已从系统中删除了mana dev正在使用的属性。现在,Mana dev插件保留了分层导航或搜索中使用的属性的副本,如果删除属性而不禁用搜索和分层导航,Mana Dev插件将尝试查找此插件,并且将无法处理该属性删除。
要解决此问题,只需在后端重新创建属性,但不要启用分层导航或搜索。这个错误会消失。
答案 1 :(得分:0)
重新索引所有数据(系统>索引管理)