douyan4900 2014-03-07 14:18
浏览 71
已采纳

Magento - 无效的块类型

Whenever I place an order using Buckaroo's Payment Guarantee method I get a message saying: Your payment was not successful. Please try again or choose another payment method.

The following stack trace code then gets added to the exception.log file:

   2014-03-07T14:10:26+00:00 ERR (3): 
    exception 'Mage_Core_Exception' with message 'Invalid blocktype: ' in /app/Mage.php:594
    Stack trace:
    #0 /app/code/core/Mage/Core/Model/Layout.php(495): Mage::throwException('Invalid blockty...')
    #1 /app/code/core/Mage/Core/Model/Layout.php(437): Mage_Core_Model_Layout->_getBlockInstance('', Array)
    #2 /app/code/core/Mage/Core/Model/Layout.php(472): Mage_Core_Model_Layout->createBlock('', 'cart_sidebar')
    #3 /app/code/core/Mage/Core/Model/Layout.php(239): Mage_Core_Model_Layout->addBlock('', 'cart_sidebar')
    #4 /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 /app/code/core/Mage/Core/Model/Layout.php(210): Mage_Core_Model_Layout->generateBlocks(Object(Mage_Core_Model_Layout_Element))
    #6 /app/code/core/Mage/Core/Controller/Varien/Action.php(344): Mage_Core_Model_Layout->generateBlocks()
    #7 /app/code/core/Mage/Catalog/controllers/CategoryController.php(146): Mage_Core_Controller_Varien_Action->generateLayoutBlocks()
    #8 /app/code/core/Mage/Core/Controller/Varien/Action.php(419): Mage_Catalog_CategoryController->viewAction()
    #9 /app/code/core/Mage/Core/Controller/Varien/Router/Standard.php(250): Mage_Core_Controller_Varien_Action->dispatch('view')
    #10 /app/code/core/Mage/Core/Controller/Varien/Front.php(176): Mage_Core_Controller_Varien_Router_Standard->match(Object(Mage_Core_Controller_Request_Http))
    #11 /app/code/core/Mage/Core/Model/App.php(354): Mage_Core_Controller_Varien_Front->dispatch()
    #12 /app/Mage.php(683): Mage_Core_Model_App->run(Array)
    #13 /index.php(87): Mage::run('', 'store')
    #14 {main}

It says invalid blocktype: and doesn't appear to display a name.

Don't suppose it has anything to do with this bit of code which creates a block in the form.phtml of the payment method?

<?php echo $this->getLayout()->createBlock('core/template')->setTemplate('buckaroo3extended/paymentguarantee/termsAndConditions.phtml')->toHtml();?>
  • 写回答

1条回答 默认 最新

  • douwanc63652 2014-03-07 14:31
    关注

    most probably there is a block declared in your layout file without a type.
    Something like this:

    <block name="cart_sidebar" ...>...</block>
    

    and it should be

    <block type="checkout/cart_sidebar" name="cart_sidebar">...</block>
    

    or it should be

    <reference name="cart_sidebar">...</reference>
    

    My money is on the second one. So look in your layout files for cart_sidebar.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥15 从键盘随机输入A-H中的一串字符串,用七段数码管方法进行绘制。提交代码及运行截图。
  • ¥15 TYPCE母转母,插入认方向
  • ¥15 如何用python向钉钉机器人发送可以放大的图片?
  • ¥15 matlab(相关搜索:紧聚焦)
  • ¥15 基于51单片机的厨房煤气泄露检测报警系统设计
  • ¥15 路易威登官网 里边的参数逆向
  • ¥15 Arduino无法同时连接多个hx711模块,如何解决?
  • ¥50 需求一个up主付费课程
  • ¥20 模型在y分布之外的数据上预测能力不好如何解决
  • ¥15 processing提取音乐节奏