Jump to content

PS 1.7.8.10 & PHP 7.4 = bugs [RESOLU MAJ THEME]


Recommended Posts

Bonjour,

Actuellement, mon site est sous PS 1.7.8.10 et avec un thème BLCK

Je suis sous PHP 7.3, mais un développeur me demande de passer en 7.4 afin de pouvoir effectuer une modification sur un module de menu (il rencontre l'erreur suivante "Your composer dependencies requires php 7.4").

Je suis donc passé sous PHP 7.4, mais j'ai un bug dans le panier qui m'empêche de modifier/supprimer les articles.
En Debug mode, voici l'erreur une fois arrivé sur la page https://gounacreations.com/panier?action=show :

(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_17726548836582ec34e663b0_78177897->callBlock(object(SmartyDevTemplate))
in smarty_internal_runtime_inheritance.php line 248
at Smarty_Internal_Runtime_Inheritance->callBlock(object(Block_17726548836582ec34e663b0_78177897), object(SmartyDevTemplate))
in smarty_internal_runtime_inheritance.php line 184
at Smarty_Internal_Runtime_Inheritance->process(object(SmartyDevTemplate), object(Block_17726548836582ec34e663b0_78177897))
in smarty_internal_runtime_inheritance.php line 156
at Smarty_Internal_Runtime_Inheritance->instanceBlock(object(SmartyDevTemplate), 'Block_17726548836582ec34e663b0_78177897', 'cart_detailed_totals')
in 7ef2c096b2f1ecb6d7d709d6bb492069014e16ff_2.file.cart-detailed-totals.tpl.php line 28
at content_6582ec34e6c590_15664156(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, 31536000, array('cart' => array('products' => array(object(ProductListingLazyArray)), 'totals' => array('total' => array('type' => 'total', 'label' => 'Total', 'amount' => 16.4, 'value' => '16,40 €'), 'total_including_tax' => array('type' => 'total', 'label' => 'Total TTC', 'amount' => 16.4, 'value' => '16,40 €'), 'total_excluding_tax' => array('type' => 'total', 'label' => 'Total HT :', 'amount' => 16.4, 'value' => '16,40 €')), 'subtotals' => array('products' => array('type' => 'products', 'label' => 'Sous-total', 'amount' => 11.9, 'value' => '11,90 €'), 'discounts' => null, 'shipping' => array('type' => 'shipping', 'label' => 'Livraison', 'amount' => 4.5, 'value' => '4,50 €'), 'tax' => null), 'products_count' => 1, 'summary_string' => '1 article', '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_2789188756582ec34ddc686_11577703->callBlock(object(SmartyDevTemplate))
in smarty_internal_runtime_inheritance.php line 248
at Smarty_Internal_Runtime_Inheritance->callBlock(object(Block_2789188756582ec34ddc686_11577703), object(SmartyDevTemplate))
in smarty_internal_runtime_inheritance.php line 184
at Smarty_Internal_Runtime_Inheritance->process(object(SmartyDevTemplate), object(Block_2789188756582ec34ddc686_11577703))
in smarty_internal_runtime_inheritance.php line 156
at Smarty_Internal_Runtime_Inheritance->instanceBlock(object(SmartyDevTemplate), 'Block_2789188756582ec34ddc686_11577703', 'cart_totals', 0)
in c9def0ab2f7e3b62956c3e0626d7291f9b350825_2.file.cart.tpl.php line 127
at Block_1789176136582ec34ddbbd9_99201072->callBlock(object(SmartyDevTemplate))
in smarty_internal_runtime_inheritance.php line 248
at Smarty_Internal_Runtime_Inheritance->callBlock(object(Block_1789176136582ec34ddbbd9_99201072), object(SmartyDevTemplate))
in smarty_internal_runtime_inheritance.php line 184
at Smarty_Internal_Runtime_Inheritance->process(object(SmartyDevTemplate), object(Block_1789176136582ec34ddbbd9_99201072))
in smarty_internal_runtime_inheritance.php line 156
at Smarty_Internal_Runtime_Inheritance->instanceBlock(object(SmartyDevTemplate), 'Block_1789176136582ec34ddbbd9_99201072', 'cart_summary', 0)
in c9def0ab2f7e3b62956c3e0626d7291f9b350825_2.file.cart.tpl.php line 234
at Block_12992891126582ec34dd6d28_22938345->callBlock(object(SmartyDevTemplate))
in smarty_internal_runtime_inheritance.php line 248
at Smarty_Internal_Runtime_Inheritance->callBlock(object(Block_12992891126582ec34dd6d28_22938345), object(SmartyDevTemplate))
in smarty_internal_runtime_inheritance.php line 184
at Smarty_Internal_Runtime_Inheritance->process(object(SmartyDevTemplate), object(Block_12992891126582ec34dd6d28_22938345), object(Block_10568518916582ec1837abe9_24716499))
in smarty_internal_runtime_inheritance.php line 186
at Smarty_Internal_Runtime_Inheritance->process(object(SmartyDevTemplate), object(Block_10568518916582ec1837abe9_24716499))
in smarty_internal_runtime_inheritance.php line 156
at Smarty_Internal_Runtime_Inheritance->instanceBlock(object(SmartyDevTemplate), 'Block_10568518916582ec1837abe9_24716499', 'content', 1)
in 5006965446135d7df192bec9ac55775ae5669edc_2.file.layout-full-width.tpl.php line 117
at Block_6687115686582ec18379c72_46482895->callBlock(object(SmartyDevTemplate))
in smarty_internal_runtime_inheritance.php line 248
at Smarty_Internal_Runtime_Inheritance->callBlock(object(Block_6687115686582ec18379c72_46482895), object(SmartyDevTemplate))
in smarty_internal_runtime_inheritance.php line 184
at Smarty_Internal_Runtime_Inheritance->process(object(SmartyDevTemplate), object(Block_6687115686582ec18379c72_46482895), object(Block_11523973716582ec183953f0_24554372))
in smarty_internal_runtime_inheritance.php line 186
at Smarty_Internal_Runtime_Inheritance->process(object(SmartyDevTemplate), object(Block_11523973716582ec183953f0_24554372))
in smarty_internal_runtime_inheritance.php line 156
at Smarty_Internal_Runtime_Inheritance->instanceBlock(object(SmartyDevTemplate), 'Block_11523973716582ec183953f0_24554372', 'content_wrapper', 6)
in dcebbdfdb7e331c9f0a1e580e3c8f04266dcd9a5_2.file.layout-both-columns.tpl.php line 689
at Block_11052518836582ec18391a42_01539703->callBlock(object(SmartyDevTemplate))
in smarty_internal_runtime_inheritance.php line 248
at Smarty_Internal_Runtime_Inheritance->callBlock(object(Block_11052518836582ec18391a42_01539703), object(SmartyDevTemplate))
in smarty_internal_runtime_inheritance.php line 184
at Smarty_Internal_Runtime_Inheritance->process(object(SmartyDevTemplate), object(Block_11052518836582ec18391a42_01539703))
in smarty_internal_runtime_inheritance.php line 156
at Smarty_Internal_Runtime_Inheritance->instanceBlock(object(SmartyDevTemplate), 'Block_11052518836582ec18391a42_01539703', 'wrapper')
in dcebbdfdb7e331c9f0a1e580e3c8f04266dcd9a5_2.file.layout-both-columns.tpl.php line 180
at content_6582ec1839ca94_22887419(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, 31536000, 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 5006965446135d7df192bec9ac55775ae5669edc_2.file.layout-full-width.tpl.php line 42
at content_6582ec1837b684_42363729(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, 31536000, 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_6582ec34dde6e8_62489438(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.tpl', null, 'blck-childlayouts/layout-full-width.tpl', null, false, true, false)
in SmartyDev.php line 40
at SmartyDev->fetch('checkout/cart.tpl', null, 'blck-childlayouts/layout-full-width.tpl')
in FrontController.php line 727
at FrontControllerCore->smartyOutputContent('checkout/cart.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

Est-il possible de régler ce problème facilement ?

Merci !

Edited by gouna (see edit history)
Link to comment
Share on other sites

  • 3 weeks later...
  • gouna changed the title to PS 1.7.8.10 & PHP 7.4 = bugs [RESOLU MAJ THEME]

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...