错误日志:无效的块类型

时间:2016-02-10 13:01:07

标签: magento exception bundle cart error-log

当我调用Prouctdetailpage时,我的exception.log显示以下错误:

    exception 'Mage_Core_Exception' with message 'Invalid block type: Mage_Bundle_Block_Catalog' in /var/www/musterprojekt.com/htdocs/app/Mage.php:603
Stack trace:
0 /var/www/musterprojekt.com/htdocs/app/code/core/Mage/Core/Model/Layout.php(495): Mage::throwException('Invalid block t...')
1 /var/www/musterprojekt.com/htdocs/app/code/core/Mage/Core/Model/Layout.php(437): Mage_Core_Model_Layout->_getBlockInstance('bundle/catalog/...', Array)
2 /var/www/musterprojekt.com/htdocs/app/code/core/Mage/Core/Model/Layout.php(472): Mage_Core_Model_Layout->createBlock('bundle/catalog/...', 'germansetup.del...')
3 /var/www/musterprojekt.com/htdocs/app/code/core/Mage/Core/Model/Layout.php(239): Mage_Core_Model_Layout->addBlock('bundle/catalog/...', 'germansetup.del...')
4 /var/www/musterprojekt.com/htdocs/app/code/core/Mage/Core/Model/Layout.php(205): Mage_Core_Model_Layout->_generateBlock(Object(Mage_Core_Model_Layout_Element), Object(Mage_Core_Model_Layout_Element))
5 /var/www/musterprojekt.com/htdocs/app/code/core/Mage/Core/Model/Layout.php(210): Mage_Core_Model_Layout->generateBlocks(Object(Mage_Core_Model_Layout_Element))
6 /var/www/musterprojekt.com/htdocs/app/code/core/Mage/Core/Controller/Varien/Action.php(344): Mage_Core_Model_Layout->generateBlocks()
7 /var/www/musterprojekt.com/htdocs/app/code/core/Mage/Catalog/Helper/Product/View.php(73): Mage_Core_Controller_Varien_Action->generateLayoutBlocks()
8 /var/www/musterprojekt.com/htdocs/app/code/core/Mage/Catalog/Helper/Product/View.php(144): Mage_Catalog_Helper_Product_View->initProductLayout(Object(Mage_Catalog_Model_Product), Object(Mage_Catalog_ProductController))
9 /var/www/musterprojekt.com/htdocs/app/code/core/Mage/Catalog/controllers/ProductController.php(132): Mage_Catalog_Helper_Product_View->prepareAndRender(494, Object(Mage_Catalog_ProductController), Object(Varien_Object))
10 /var/www/musterprojekt.com/htdocs/app/code/core/Mage/Core/Controller/Varien/Action.php(418): Mage_Catalog_ProductController->viewAction()
11 /var/www/musterprojekt.com/htdocs/app/code/core/Mage/Core/Controller/Varien/Router/Standard.php(254): Mage_Core_Controller_Varien_Action->dispatch('view')
12 /var/www/musterprojekt.com/htdocs/app/code/core/Mage/Core/Controller/Varien/Front.php(172): Mage_Core_Controller_Varien_Router_Standard->match(Object(Mage_Core_Controller_Request_Http))
13 /var/www/musterprojekt.com/htdocs/app/code/core/Mage/Core/Model/App.php(365): Mage_Core_Controller_Varien_Front->dispatch()
14 /var/www/musterprojekt.com/htdocs/app/Mage.php(692): Mage_Core_Model_App->run(Array)
15 /var/www/musterprojekt.com/htdocs/index.php(161): Mage::run('2', 'store')
16
{main}


exception 'Mage_Core_Exception' with message 'Invalid block type: Mage_Catalog_Block_Product_View_Type_Bundle' in /var/www/musterprojekt.com/git/20160208/app/Mage.php:595
Stack trace:
0 /var/www/musterprojekt.com/git/20160208/app/code/core/Mage/Core/Model/Layout.php(495): Mage::throwException('Invalid block t...')
1 /var/www/musterprojekt.com/git/20160208/app/code/core/Mage/Core/Model/Layout.php(437): Mage_Core_Model_Layout->_getBlockInstance('catalog/product...', Array)
2 /var/www/musterprojekt.com/git/20160208/app/code/core/Mage/Core/Model/Layout.php(472): Mage_Core_Model_Layout->createBlock('catalog/product...', 'product.info.bu...')
3 /var/www/musterprojekt.com/git/20160208/app/code/core/Mage/Core/Model/Layout.php(239): Mage_Core_Model_Layout->addBlock('catalog/product...', 'product.info.bu...')
4 /var/www/musterprojekt.com/git/20160208/app/code/core/Mage/Core/Model/Layout.php(205): Mage_Core_Model_Layout->_generateBlock(Object(Mage_Core_Model_Layout_Element), Object(Mage_Core_Model_Layout_Element))
5 /var/www/musterprojekt.com/git/20160208/app/code/core/Mage/Core/Model/Layout.php(210): Mage_Core_Model_Layout->generateBlocks(Object(Mage_Core_Model_Layout_Element))
6 /var/www/musterprojekt.com/git/20160208/app/code/core/Mage/Core/Controller/Varien/Action.php(344): Mage_Core_Model_Layout->generateBlocks()
7 /var/www/musterprojekt.com/git/20160208/app/code/core/Mage/Catalog/Helper/Product/View.php(73): Mage_Core_Controller_Varien_Action->generateLayoutBlocks()
8 /var/www/musterprojekt.com/git/20160208/app/code/core/Mage/Catalog/Helper/Product/View.php(144): Mage_Catalog_Helper_Product_View->initProductLayout(Object(Mage_Catalog_Model_Product), Object(Mage_Catalog_ProductController))
9 /var/www/musterprojekt.com/git/20160208/app/code/core/Mage/Catalog/controllers/ProductController.php(132): Mage_Catalog_Helper_Product_View->prepareAndRender(492, Object(Mage_Catalog_ProductController), Object(Varien_Object))
10 /var/www/musterprojekt.com/git/20160208/app/code/core/Mage/Core/Controller/Varien/Action.php(418): Mage_Catalog_ProductController->viewAction()
11 /var/www/musterprojekt.com/git/20160208/app/code/core/Mage/Core/Controller/Varien/Router/Standard.php(254): Mage_Core_Controller_Varien_Action->dispatch('view')
12 /var/www/musterprojekt.com/git/20160208/app/code/core/Mage/Core/Controller/Varien/Front.php(172): Mage_Core_Controller_Varien_Router_Standard->match(Object(Mage_Core_Controller_Request_Http))
13 /var/www/musterprojekt.com/git/20160208/app/code/core/Mage/Core/Model/App.php(365): Mage_Core_Controller_Varien_Front->dispatch()
14 /var/www/musterprojekt.com/git/20160208/app/Mage.php(684): Mage_Core_Model_App->run(Array)
15 /var/www/musterprojekt.com/git/20160208/index.php(169): Mage::run('2', 'store')
16 {main}

我实际上无法找到原因。

我希望你能帮助我:)。

明斯特的问候!

1 个答案:

答案 0 :(得分:0)

从我所看到的,你以错误的方式调用该块:

1 /var/www/musterprojekt.com/htdocs/app/code/core/Mage/Core/Model/Layout.php(437): Mage_Core_Model_Layout->_getBlockInstance('bundle/catalog/...', Array)
2 /var/www/musterprojekt.com/htdocs/app/code/core/Mage/Core/Model/Layout.php(472): Mage_Core_Model_Layout->createBlock('bundle/catalog/...', 'germansetup.del...')
3 /var/www/musterprojekt.com/htdocs/app/code/core/Mage/Core/Model/Layout.php(239): Mage_Core_Model_Layout->addBlock('bundle/catalog/...', 'germansetup.del...')

尝试这样做:在布局中捆绑/编目/,并将第一个符号后的斜杠更改为_。

以下是块类型的示例:bundle / catalog_product_price