Bonjour,
Je me permets de poster ma demande ici, concernant une erreur 500 en mode Debug uniquement, sur la page panier (pas d'impact sur le fonctionnement à priori en mode "normal").
Je suis sur un Prestashop 1.7.8.11, PHP 7.4 (le bug n'est pas présent avec PHP 7.3), voici le détail de l'erreur :
(1/1) ContextErrorException
Notice: Trying to access array offset on value of type null
in 7ef2c096b2f1ecb6d7d709d6bb492069014e16ff_2.file.cart-detailed-totals.tpl.php line 85
at Block_1333018932664c8c7121b752_80457601->callBlock(object(SmartyDevTemplate))
in smarty_internal_runtime_inheritance.php line 248
at Smarty_Internal_Runtime_Inheritance->callBlock(object(Block_1333018932664c8c7121b752_80457601), object(SmartyDevTemplate))
in smarty_internal_runtime_inheritance.php line 184
at Smarty_Internal_Runtime_Inheritance->process(object(SmartyDevTemplate), object(Block_1333018932664c8c7121b752_80457601))
in smarty_internal_runtime_inheritance.php line 156
at Smarty_Internal_Runtime_Inheritance->instanceBlock(object(SmartyDevTemplate), 'Block_1333018932664c8c7121b752_80457601', 'cart_detailed_totals')
in 7ef2c096b2f1ecb6d7d709d6bb492069014e16ff_2.file.cart-detailed-totals.tpl.php line 28
at content_664c8c71224f86_73190409(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, 'blck-childlayouts/layout-full-width.tpl', 0, 3600, array('cart' => array('products' => array(), 'totals' => array('total' => array('type' => 'total', 'label' => 'Total', 'amount' => 0.0, 'value' => '0,00 €'), 'total_including_tax' => array('type' => 'total', 'label' => 'Total TTC', 'amount' => 0.0, 'value' => '0,00 €'), 'total_excluding_tax' => array('type' => 'total', 'label' => 'Total HT :', 'amount' => 0.0, 'value' => '0,00 €')), 'subtotals' => array('products' => array('type' => 'products', 'label' => 'Sous-total', 'amount' => 0.0, 'value' => '0,00 €'), 'discounts' => null, 'shipping' => array('type' => 'shipping', 'label' => 'Livraison', 'amount' => 0, 'value' => ''), 'tax' => null), 'products_count' => 0, 'summary_string' => '0 articles', 'labels' => array('tax_short' => '(HT)', 'tax_long' => '(hors taxe)'), 'id_address_delivery' => '0', 'id_address_invoice' => '0', 'is_virtual' => false, 'vouchers' => array('allowed' => 1, 'added' => array()), 'discounts' => array(), 'minimalPurchase' => 0.0, 'minimalPurchaseRequired' => '')), 0, false)
in c9def0ab2f7e3b62956c3e0626d7291f9b350825_2.file.cart.tpl.php line 95
at Block_203435785664c8c7116bbf0_43734257->callBlock(object(SmartyDevTemplate))
in smarty_internal_runtime_inheritance.php line 248
at Smarty_Internal_Runtime_Inheritance->callBlock(object(Block_203435785664c8c7116bbf0_43734257), object(SmartyDevTemplate))
in smarty_internal_runtime_inheritance.php line 184
at Smarty_Internal_Runtime_Inheritance->process(object(SmartyDevTemplate), object(Block_203435785664c8c7116bbf0_43734257))
in smarty_internal_runtime_inheritance.php line 156
at Smarty_Internal_Runtime_Inheritance->instanceBlock(object(SmartyDevTemplate), 'Block_203435785664c8c7116bbf0_43734257', 'cart_totals', 1)
in c9def0ab2f7e3b62956c3e0626d7291f9b350825_2.file.cart.tpl.php line 127
at Block_682516091664c8c7116b006_87208475->callBlock(object(SmartyDevTemplate))
in smarty_internal_runtime_inheritance.php line 248
at Smarty_Internal_Runtime_Inheritance->callBlock(object(Block_682516091664c8c7116b006_87208475), object(SmartyDevTemplate))
in smarty_internal_runtime_inheritance.php line 184
at Smarty_Internal_Runtime_Inheritance->process(object(SmartyDevTemplate), object(Block_682516091664c8c7116b006_87208475))
in smarty_internal_runtime_inheritance.php line 156
at Smarty_Internal_Runtime_Inheritance->instanceBlock(object(SmartyDevTemplate), 'Block_682516091664c8c7116b006_87208475', 'cart_summary', 1)
in c9def0ab2f7e3b62956c3e0626d7291f9b350825_2.file.cart.tpl.php line 234
at Block_826054219664c8c7115fe35_96609729->callBlock(object(SmartyDevTemplate))
in smarty_internal_runtime_inheritance.php line 248
at Smarty_Internal_Runtime_Inheritance->callBlock(object(Block_826054219664c8c7115fe35_96609729), object(SmartyDevTemplate))
in smarty_internal_runtime_inheritance.php line 232
at Smarty_Internal_Runtime_Inheritance->callParent(object(SmartyDevTemplate), object(Block_1920229007664c8d89c3e2f8_32851740), '\'{block append}\'')
in smarty_internal_runtime_inheritance.php line 181
at Smarty_Internal_Runtime_Inheritance->process(object(SmartyDevTemplate), object(Block_1920229007664c8d89c3e2f8_32851740), object(Block_826054219664c8c7115fe35_96609729))
in smarty_internal_runtime_inheritance.php line 186
at Smarty_Internal_Runtime_Inheritance->process(object(SmartyDevTemplate), object(Block_826054219664c8c7115fe35_96609729), object(Block_856577602664c8b05d38b57_68375243))
in smarty_internal_runtime_inheritance.php line 186
at Smarty_Internal_Runtime_Inheritance->process(object(SmartyDevTemplate), object(Block_856577602664c8b05d38b57_68375243))
in smarty_internal_runtime_inheritance.php line 156
at Smarty_Internal_Runtime_Inheritance->instanceBlock(object(SmartyDevTemplate), 'Block_856577602664c8b05d38b57_68375243', 'content', 2)
in 8230e52fd16e9d763ac2bc2f84470f893fdcf541_2.file.layout-full-width.tpl.php line 117
at Block_458293273664c8b05d37e97_76835920->callBlock(object(SmartyDevTemplate))
in smarty_internal_runtime_inheritance.php line 248
at Smarty_Internal_Runtime_Inheritance->callBlock(object(Block_458293273664c8b05d37e97_76835920), object(SmartyDevTemplate))
in smarty_internal_runtime_inheritance.php line 184
at Smarty_Internal_Runtime_Inheritance->process(object(SmartyDevTemplate), object(Block_458293273664c8b05d37e97_76835920), object(Block_1221232293664c8b05d53d35_83652891))
in smarty_internal_runtime_inheritance.php line 186
at Smarty_Internal_Runtime_Inheritance->process(object(SmartyDevTemplate), object(Block_1221232293664c8b05d53d35_83652891))
in smarty_internal_runtime_inheritance.php line 156
at Smarty_Internal_Runtime_Inheritance->instanceBlock(object(SmartyDevTemplate), 'Block_1221232293664c8b05d53d35_83652891', 'content_wrapper', 7)
in dcebbdfdb7e331c9f0a1e580e3c8f04266dcd9a5_2.file.layout-both-columns.tpl.php line 686
at Block_1955304978664c8b05d50816_17070876->callBlock(object(SmartyDevTemplate))
in smarty_internal_runtime_inheritance.php line 248
at Smarty_Internal_Runtime_Inheritance->callBlock(object(Block_1955304978664c8b05d50816_17070876), object(SmartyDevTemplate))
in smarty_internal_runtime_inheritance.php line 184
at Smarty_Internal_Runtime_Inheritance->process(object(SmartyDevTemplate), object(Block_1955304978664c8b05d50816_17070876))
in smarty_internal_runtime_inheritance.php line 156
at Smarty_Internal_Runtime_Inheritance->instanceBlock(object(SmartyDevTemplate), 'Block_1955304978664c8b05d50816_17070876', 'wrapper')
in dcebbdfdb7e331c9f0a1e580e3c8f04266dcd9a5_2.file.layout-both-columns.tpl.php line 179
at content_664c8b05d5b485_77310198(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, 'blck-childlayouts/layout-full-width.tpl', 0, 3600, array(), 2, false, null, null)
in smarty_internal_runtime_inheritance.php line 116
at Smarty_Internal_Runtime_Inheritance->endChild(object(SmartyDevTemplate), 'layouts/layout-both-columns.tpl')
in 8230e52fd16e9d763ac2bc2f84470f893fdcf541_2.file.layout-full-width.tpl.php line 42
at content_664c8b05d39607_88952130(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, 'blck-childlayouts/layout-full-width.tpl', 0, 3600, array(), 2, false, null, null)
in smarty_internal_runtime_inheritance.php line 116
at Smarty_Internal_Runtime_Inheritance->endChild(object(SmartyDevTemplate), 'layouts/layout-full-width.tpl')
in c9def0ab2f7e3b62956c3e0626d7291f9b350825_2.file.cart.tpl.php line 36
at content_664c8c7116db16_38379270(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('checkout/cart.tpl', null, 'blck-childlayouts/layout-full-width.tpl', 0, 3600, array(), 2, false, null, null)
in smarty_internal_runtime_inheritance.php line 116
at Smarty_Internal_Runtime_Inheritance->endChild(object(SmartyDevTemplate), 'checkout/cart.tpl')
in d183720ff5d4a77add032730f0550e5fd46dedd1_2.file.cart-empty.tpl.php line 56
at content_664c8d89c43697_12334335(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, 'blck-childlayouts/layout-full-width.tpl', null, 0)
in smarty_internal_templatebase.php line 116
at Smarty_Internal_TemplateBase->fetch('checkout/cart-empty.tpl', null, 'blck-childlayouts/layout-full-width.tpl', null, false, true, false)
in SmartyDev.php line 40
at SmartyDev->fetch('checkout/cart-empty.tpl', null, 'blck-childlayouts/layout-full-width.tpl')
in FrontController.php line 727
at FrontControllerCore->smartyOutputContent('checkout/cart-empty.tpl')
in FrontController.php line 709
at FrontControllerCore->display()
in Controller.php line 326
at ControllerCore->run()
in Dispatcher.php line 525
at DispatcherCore->dispatch()
in index.php line 28
Auriez-vous une piste de l'endroit ou chercher l'erreur ?
Merci beaucoup.
Ps : voici le lien vers ma page panier