Jump to content

Prestashop 1.7.6.8 - constant errors for classes/Tools.php


alvesjc

Recommended Posts

Hello.

I've my error log flooded with messages like :

PHP message: PHP Notice:  Trying to get property 'id' of non-object in <presta home>l/classes/Tools.php on line 1346

 

the function is this:

Quote

    public static function getAdminTokenLite($tab, Context $context = null)
    {
        if (!$context) {
            $context = Context::getContext();
        }

        return Tools::getAdminToken($tab . (int) Tab::getIdFromClassName($tab) . (int) $context->employee->id);       <------------------------- Line 1346 !!
    }

 

Can you please help?

I'm having issues about very slow back office, and I'm not sure if this is related or not.

 

Thank you.

Link to comment
Share on other sites

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...