LazyCircles Posted September 12, 2019 Share Posted September 12, 2019 Hello community, I'm configuring some types of discounts on our store and found a weird bug related with the cart summary (it is not theme related because I changed to the default one and the error still appears). So, I was configuring a simple buy 2 get 3 products but when I try add the third product, the ajax add to cart goes infinite loading and the page after 30 seconds +/- gives a HTTP ERROR 431 (in chrome), blank page (Firefox). After this I've enabled debug mode to check where the problem is and got this: (1/1) ContextErrorException Notice: Undefined index: type in fbf466c98aad8a0e96aa48871c6ef2e183b76a3c_2.file.cart-detailed-totals.tpl.php line 65 at Block_9184007405d7a5b53182c01_59568213->callBlock(object(SmartyDevTemplate))in smarty_internal_runtime_inheritance.php line 248 at Smarty_Internal_Runtime_Inheritance->callBlock(object(Block_9184007405d7a5b53182c01_59568213), object(SmartyDevTemplate))in smarty_internal_runtime_inheritance.php line 184 at Smarty_Internal_Runtime_Inheritance->process(object(SmartyDevTemplate), object(Block_9184007405d7a5b53182c01_59568213))in smarty_internal_runtime_inheritance.php line 156 at Smarty_Internal_Runtime_Inheritance->instanceBlock(object(SmartyDevTemplate), 'Block_9184007405d7a5b53182c01_59568213', 'cart_detailed_totals')in fbf466c98aad8a0e96aa48871c6ef2e183b76a3c_2.file.cart-detailed-totals.tpl.php line 27 at content_5d7a5b5318f583_75821342(object(SmartyDevTemplate))in smarty_template_resource_base.php line 123 at Smarty_Template_Resource_Base->getRenderedTemplateCode(object(SmartyDevTemplate))in smarty_template_compiled.php line 114 at Smarty_Template_Compiled->render(object(SmartyDevTemplate))in smarty_internal_template.php line 216 at Smarty_Internal_Template->render()in smarty_internal_template.php line 385 at Smarty_Internal_Template->_subTemplateRender('file:checkout/_partials/cart-detailed-totals.tpl', null, 'layouts/layout-full-width.tpl', 0, 3600, array('cart' => array('products' => array(object(ProductListingLazyArray)), 'totals' => array('total' => array('type' => 'total', 'label' => 'Total', 'amount' => 23.989999999999998436805981327779591083526611328125, 'value' => '23,99 €'), 'total_including_tax' => array('type' => 'total', 'label' => 'Total (com IVA)', 'amount' => 23.989999999999998436805981327779591083526611328125, 'value' => '23,99 €'), 'total_excluding_tax' => array('type' => 'total', 'label' => 'Total (sem IVA)', 'amount' => 20.25, 'value' => '20,25 €')), 'subtotals' => array('products' => array('type' => 'products', 'label' => 'Subtotal', 'amount' => 19.989999999999998436805981327779591083526611328125, 'value' => '19,99 €'), 'discounts' => null, 'shipping' => array('type' => 'shipping', 'label' => 'Envio', 'amount' => 4.0, 'value' => '4,00 €'), 'tax' => array('amount' => 3.739999999999998436805981327779591083526611328125, 'value' => '3,74 €')), 'products_count' => 1, 'summary_string' => '1 artigo', 'labels' => array('tax_short' => '(com IVA)', 'tax_long' => '(com IVA)'), 'id_address_delivery' => '0', 'id_address_invoice' => '0', 'is_virtual' => false, 'vouchers' => array('allowed' => 0, 'added' => array()), 'discounts' => array(), 'minimalPurchase' => 0.0, 'minimalPurchaseRequired' => '')), 0, false)in 522290521445181ac29b3596300869f5371e96c3_2.file.cart.tpl.php line 92 at Block_21067647675d7a5b52f21c64_64400678->callBlock(object(SmartyDevTemplate))in smarty_internal_runtime_inheritance.php line 248 at Smarty_Internal_Runtime_Inheritance->callBlock(object(Block_21067647675d7a5b52f21c64_64400678), object(SmartyDevTemplate))in smarty_internal_runtime_inheritance.php line 184 at Smarty_Internal_Runtime_Inheritance->process(object(SmartyDevTemplate), object(Block_21067647675d7a5b52f21c64_64400678))in smarty_internal_runtime_inheritance.php line 156 at Smarty_Internal_Runtime_Inheritance->instanceBlock(object(SmartyDevTemplate), 'Block_21067647675d7a5b52f21c64_64400678', 'cart_totals', 0)in 522290521445181ac29b3596300869f5371e96c3_2.file.cart.tpl.php line 124 at Block_13800303165d7a5b52f205e9_15076645->callBlock(object(SmartyDevTemplate))in smarty_internal_runtime_inheritance.php line 248 at Smarty_Internal_Runtime_Inheritance->callBlock(object(Block_13800303165d7a5b52f205e9_15076645), object(SmartyDevTemplate))in smarty_internal_runtime_inheritance.php line 184 at Smarty_Internal_Runtime_Inheritance->process(object(SmartyDevTemplate), object(Block_13800303165d7a5b52f205e9_15076645))in smarty_internal_runtime_inheritance.php line 156 at Smarty_Internal_Runtime_Inheritance->instanceBlock(object(SmartyDevTemplate), 'Block_13800303165d7a5b52f205e9_15076645', 'cart_summary', 0)in 522290521445181ac29b3596300869f5371e96c3_2.file.cart.tpl.php line 229 at Block_2030122525d7a5b52f13613_34143871->callBlock(object(SmartyDevTemplate))in smarty_internal_runtime_inheritance.php line 248 at Smarty_Internal_Runtime_Inheritance->callBlock(object(Block_2030122525d7a5b52f13613_34143871), object(SmartyDevTemplate))in smarty_internal_runtime_inheritance.php line 184 at Smarty_Internal_Runtime_Inheritance->process(object(SmartyDevTemplate), object(Block_2030122525d7a5b52f13613_34143871), object(Block_8334081535d7a5b48443da6_61631374))in smarty_internal_runtime_inheritance.php line 186 at Smarty_Internal_Runtime_Inheritance->process(object(SmartyDevTemplate), object(Block_8334081535d7a5b48443da6_61631374))in smarty_internal_runtime_inheritance.php line 156 at Smarty_Internal_Runtime_Inheritance->instanceBlock(object(SmartyDevTemplate), 'Block_8334081535d7a5b48443da6_61631374', 'content', 1)in 407d09513c1a60f33de6e978e6278da6d1e09160_2.file.layout-full-width.tpl.php line 99 at Block_10079737305d7a5b48443748_92557806->callBlock(object(SmartyDevTemplate))in smarty_internal_runtime_inheritance.php line 248 at Smarty_Internal_Runtime_Inheritance->callBlock(object(Block_10079737305d7a5b48443748_92557806), object(SmartyDevTemplate))in smarty_internal_runtime_inheritance.php line 184 at Smarty_Internal_Runtime_Inheritance->process(object(SmartyDevTemplate), object(Block_10079737305d7a5b48443748_92557806), object(Block_1165697815d7a5b48463ce8_61053862))in smarty_internal_runtime_inheritance.php line 186 at Smarty_Internal_Runtime_Inheritance->process(object(SmartyDevTemplate), object(Block_1165697815d7a5b48463ce8_61053862))in smarty_internal_runtime_inheritance.php line 156 at Smarty_Internal_Runtime_Inheritance->instanceBlock(object(SmartyDevTemplate), 'Block_1165697815d7a5b48463ce8_61053862', 'content_wrapper')in bdff6cb00fc5f71e18799ed058ad5e6937dbe828_2.file.layout-both-columns.tpl.php line 139 at content_5d7a5b4846bc06_74880217(object(SmartyDevTemplate))in smarty_template_resource_base.php line 123 at Smarty_Template_Resource_Base->getRenderedTemplateCode(object(SmartyDevTemplate))in smarty_template_compiled.php line 114 at Smarty_Template_Compiled->render(object(SmartyDevTemplate))in smarty_internal_template.php line 216 at Smarty_Internal_Template->render()in smarty_internal_template.php line 385 at Smarty_Internal_Template->_subTemplateRender('layouts/layout-both-columns.tpl', null, 'layouts/layout-full-width.tpl', 0, 3600, array(), 2, false, null, null)in smarty_internal_runtime_inheritance.php line 125 at Smarty_Internal_Runtime_Inheritance->endChild(object(SmartyDevTemplate), 'layouts/layout-both-columns.tpl')in 407d09513c1a60f33de6e978e6278da6d1e09160_2.file.layout-full-width.tpl.php line 42 at content_5d7a5b48444928_52685403(object(SmartyDevTemplate))in smarty_template_resource_base.php line 123 at Smarty_Template_Resource_Base->getRenderedTemplateCode(object(SmartyDevTemplate))in smarty_template_compiled.php line 114 at Smarty_Template_Compiled->render(object(SmartyDevTemplate))in smarty_internal_template.php line 216 at Smarty_Internal_Template->render()in smarty_internal_template.php line 385 at Smarty_Internal_Template->_subTemplateRender('layouts/layout-full-width.tpl', null, 'layouts/layout-full-width.tpl', 0, 3600, array(), 2, false, null, null)in smarty_internal_runtime_inheritance.php line 125 at Smarty_Internal_Runtime_Inheritance->endChild(object(SmartyDevTemplate), 'layouts/layout-full-width.tpl')in 522290521445181ac29b3596300869f5371e96c3_2.file.cart.tpl.php line 34 at content_5d7a5b52f25ce1_77661261(object(SmartyDevTemplate))in smarty_template_resource_base.php line 123 at Smarty_Template_Resource_Base->getRenderedTemplateCode(object(SmartyDevTemplate))in smarty_template_compiled.php line 114 at Smarty_Template_Compiled->render(object(SmartyDevTemplate))in smarty_internal_template.php line 216 at Smarty_Internal_Template->render(false, 0)in smarty_internal_templatebase.php line 232 at Smarty_Internal_TemplateBase->_execute(object(SmartyDevTemplate), null, 'layouts/layout-full-width.tpl', null, 0)in smarty_internal_templatebase.php line 116 at Smarty_Internal_TemplateBase->fetch('checkout/cart.tpl', null, 'layouts/layout-full-width.tpl', null, false, true, false)in SmartyDev.php line 40 at SmartyDev->fetch('checkout/cart.tpl', null, 'layouts/layout-full-width.tpl')in FrontController.php line 683 at FrontControllerCore->smartyOutputContent('checkout/cart.tpl')in FrontController.php line 667 at FrontControllerCore->display()in Controller.php line 312 at ControllerCore->run()in Dispatcher.php line 515 at DispatcherCore->dispatch()in index.php line 28 This alert appears everytime I go to the cart summary with or without the discount active. I've commented the content of cart-detailed-totals.tpl and the error doens't show up but I don't think that's the way to solve this problem. I'll leave the discount configuration in the attachments. Let me know if I wasn't clear enough. Thank you for your attention, KR, Bruno Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now