alvesjc Posted December 4, 2020 Share Posted December 4, 2020 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 More sharing options...
alvesjc Posted December 4, 2020 Author Share Posted December 4, 2020 Hi! Just tried it, but no change. But the var seems to be declared here: Quote if (!$context) { $context = Context::getContext(); } right ? 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