2012-11-12 25 views
1

我在我的異常.log中反覆出現以下錯誤。任何關於故障排除和追蹤的建議?我在確定問題方面沒有取得任何成功。異常'Mage_Core_Exception'帶有消息'無效塊類型:Mage_Catalog_Block_Category_List'

exception 'Mage_Core_Exception' with message 'Invalid block type: Mage_Catalog_Block_Category_List' in /chroot/home/mysite/mywebsite/html/app/Mage.php:550 
Stack trace: 
#0 /chroot/home/mysite/mywebsite/html/app/code/core/Mage/Core/Model/Layout.php(469): Mage::throwException('Invalid block t...') 
#1 /chroot/home/mysite/mywebsite/html/app/code/core/Mage/Core/Model/Layout.php(411): Mage_Core_Model_Layout->_getBlockInstance('catalog/categor...', Array) 
#2 /chroot/home/mysite/mywebsite/html/app/code/core/Mage/Core/Model/Layout.php(446): Mage_Core_Model_Layout->createBlock('catalog/categor...', 'catalog.categor...') 
#3 /chroot/home/mysite/mywebsite/html/app/code/core/Mage/Core/Model/Layout.php(238): Mage_Core_Model_Layout->addBlock('catalog/categor...', 'catalog.categor...') 
#4 /chroot/home/mysite/mywebsite/html/app/code/core/Mage/Core/Model/Layout.php(204): Mage_Core_Model_Layout->_generateBlock(Object(Mage_Core_Model_Layout_Element), Object(Mage_Core_Model_Layout_Element)) 
#5 /chroot/home/mysite/mywebsite/html/app/code/core/Mage/Core/Model/Layout.php(209): Mage_Core_Model_Layout->generateBlocks(Object(Mage_Core_Model_Layout_Element)) 
#6 /chroot/home/mysite/mywebsite/html/app/code/core/Mage/Core/Controller/Varien/Action.php(343): Mage_Core_Model_Layout->generateBlocks() 
#7 /chroot/home/mysite/mywebsite/html/app/code/core/Mage/Catalog/controllers/ProductController.php(115): Mage_Core_Controller_Varien_Action->generateLayoutBlocks() 
#8 /chroot/home/mysite/mywebsite/html/app/code/core/Mage/Catalog/controllers/ProductController.php(149): Mage_Catalog_ProductController->_initProductLayout(Object(Mage_Catalog_Model_Product)) 
#9 /chroot/home/mysite/mywebsite/html/app/code/core/Mage/Core/Controller/Varien/Action.php(418): Mage_Catalog_ProductController->viewAction() 
#10 /chroot/home/mysite/mywebsite/html/app/code/core/Mage/Core/Controller/Varien/Router/Standard.php(254): Mage_Core_Controller_Varien_Action->dispatch('view') 
#11 /chroot/home/mysite/mywebsite/html/app/code/core/Mage/Core/Controller/Varien/Front.php(177): Mage_Core_Controller_Varien_Router_Standard->match(Object(Mage_Core_Controller_Request_Http)) 
#12 /chroot/home/mysite/mywebsite/html/app/code/core/Mage/Core/Model/App.php(304): Mage_Core_Controller_Varien_Front->dispatch() 
#13 /chroot/home/mysite/mywebsite/html/app/Mage.php(596): Mage_Core_Model_App->run(Array) 
#14 /chroot/home/mysite/mywebsite/html/index.php(78): Mage::run('', 'store') 
#15 {main} 

回答

2

是否

Mage_Catalog_Block_Category_List 

爲一類存在兩種:

app/code/core/Mage/Catalog/Block/Category 

app/code/local/Mage/Catalog/Block/Category 

我運行Magento的1.7和無法找到類。也許你正在尋找:

Mage_Catalog_Block_Product_List 
+1

是或Mage_Catalog_Block_Category_View。您必須在xml佈局中錯誤地鍵入塊。在catalog.xml佈局文件中搜索「目錄/類別」 –

+1

謝謝!我在「目錄產品視圖(任何)」部分找到了違規代碼。「我剛剛發表了評論。它看起來像有人試圖按照這個線程,但從來沒有正確完成。沒有相應的phtml文件。 http://www.magentocommerce.com/boards/viewthread/9632/ – Ryan

相關問題