Reputation: 716
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();?>
Upvotes: 2
Views: 6608
Reputation: 15216
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
.
Upvotes: 5