Magento无效的块类型聚光灯

时间:2015-04-23 14:54:48

标签: magento

在我的exception.log文件中,我有以下消息:

2015-04-23T14:43:40+00:00 ERR (3): 
exception 'Mage_Core_Exception' with message 'Invalid blocktype:   
Mage_Page_Block_Html_Spotlight' in /public_html/app/Mage.php:595
Stack trace:
#0/public_html/app/code/core/Mage/Core/Model/Layout.php(495): 
Mage::throwException('Invalid blockt...')
#1 /public_html/app/code/core/Mage/Core/Model/Layout.php(437): 
Mage_Core_Model_Layout->_getBlockInstance('page/html_spotl...', Array)
#2 /public_html/app/code/core/Mage/Core/Model/Layout.php(472):   
Mage_Core_Model_Layout->createBlock('page/html_spotl...', 'spotlight')
#3 /public_html/app/code/core/Mage/Core/Model/Layout.php(239):   
Mage_Core_Model_Layout->addBlock('page/html_spotl...', 'spotlight')
#4 /public_html/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 /public_html/app/code/core/Mage/Core/Model/Layout.php(206):   
Mage_Core_Model_Layout->generateBlocks(Object(Mage_Core_Model_Layout_Element))
#6 /public_html/app/code/core/Mage/Core/Controller/Varien/Action.php(344): Mage_Core_Model_Layout->generateBlocks()
#7 /public_html/app/code/core/Mage/Catalog/controllers/CategoryController.php(148): Mage_Core_Controller_Varien_Action->generateLayoutBlocks()
#8 /public_html/app/code/core/Mage/Core/Controller/Varien/Action.php(419): Mage_Catalog_CategoryController->viewAction()
#9 /public_html/app/code/core/Mage/Core/Controller/Varien/Router/Standard.php(250): Mage_Core_Controller_Varien_Action->dispatch('view')
#10 /public_html/app/code/core/Mage/Core/Controller/Varien/Front.php(172): Mage_Core_Controller_Varien_Router_Standard->match(Object(Mage_Core_Controller_Request_Http))
#11 /public_html/app/code/core/Mage/Core/Model/App.php(354): Mage_Core_Controller_Varien_Front->dispatch()
#12 /public_html/app/Mage.php(684): Mage_Core_Model_App->run(Array)
#13 /public_html/index.php(89): Mage::run('', 'store')
#14 {main}

我查看了模板文件,但是找不到任何包含或命名为“聚光灯”的文件,我认为它不是标准的Magento。我也相信这个错误导致购物车页面呈现错误,这可能吗?

1 个答案:

答案 0 :(得分:0)

您应该查看布局文件,而不是模板文件。在布局中的某处添加了类型为page/html_spotlight的块。 extension from this guide可以帮助您确定添加的位置。