Deprecated: getEntityManager is deprecated since Symfony 2.1. Use getManager instead in /home/eli_bg/eli/vendor/doctrine/doctrine-bundle/Registry.php on line 71

Fatal error: Uncaught RuntimeException: Failed to start the session because headers have already been sent by "/home/eli_bg/eli/vendor/doctrine/doctrine-bundle/Registry.php" at line 71. in /home/eli_bg/eli/vendor/symfony/symfony/src/Symfony/Component/HttpFoundation/Session/Storage/NativeSessionStorage.php:140 Stack trace: #0 /home/eli_bg/eli/vendor/symfony/symfony/src/Symfony/Component/HttpFoundation/Session/Storage/NativeSessionStorage.php(278): Symfony\Component\HttpFoundation\Session\Storage\NativeSessionStorage->start() #1 /home/eli_bg/eli/vendor/symfony/symfony/src/Symfony/Component/HttpFoundation/Session/Session.php(237): Symfony\Component\HttpFoundation\Session\Storage\NativeSessionStorage->getBag('flashes') #2 /home/eli_bg/eli/vendor/symfony/symfony/src/Symfony/Component/HttpFoundation/Session/Session.php(247): Symfony\Component\HttpFoundation\Session\Session->getBag('flashes') #3 /home/eli_bg/eli/app/cache/prod/classes.php(1475): Symfony\Component\HttpFoundation\Session\Session->getFlashBag() #4 /home/eli_bg/eli/ in /home/eli_bg/eli/app/Resources/views/frontend/base.html.twig on line 359