Bonjour,
J'ai un problème avec ma boutique en ligne, et j'aurais besoin d'aide svp.
Mon Prestashop est la v 1.7.8.11.
Mon hébergeur Hostinger.
Une cliente m'a signalé un problème en voulant voir son panier.
Elle met l'article dans son panier, et quand elle clique sur le panier et puis sur "voir le panier" elle a un message d'erreur 500.
J'ai vidé le cache dans le back office et aussi manuellement mais le problème est toujours là.
J'ai activé le mode debug dans le back office, et quand je mets un article au panier et clique sur voir le panier, j'ai ça :
Whoops, looks like something went wrong.
(1/1) FatalThrowableError
Cannot use object of type Cart as array
in HookDisplayBeforeBodyClosingTag.php line 152
at HookDisplayBeforeBodyClosingTag->renderCartpage()in HookDisplayBeforeBodyClosingTag.php line 59
at HookDisplayBeforeBodyClosingTag->run()in ps_googleanalytics.php line 109
at Ps_Googleanalytics->hookDisplayBeforeBodyClosingTag(array('smarty' => object(SmartyDevTemplate), 'cookie' => object(Cookie), 'cart' => object(Cart), 'altern' => 2))in Hook.php line 1007
at HookCore::coreCallHook(object(Ps_Googleanalytics), 'hookDisplayBeforeBodyClosingTag', array('smarty' => object(SmartyDevTemplate), 'cookie' => object(Cookie), 'cart' => object(Cart), 'altern' => 2))in Hook.php line 431
at HookCore::callHookOn(object(Ps_Googleanalytics), 'displayBeforeBodyClosingTag', array('smarty' => object(SmartyDevTemplate), 'cookie' => object(Cookie), 'cart' => object(Cart), 'altern' => 2))in Hook.php line 944
at HookCore::exec('displayBeforeBodyClosingTag', array('smarty' => object(SmartyDevTemplate), 'cookie' => object(Cookie), 'cart' => object(Cart), 'altern' => 2), null)in smarty.config.inc.php line 167
at smartyHook(array('h' => 'displayBeforeBodyClosingTag'), object(SmartyDevTemplate))in SmartyLazyRegister.php line 83
at SmartyLazyRegister->__call('smartyHook', array(array('h' => 'displayBeforeBodyClosingTag'), object(SmartyDevTemplate)))in c9c7fa443fd67b8e1aa67300b3ded126bfa8056f_2.file.layout-both-columns.tpl.php line 377
at Block_165297446466eafc35031152_08738197->callBlock(object(SmartyDevTemplate))in smarty_internal_runtime_inheritance.php line 248
at Smarty_Internal_Runtime_Inheritance->callBlock(object(Block_165297446466eafc35031152_08738197), object(SmartyDevTemplate))in smarty_internal_runtime_inheritance.php line 184
at Smarty_Internal_Runtime_Inheritance->process(object(SmartyDevTemplate), object(Block_165297446466eafc35031152_08738197))in smarty_internal_runtime_inheritance.php line 156
at Smarty_Internal_Runtime_Inheritance->instanceBlock(object(SmartyDevTemplate), 'Block_165297446466eafc35031152_08738197', 'hook_before_body_closing_tag')in c9c7fa443fd67b8e1aa67300b3ded126bfa8056f_2.file.layout-both-columns.tpl.php line 105
at content_66eafc350318d2_54386550(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, 'PRSADD279_01layouts/layout-left-column.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 8ae798c45959e4dc5475c07040422495a9850999_2.file.layout-left-column.tpl.php line 38
at content_66eafc35024a04_75056198(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-left-column.tpl', null, 'PRSADD279_01layouts/layout-left-column.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-left-column.tpl')in 1dd7dea9d07d96547df8579eb3b1d0880e117925_2.file.cart.tpl.php line 38
at content_66eafc3501db98_84113425(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, 'PRSADD279_01layouts/layout-left-column.tpl', null, 0)in smarty_internal_templatebase.php line 116
at Smarty_Internal_TemplateBase->fetch('checkout/cart.tpl', null, 'PRSADD279_01layouts/layout-left-column.tpl', null, false, true, false)in SmartyDev.php line 40
at SmartyDev->fetch('checkout/cart.tpl', null, 'PRSADD279_01layouts/layout-left-column.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
Quel est le problème ? Et comment le résoudre ?
Merci beaucoup