Exception detected!

Warning: session_start() [<a href='function.session-start'>function.session-start</a>]: Cannot send session cookie - headers already sent by (output started at /home/hrmscare/public_html/app/AppKernel.php:2) in /home/hrmscare/public_html/app/cache/prod/classes.php line 406

500 Internal Server Error - ErrorException

Stack Trace

  1. in /home/hrmscare/public_html/vendor/symfony/src/Symfony/Component/HttpKernel/Debug/ErrorHandler.php at line 65  -
    1.         }
    2.         if (error_reporting() & $level && $this->level $level) {
    3.             throw new \ErrorException(sprintf('%s: %s in %s line %d', isset($this->levels[$level]) ? $this->levels[$level] : $level$message$file$line));
    4.         }
    5.         return false;
  2. at ErrorHandler ->handle ('2', 'session_start() [<a href='function.session-start'>function.session-start</a>]: Cannot send session cookie - headers already sent by (output started at /home/hrmscare/public_html/app/AppKernel.php:2)', '/home/hrmscare/public_html/app/cache/prod/classes.php', '406', array())
  3. at session_start ()
    in kernel.root_dir/cache/prod/classes.php at line 406  +
  4. at NativeSessionStorage ->start ()
    in kernel.root_dir/cache/prod/classes.php at line 119  +
  5. at Session ->start ()
    in kernel.root_dir/cache/prod/classes.php at line 43  +
  6. at SessionListener ->onKernelRequest (object(GetResponseEvent))
  7. at call_user_func (array(object(SessionListener), 'onKernelRequest'), object(GetResponseEvent))
    in /home/hrmscare/public_html/vendor/symfony/src/Symfony/Bundle/FrameworkBundle/Debug/TraceableEventDispatcher.php at line 82  +
  8. at TraceableEventDispatcher ->doDispatch (array(array(object(RouterListener), 'onEarlyKernelRequest'), array(object(SessionListener), 'onKernelRequest'), array(object(Firewall), 'onKernelRequest'), array(object(RouterListener), 'onKernelRequest')), 'kernel.request', object(GetResponseEvent))
    in kernel.root_dir/cache/prod/classes.php at line 3707  +
  9. at EventDispatcher ->dispatch ('kernel.request', object(GetResponseEvent))
    in kernel.root_dir/cache/prod/classes.php at line 4791  +
  10. at ContainerAwareEventDispatcher ->dispatch ('kernel.request', object(GetResponseEvent))
    in kernel.root_dir/cache/prod/classes.php at line 3889  +
  11. at HttpKernel ->handleRaw (object(Request), '1')
    in kernel.root_dir/cache/prod/classes.php at line 3875  +
  12. at HttpKernel ->handle (object(Request), '1', true)
    in kernel.root_dir/cache/prod/classes.php at line 4852  +
  13. at HttpKernel ->handle (object(Request), '1', true)
    in kernel.root_dir/bootstrap.php.cache at line 547  +
  14. at Kernel ->handle (object(Request))
    in /home/hrmscare/public_html/web/app.php at line 12  +

Logs  -