Deprecated: getEntityManager is deprecated since Symfony 2.1. Use getManager instead in /home/eli_bg/eli/app/cache/prod/classes.php on line 7054

Fatal error: Uncaught RuntimeException: Failed to start the session because headers have already been sent by "/home/eli_bg/eli/app/cache/prod/classes.php" at line 7054. in /home/eli_bg/eli/app/cache/prod/classes.php:114 Stack trace: #0 /home/eli_bg/eli/app/cache/prod/classes.php(191): Symfony\Component\HttpFoundation\Session\Storage\NativeSessionStorage->start() #1 /home/eli_bg/eli/app/cache/prod/classes.php(564): Symfony\Component\HttpFoundation\Session\Storage\NativeSessionStorage->getBag('flashes') #2 /home/eli_bg/eli/app/cache/prod/classes.php(568): Symfony\Component\HttpFoundation\Session\Session->getBag('flashes') #3 /home/eli_bg/eli/app/cache/prod/classes.php(5224): Symfony\Component\HttpFoundation\Session\Session->getFlashBag() #4 /home/eli_bg/eli/app/cache/prod/twig/25/25be5bb3ab526b07a38656354bc1aa95a234d30134c645eaf44f3a9e4e444696.php(492): Twig_Template->getAttribute(Object(Symfony\Component\HttpFoundation\Session\Session), 'flashbag', Array) #5 /home/eli_bg/eli/app/cache/prod/classes.php(5071): __TwigTemplat in /home/eli_bg/eli/app/Resources/views/frontend/base.html.twig on line 359