2012-11-07 77 views
0

我是一名magento開發人員,並且遇到問題。
問題是在目錄中搜索時,我在叫網頁搜索框中鍵入任何產品「Search entire store」。它給了我「There has been an error processing your request」,出現以下錯誤Magento在搜索產品目錄搜索時出錯

a:5:{i:0;s:94:"Invalid method Mage_Catalog_Block_Layer_Filter_Category::shouldDisplayProductCount(Array 
(
) 
)";i:1;s:4501:"#0 /home/furqan/projects/nashuatech-new/development/code/app/design/frontend/default/a015/template/catalog/layer/filter.phtml(42): Varien_Object->__call('shouldDisplayPr...', Array) 
#1 /home/furqan/projects/nashuatech-new/development/code/app/design/frontend/default/a015/template/catalog/layer/filter.phtml(42): Mage_Catalog_Block_Layer_Filter_Category->shouldDisplayProductCount() 
#2 /home/furqan/projects/nashuatech-new/development/code/app/code/core/Mage/Core/Block/Template.php(241): include('/home/furqan/pr...') 
#3 /home/furqan/projects/nashuatech-new/development/code/app/code/core/Mage/Core/Block/Template.php(272): Mage_Core_Block_Template->fetchView('frontend/defaul...') 
#4 /home/furqan/projects/nashuatech-new/development/code/app/code/core/Mage/Core/Block/Template.php(286): Mage_Core_Block_Template->renderView() 
#5 /home/furqan/projects/nashuatech-new/development/code/app/code/core/Mage/Catalog/Block/Layer/Filter/Abstract.php(136): Mage_Core_Block_Template->_toHtml() 
#6 /home/furqan/projects/nashuatech-new/development/code/app/design/frontend/default/a015/template/catalog/layer/view.phtml(51): Mage_Catalog_Block_Layer_Filter_Abstract->getHtml() 
#7 /home/furqan/projects/nashuatech-new/development/code/app/code/core/Mage/Core/Block/Template.php(241): include('/home/furqan/pr...') 
#8 /home/furqan/projects/nashuatech-new/development/code/app/code/core/Mage/Core/Block/Template.php(272): Mage_Core_Block_Template->fetchView('frontend/defaul...') 
#9 /home/furqan/projects/nashuatech-new/development/code/app/code/core/Mage/Core/Block/Template.php(286): Mage_Core_Block_Template->renderView() 
#10 /home/furqan/projects/nashuatech-new/development/code/app/code/core/Mage/Core/Block/Abstract.php(863): Mage_Core_Block_Template->_toHtml() 
#11 /home/furqan/projects/nashuatech-new/development/code/app/code/core/Mage/Core/Block/Text/List.php(43): Mage_Core_Block_Abstract->toHtml() 
#12 /home/furqan/projects/nashuatech-new/development/code/app/code/core/Mage/Core/Block/Abstract.php(863): Mage_Core_Block_Text_List->_toHtml() 
#13 /home/furqan/projects/nashuatech-new/development/code/app/code/core/Mage/Core/Block/Abstract.php(582): Mage_Core_Block_Abstract->toHtml() 
#14 /home/furqan/projects/nashuatech-new/development/code/app/code/core/Mage/Core/Block/Abstract.php(526): Mage_Core_Block_Abstract->_getChildHtml('left', true) 
#15 /home/furqan/projects/nashuatech-new/development/code/app/design/frontend/default/a015/template/page/3columns.phtml(26): Mage_Core_Block_Abstract->getChildHtml('left') 
#16 /home/furqan/projects/nashuatech-new/development/code/app/code/core/Mage/Core/Block/Template.php(241): include('/home/furqan/pr...') 
#17 /home/furqan/projects/nashuatech-new/development/code/app/code/core/Mage/Core/Block/Template.php(272): Mage_Core_Block_Template->fetchView('frontend/defaul...') 
#18 /home/furqan/projects/nashuatech-new/development/code/app/code/core/Mage/Core/Block/Template.php(286): Mage_Core_Block_Template->renderView() 
#19 /home/furqan/projects/nashuatech-new/development/code/app/code/core/Mage/Core/Block/Abstract.php(863): Mage_Core_Block_Template->_toHtml() 
#20 /home/furqan/projects/nashuatech-new/development/code/app/code/core/Mage/Core/Model/Layout.php(529): Mage_Core_Block_Abstract->toHtml() 
#21 /home/furqan/projects/nashuatech-new/development/code/app/code/core/Mage/Core/Controller/Varien/Action.php(391): Mage_Core_Model_Layout->getOutput() 
#22 /home/furqan/projects/nashuatech-new/development/code/app/code/core/Mage/CatalogSearch/controllers/ResultController.php(80): Mage_Core_Controller_Varien_Action->renderLayout() 
#23 /home/furqan/projects/nashuatech-new/development/code/app/code/core/Mage/Core/Controller/Varien/Action.php(420): Mage_CatalogSearch_ResultController->indexAction() 
#24 /home/furqan/projects/nashuatech-new/development/code/app/code/core/Mage/Core/Controller/Varien/Router/Standard.php(250): Mage_Core_Controller_Varien_Action->dispatch('index') 
#25 /home/furqan/projects/nashuatech-new/development/code/app/code/core/Mage/Core/Controller/Varien/Front.php(176): Mage_Core_Controller_Varien_Router_Standard->match(Object(Mage_Core_Controller_Request_Http)) 
#26 /home/furqan/projects/nashuatech-new/development/code/app/code/core/Mage/Core/Model/App.php(349): Mage_Core_Controller_Varien_Front->dispatch() 
#27 /home/furqan/projects/nashuatech-new/development/code/app/Mage.php(640): Mage_Core_Model_App->run(Array) 
#28 /home/furqan/projects/nashuatech-new/development/code/index.php(80): Mage::run('', 'store') 
#29 {main}";s:3:"url";s:32:"/index.php/catalogsearch/result/";s:11:"script_name";s:10:"/index.php";s:4:"skin";s:7:"default";} 

任何幫助將高度讚賞 問候, Furqan艾哈邁德

回答

0

我的猜測是,你正在使用的主題與功能,而沒有定義的方法來計算的搜索結果,因此錯誤「」無效的方法Mage_Catalog_Block_Layer_Filter_Category :: shouldDisplayProductCount

嘗試一個默認主題,看它是否有效。

+0

非常感謝您解決我的問題。 –