异常'Mage_Core_Exception',消息'无效的块类型:Mage_Catalog_Block_Category_List'

时间:2012-11-12 19:05:55

标签: magento exception block categories

我在exception.log中反复出现以下错误。有关故障排除和跟踪的建议吗?我没有成功地确定问题。

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}

1 个答案:

答案 0 :(得分: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