Hello, after upgrade to PS 8.1 i'm getting an alert in php log
PHP Warning: Attempt to read property "id" on null in /home/xxxx/public_html/classes/Tools.php on line 1307
/**
* @param string $tab
* @param Context $context
*
* @return bool|string
*/
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 1307
}
Any idea how to fix this issue?
Thanks you for your help!
Quote