gpt4 book ai didi

Magento:无效的 block 类型

转载 作者:行者123 更新时间:2023-12-01 13:49:11 25 4
gpt4 key购买 nike

我得到以下异常(exception)情况。不幸的是,我真的无法在互联网上找到解决方案。

由于这些异常刚刚出现,当我激活 OneStepCheckout 扩展程序时,我认为这是这个问题。

商店里一切正常(据我测试),但我认为应该始终注意异常(exception)情况。

我已经尝试过对 Mage_Braintree_* 进行文件搜索,但没有找到任何内容。

有什么建议吗?

2015-10-20T13:57:19+00:00 ERR (3): 
exception 'Mage_Core_Exception' with message 'Ungültiger Blocktyp: Mage_Braintree_Payments_Block_Datajs' in /htdocs/app/Mage.php:595
Stack trace:
#0 /htdocs/app/code/core/Mage/Core/Model/Layout.php(495): Mage::throwException('Ung\xC3\xBCltiger Blo...')
#1 /htdocs/app/code/core/Mage/Core/Model/Layout.php(437): Mage_Core_Model_Layout->_getBlockInstance('braintree_payme...', Array)
#2 /htdocs/app/code/core/Mage/Core/Model/Layout.php(472): Mage_Core_Model_Layout->createBlock('braintree_payme...', 'braintree_payme...')
#3 /htdocs/app/code/core/Mage/Core/Model/Layout.php(239): Mage_Core_Model_Layout->addBlock('braintree_payme...', 'braintree_payme...')
#4 /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 /htdocs/app/code/core/Mage/Core/Model/Layout.php(210): Mage_Core_Model_Layout->generateBlocks(Object(Mage_Core_Model_Layout_Element))
#6 /htdocs/app/code/core/Mage/Core/Controller/Varien/Action.php(344): Mage_Core_Model_Layout->generateBlocks()
#7 /htdocs/app/code/core/Mage/Core/Controller/Varien/Action.php(269): Mage_Core_Controller_Varien_Action->generateLayoutBlocks()
#8 /htdocs/app/code/local/Lotusbreath/OneStepCheckout/controllers/IndexController.php(97): Mage_Core_Controller_Varien_Action->loadLayout()
#9 /htdocs/app/code/core/Mage/Core/Controller/Varien/Action.php(418): Lotusbreath_OneStepCheckout_IndexController->indexAction()
#10 /htdocs/app/code/core/Mage/Core/Controller/Varien/Router/Standard.php(254): Mage_Core_Controller_Varien_Action->dispatch('index')
#11 /htdocs/app/code/core/Mage/Core/Controller/Varien/Front.php(172): Mage_Core_Controller_Varien_Router_Standard->match(Object(Mage_Core_Controller_Request_Http))
#12 /htdocs/app/code/core/Mage/Core/Model/App.php(365): Mage_Core_Controller_Varien_Front->dispatch()
#13 /htdocs/app/Mage.php(684): Mage_Core_Model_App->run(Array)
#14 /htdocs/index.php(83): Mage::run('', 'store')
#15 {main}
2015-10-20T13:57:19+00:00 ERR (3):
exception 'Mage_Core_Exception' with message 'Ungültiger Blocktyp: Mage_Braintree_Payments_Block_Form' in /htdocs/app/Mage.php:595
Stack trace:
#0 /htdocs/app/code/core/Mage/Core/Model/Layout.php(495): Mage::throwException('Ung\xC3\xBCltiger Blo...')
#1 /htdocs/app/code/core/Mage/Core/Model/Layout.php(437): Mage_Core_Model_Layout->_getBlockInstance('braintree_payme...', Array)
#2 /htdocs/app/code/core/Mage/Core/Model/Layout.php(472): Mage_Core_Model_Layout->createBlock('braintree_payme...', 'payment.form.br...')
#3 /htdocs/app/code/core/Mage/Core/Model/Layout.php(239): Mage_Core_Model_Layout->addBlock('braintree_payme...', 'payment.form.br...')
#4 /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 /htdocs/app/code/core/Mage/Core/Model/Layout.php(210): Mage_Core_Model_Layout->generateBlocks(Object(Mage_Core_Model_Layout_Element))
#6 /htdocs/app/code/core/Mage/Core/Controller/Varien/Action.php(344): Mage_Core_Model_Layout->generateBlocks()
#7 /htdocs/app/code/core/Mage/Core/Controller/Varien/Action.php(269): Mage_Core_Controller_Varien_Action->generateLayoutBlocks()
#8 /htdocs/app/code/local/Lotusbreath/OneStepCheckout/controllers/IndexController.php(97): Mage_Core_Controller_Varien_Action->loadLayout()
#9 /htdocs/app/code/core/Mage/Core/Controller/Varien/Action.php(418): Lotusbreath_OneStepCheckout_IndexController->indexAction()
#10 /htdocs/app/code/core/Mage/Core/Controller/Varien/Router/Standard.php(254): Mage_Core_Controller_Varien_Action->dispatch('index')
#11 /htdocs/app/code/core/Mage/Core/Controller/Varien/Front.php(172): Mage_Core_Controller_Varien_Router_Standard->match(Object(Mage_Core_Controller_Request_Http))
#12 /htdocs/app/code/core/Mage/Core/Model/App.php(365): Mage_Core_Controller_Varien_Front->dispatch()
#13 /htdocs/app/Mage.php(684): Mage_Core_Model_App->run(Array)
#14 /htdocs/index.php(83): Mage::run('', 'store')
#15 {main}

编辑:感谢 Prakash Thapa。我在 app/design/frontend/base/default/layout/lotusbreath/onestepcheckout.xml 中找到了一个 braintree 部分

<!-- For braintree -->
<lotusbreath_onestepcheckout_index_index>
<reference name="head">
<action method="addJs" ifconfig="payment/braintree/active"><file>braintree/braintree-1.3.4.js</file></action>
<action method="addCss" ifconfig="payment/braintree/active"><stylesheet>braintree/css/braintree.css</stylesheet></action>
</reference>
<reference name="before_body_end">
<block type="braintree_payments/datajs" ifconfig="payment/braintree/active" name="braintree_payments_data_js" template="lotusbreath/onestepcheckout/braintree/data_js.phtml" />
<block type="braintree_payments/form" ifconfig="payment/braintree/active" name="payment.form.braintree" template="lotusbreath/onestepcheckout/braintree/review_js.phtml">
<action method="setMethodInfo"></action>
</block>
</reference>
</lotusbreath_onestepcheckout_index_index>

由于我没有使用任何 braintree 支付扩展,我应该删除这部分还是应该如何处理?

就目前而言,似乎只是删除(或注释掉)该部分效果很好。

最佳答案

此错误是由于布局 xml 中的无效 block 类型而发生的,例如

 <reference name="....">
<block type=".." />
</reference>

尝试在 app/design/frontend/base/default/layout/EXTENSION_LAYOUT.xml 中找到问题设计布局EXTENSION_LAYOUT.xml 可以是 braintree.xml 之类的任何东西。

关于Magento:无效的 block 类型,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/33239256/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com