xarnoux Posted December 13, 2019 Share Posted December 13, 2019 Bonjour, suite à l'installation d'un module pop up, lors de l'affichage de ce pop ( au niveau du panier pour ma part ), ce message d'erreur apparaît : Notice: Trying to get property of non-object in /homepages/24/d742654074/htdocs/modules/custompopup/custompopup.php on line 386 Voici la ligne incriminée : if (!Context::getContext()->employee->id) { return $this->display(__FILE__, 'custompopup.tpl'); Je suis sous prestashop 1.6.1.17 Merci pour vos réponses. Xavier. Link to comment Share on other sites More sharing options...
Eolia Posted December 13, 2019 Share Posted December 13, 2019 code mal écrit... à remplacer par if (empty(Context::getContext()->employee->id)) { ou if (!isset(Context::getContext()->employee)) { Link to comment Share on other sites More sharing options...
xarnoux Posted December 13, 2019 Author Share Posted December 13, 2019 Ça marche !!! merci pour votre aide ! Link to comment Share on other sites More sharing options...
doekia Posted December 13, 2019 Share Posted December 13, 2019 c'est quand même malheureux tout ces codes boiteux qui émergent. A croire que personne ne veux activer le debug et tester avant de releaser du code 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