Jump to content

Recommended Posts

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.

Share this post


Link to post
Share on other sites

code mal écrit...

à remplacer par

if (empty(Context::getContext()->employee->id)) {

ou

if (!isset(Context::getContext()->employee)) {

 

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More