Ag17 Posted March 31, 2021 Share Posted March 31, 2021 (edited) Bonjour, nous utilisons la version 1.7.7.2 + php 7.4.16 Le problème vient lorsqu'on choisit une déclinaison à partir d'un produit Exemple ici (entrer "17000" en code postal pour entrer) Le message suivant apparait "An error occurred while processing your request" (cf. image) Et ci-dessous la console debug. Avez-vous une idée du problème svp? AG --- Debug: (1/1) ContextErrorException Notice: Trying to access array offset on value of type bool in Product.php line 3638 at ProductCore::isDiscounted() in totloyaltyadvanced.php line 319 at TotLoyaltyAdvanced->hookDisplayProductPriceBlock() in Hook.php line 990 at HookCore::coreCallHook() in Hook.php line 414 at HookCore::callHookOn() in Hook.php line 927 at HookCore::exec() in smarty.config.inc.php line 167 at smartyHook() in SmartyLazyRegister.php line 83 at SmartyLazyRegister->__call() in 0734d23ac88a3143b04469aa1ee1c8cfa40a770f_2.file.product-prices.tpl.php line 56 at content_606423be08c5f2_19561318() in smarty_template_resource_base.php line 123 at Smarty_Template_Resource_Base->getRenderedTemplateCode() in smarty_template_compiled.php line 114 at Smarty_Template_Compiled->render() in smarty_internal_template.php line 216 at Smarty_Internal_Template->render() in smarty_internal_template.php line 385 at Smarty_Internal_Template->_subTemplateRender() in 573161397183f52681997aac3e0eeec13cd2d8dd_2.file.product.tpl.php line 328 at Block_325121645606423bdec1750_19954992->callBlock() in smarty_internal_runtime_inheritance.php line 248 at Smarty_Internal_Runtime_Inheritance->callBlock() in smarty_internal_runtime_inheritance.php line 184 at Smarty_Internal_Runtime_Inheritance->process() in smarty_internal_runtime_inheritance.php line 156 at Smarty_Internal_Runtime_Inheritance->instanceBlock() in 573161397183f52681997aac3e0eeec13cd2d8dd_2.file.product.tpl.php line 401 at Block_1401384573606423bdebe2f8_05179514->callBlock() in smarty_internal_runtime_inheritance.php line 248 at Smarty_Internal_Runtime_Inheritance->callBlock() in smarty_internal_runtime_inheritance.php line 184 at Smarty_Internal_Runtime_Inheritance->process() in smarty_internal_runtime_inheritance.php line 156 at Smarty_Internal_Runtime_Inheritance->instanceBlock() in 573161397183f52681997aac3e0eeec13cd2d8dd_2.file.product.tpl.php line 906 at Block_1674357692606423bdeab7c9_23329007->callBlock() in smarty_internal_runtime_inheritance.php line 248 at Smarty_Internal_Runtime_Inheritance->callBlock() in smarty_internal_runtime_inheritance.php line 184 at Smarty_Internal_Runtime_Inheritance->process() in smarty_internal_runtime_inheritance.php line 186 at Smarty_Internal_Runtime_Inheritance->process() in smarty_internal_runtime_inheritance.php line 156 at Smarty_Internal_Runtime_Inheritance->instanceBlock() in b670dbfbaea16bc42b7caac7440547f0c3693ae9_2.file.layout-left-column.tpl.php line 84 at Block_2139334006606423bdedabf9_02053644->callBlock() in smarty_internal_runtime_inheritance.php line 248 at Smarty_Internal_Runtime_Inheritance->callBlock() in smarty_internal_runtime_inheritance.php line 184 at Smarty_Internal_Runtime_Inheritance->process() in smarty_internal_runtime_inheritance.php line 186 at Smarty_Internal_Runtime_Inheritance->process() in smarty_internal_runtime_inheritance.php line 156 at Smarty_Internal_Runtime_Inheritance->instanceBlock() in c2780673259dcf4d55c622ba218bea5e5cc46667_2.file.layout-both-columns.tpl.php line 168 at content_606423bdefd771_67953612() in smarty_template_resource_base.php line 123 at Smarty_Template_Resource_Base->getRenderedTemplateCode() in smarty_template_compiled.php line 114 at Smarty_Template_Compiled->render() in smarty_internal_template.php line 216 at Smarty_Internal_Template->render() in smarty_internal_template.php line 385 at Smarty_Internal_Template->_subTemplateRender() in smarty_internal_runtime_inheritance.php line 116 at Smarty_Internal_Runtime_Inheritance->endChild() in b670dbfbaea16bc42b7caac7440547f0c3693ae9_2.file.layout-left-column.tpl.php line 38 at content_606423bdedba78_48219815() in smarty_template_resource_base.php line 123 at Smarty_Template_Resource_Base->getRenderedTemplateCode() in smarty_template_compiled.php line 114 at Smarty_Template_Compiled->render() in smarty_internal_template.php line 216 at Smarty_Internal_Template->render() in smarty_internal_template.php line 385 at Smarty_Internal_Template->_subTemplateRender() in smarty_internal_runtime_inheritance.php line 116 at Smarty_Internal_Runtime_Inheritance->endChild() in 573161397183f52681997aac3e0eeec13cd2d8dd_2.file.product.tpl.php line 56 at content_606423bded1759_25973828() in smarty_template_resource_base.php line 123 at Smarty_Template_Resource_Base->getRenderedTemplateCode() in smarty_template_compiled.php line 114 at Smarty_Template_Compiled->render() in smarty_internal_template.php line 216 at Smarty_Internal_Template->render() in smarty_internal_templatebase.php line 232 at Smarty_Internal_TemplateBase->_execute() in smarty_internal_templatebase.php line 116 at Smarty_Internal_TemplateBase->fetch() in SmartyDev.php line 40 at SmartyDev->fetch() in FrontController.php line 704 at FrontControllerCore->smartyOutputContent() in FrontController.php line 686 at FrontControllerCore->display() in Controller.php line 326 at ControllerCore->run() in Dispatcher.php line 518 at DispatcherCore->dispatch() in index.php line 28 Edited March 31, 2021 by Ag17 (see edit history) Link to comment Share on other sites More sharing options...
Eolia Posted March 31, 2021 Share Posted March 31, 2021 Ben votre module TotLoyaltyAdvanced envoie true ou false à la place d'un tableau (array). A voir avec son auteur. Link to comment Share on other sites More sharing options...
Ag17 Posted March 31, 2021 Author Share Posted March 31, 2021 Merci @Eolia Mais j'ai désactivé le module en question, le problème reste le même... Link to comment Share on other sites More sharing options...
Eolia Posted March 31, 2021 Share Posted March 31, 2021 Videz votre cache Prestashop car si le module est désactivé il ne doit plus être appelé ni apparaitre dans les logs de debug Link to comment Share on other sites More sharing options...
Ag17 Posted March 31, 2021 Author Share Posted March 31, 2021 @Eolia Le cache est bien vidé cf. image (celui de mon navigateur aussi au cas où). Le module TotLoyaltyAdvanced est désinstallé Le message persiste... NOTE : En mode debug, j'ai aussi ce message qui apparait en premier sur mon B.O et Front Deprecated: array_key_exists(): Using array_key_exists() on objects is deprecated. Use isset() or property_exists() instead in /var/www/vhosts/bacchus-bynight.com/httpdocs/src/Adapter/EntityMapper.php on line 99 Link to comment Share on other sites More sharing options...
Eolia Posted March 31, 2021 Share Posted March 31, 2021 il faut supprimer manuellement le répertoire /app/cache ou /var/cache suivant votre version 1.7 Link to comment Share on other sites More sharing options...
Mediacom87 Posted March 31, 2021 Share Posted March 31, 2021 il y a une heure, Ag17 a dit : nous utilisons la version 1.7.7.2 + php 7.4.16 Link to comment Share on other sites More sharing options...
Ag17 Posted March 31, 2021 Author Share Posted March 31, 2021 C'est résolu. Effectivement @Mediacom87 pour une raison que j'ignore, j'étais certain d'avor vérifié la compatibilité avant. Je suis désormais en PHP 7.3 ET FastCGI Apache (en non Nginx) Le souci semble être résolu. Merci à vous deux pour l'aide... AG 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