Fatal error: Uncaught Error: Call to a member function getId() on null in /app/module/Application/src/Application/Service/UserService.php:152 Stack trace: #0 /app/module/Application/view/layout/partials/footer.phtml(608): Application\Service\UserService->getAblyToken(NULL) #1 /app/vendor/laminas/laminas-view/src/Renderer/PhpRenderer.php(526): include('/app/module/App...') #2 /app/vendor/laminas/laminas-view/src/Helper/Partial.php(63): Laminas\View\Renderer\PhpRenderer->render(NULL, NULL) #3 /app/vendor/laminas/laminas-view/src/Renderer/PhpRenderer.php(414): Laminas\View\Helper\Partial->__invoke('layout/partials...') #4 /app/module/Application/view/layout/layout.phtml(5): Laminas\View\Renderer\PhpRenderer->__call('partial', Array) #5 /app/vendor/laminas/laminas-view/src/Renderer/PhpRenderer.php(526): include('/app/module/App...') #6 /app/vendor/laminas/laminas-view/src/View.php(194): Laminas\View\Renderer\PhpRenderer->render(NULL) #7 /app/vendor/laminas/laminas-mvc/src/View/Http/DefaultRenderingStrategy.php(92): Laminas\View\View->render(Object(Laminas\View\Model\ViewModel)) #8 /app/vendor/laminas/laminas-eventmanager/src/EventManager.php(320): Laminas\Mvc\View\Http\DefaultRenderingStrategy->render(Object(Laminas\Mvc\MvcEvent)) #9 /app/vendor/laminas/laminas-eventmanager/src/EventManager.php(170): Laminas\EventManager\EventManager->triggerListeners(Object(Laminas\Mvc\MvcEvent)) #10 /app/vendor/laminas/laminas-mvc/src/View/Http/DefaultRenderingStrategy.php(110): Laminas\EventManager\EventManager->triggerEvent(Object(Laminas\Mvc\MvcEvent)) #11 /app/vendor/laminas/laminas-eventmanager/src/EventManager.php(320): Laminas\Mvc\View\Http\DefaultRenderingStrategy->render(Object(Laminas\Mvc\MvcEvent)) #12 /app/vendor/laminas/laminas-eventmanager/src/EventManager.php(170): Laminas\EventManager\EventManager->triggerListeners(Object(Laminas\Mvc\MvcEvent)) #13 /app/vendor/laminas/laminas-mvc/src/Application.php(354): Laminas\EventManager\EventManager->triggerEvent(Object(Laminas\Mvc\MvcEvent)) #14 /app/vendor/laminas/laminas-mvc/src/Application.php(335): Laminas\Mvc\Application->completeRequest(Object(Laminas\Mvc\MvcEvent)) #15 /app/public/index.php(41): Laminas\Mvc\Application->run() #16 {main} thrown in /app/module/Application/src/Application/Service/UserService.php on line 152