Warning: Cannot modify header information - headers already sent by (output started at /home/klient.dhosting.pl/martini007/juniorcoach.pl/web/app.php:1) in /home/klient.dhosting.pl/martini007/juniorcoach.pl/vendor/autoload.php on line 4

Warning: Cannot modify header information - headers already sent by (output started at /home/klient.dhosting.pl/martini007/juniorcoach.pl/web/app.php:1) in /home/klient.dhosting.pl/martini007/juniorcoach.pl/vendor/autoload.php on line 5

Warning: Cannot modify header information - headers already sent by (output started at /home/klient.dhosting.pl/martini007/juniorcoach.pl/web/app.php:1) in /home/klient.dhosting.pl/martini007/juniorcoach.pl/vendor/autoload.php on line 6

Warning: Cannot modify header information - headers already sent by (output started at /home/klient.dhosting.pl/martini007/juniorcoach.pl/web/app.php:1) in /home/klient.dhosting.pl/martini007/juniorcoach.pl/vendor/autoload.php on line 7

Warning: Cannot modify header information - headers already sent by (output started at /home/klient.dhosting.pl/martini007/juniorcoach.pl/web/app.php:1) in /home/klient.dhosting.pl/martini007/juniorcoach.pl/vendor/autoload.php on line 8

Warning: Cannot modify header information - headers already sent by (output started at /home/klient.dhosting.pl/martini007/juniorcoach.pl/web/app.php:1) in /home/klient.dhosting.pl/martini007/juniorcoach.pl/vendor/autoload.php on line 9
Warning: ini_set(): Headers already sent. You cannot change the session module's ini settings at this time (500 Internal Server Error)

Symfony Exception

ContextErrorException

HTTP 500 Internal Server Error

Warning: ini_set(): Headers already sent. You cannot change the session module's ini settings at this time

Exception

Symfony\Component\Debug\Exception\ ContextErrorException

  1.         if ($baseDir && !is_dir($baseDir) && !@mkdir($baseDir0777true) && !is_dir($baseDir)) {
  2.             throw new \RuntimeException(sprintf('Session Storage was not able to create directory "%s"'$baseDir));
  3.         }
  4.         ini_set('session.save_path'$savePath);
  5.         ini_set('session.save_handler''files');
  6.     }
  7. }
NativeFileSessionHandler->__construct('/home/klient.dhosting.pl/martini007/juniorcoach.pl/var/sessions/prod') in var/cache/prod/appProdDebugProjectContainer.php (line 2373)
  1.      *
  2.      * @return \Symfony\Component\HttpFoundation\Session\Storage\Handler\NativeFileSessionHandler
  3.      */
  4.     protected function getSession_HandlerService()
  5.     {
  6.         return $this->services['session.handler'] = new \Symfony\Component\HttpFoundation\Session\Storage\Handler\NativeFileSessionHandler(($this->targetDirs[2].'/sessions/prod'));
  7.     }
  8.     /**
  9.      * Gets the public 'session.save_listener' shared service.
  10.      *
appProdDebugProjectContainer->getSession_HandlerService() in vendor/symfony/symfony/src/Symfony/Component/DependencyInjection/Container.php (line 329)
  1.             }
  2.             $this->loading[$id] = true;
  3.             try {
  4.                 $service $this->$method();
  5.             } catch (\Exception $e) {
  6.                 unset($this->services[$id]);
  7.                 throw $e;
  8.             } finally {
Container->get('session.handler') in var/cache/prod/appProdDebugProjectContainer.php (line 2403)
  1.      *
  2.      * @return \Symfony\Component\HttpFoundation\Session\Storage\NativeSessionStorage
  3.      */
  4.     protected function getSession_Storage_NativeService()
  5.     {
  6.         return $this->services['session.storage.native'] = new \Symfony\Component\HttpFoundation\Session\Storage\NativeSessionStorage(array('cookie_httponly' => true'gc_probability' => 1), ${($_ = isset($this->services['session.handler']) ? $this->services['session.handler'] : $this->get('session.handler')) && false ?: '_'}, ${($_ = isset($this->services['session.storage.metadata_bag']) ? $this->services['session.storage.metadata_bag'] : $this->getSession_Storage_MetadataBagService()) && false ?: '_'});
  7.     }
  8.     /**
  9.      * Gets the public 'session.storage.php_bridge' shared service.
  10.      *
appProdDebugProjectContainer->getSession_Storage_NativeService() in vendor/symfony/symfony/src/Symfony/Component/DependencyInjection/Container.php (line 329)
  1.             }
  2.             $this->loading[$id] = true;
  3.             try {
  4.                 $service $this->$method();
  5.             } catch (\Exception $e) {
  6.                 unset($this->services[$id]);
  7.                 throw $e;
  8.             } finally {
Container->get('session.storage.native') in var/cache/prod/appProdDebugProjectContainer.php (line 2363)
  1.      *
  2.      * @return \Symfony\Component\HttpFoundation\Session\Session
  3.      */
  4.     protected function getSessionService()
  5.     {
  6.         return $this->services['session'] = new \Symfony\Component\HttpFoundation\Session\Session(${($_ = isset($this->services['session.storage.native']) ? $this->services['session.storage.native'] : $this->get('session.storage.native')) && false ?: '_'}, new \Symfony\Component\HttpFoundation\Session\Attribute\AttributeBag(), new \Symfony\Component\HttpFoundation\Session\Flash\FlashBag());
  7.     }
  8.     /**
  9.      * Gets the public 'session.handler' shared service.
  10.      *
appProdDebugProjectContainer->getSessionService() in vendor/symfony/symfony/src/Symfony/Component/DependencyInjection/Container.php (line 329)
  1.             }
  2.             $this->loading[$id] = true;
  3.             try {
  4.                 $service $this->$method();
  5.             } catch (\Exception $e) {
  6.                 unset($this->services[$id]);
  7.                 throw $e;
  8.             } finally {
Container->get('session', 2) in var/cache/prod/appProdDebugProjectContainer.php (line 2424)
  1.      * @return \Symfony\Component\HttpKernel\EventListener\SessionListener
  2.      */
  3.     protected function getSessionListenerService()
  4.     {
  5.         return $this->services['session_listener'] = new \Symfony\Component\HttpKernel\EventListener\SessionListener(new \Symfony\Component\DependencyInjection\ServiceLocator(array('session' => function () {
  6.             return ${($_ = isset($this->services['session']) ? $this->services['session'] : $this->get('session'ContainerInterface::NULL_ON_INVALID_REFERENCE)) && false ?: '_'};
  7.         })));
  8.     }
  9.     /**
  10.      * Gets the public 'streamed_response_listener' shared service.
appProdDebugProjectContainer->{closure}() in vendor/symfony/symfony/src/Symfony/Component/DependencyInjection/ServiceLocator.php (line 57)
  1.             throw new ServiceCircularReferenceException($id, array($id$id));
  2.         }
  3.         $this->factories[$id] = true;
  4.         try {
  5.             return $factory();
  6.         } finally {
  7.             $this->factories[$id] = $factory;
  8.         }
  9.     }
  1.     {
  2.         if (!$this->container->has('session')) {
  3.             return;
  4.         }
  5.         return $this->container->get('session');
  6.     }
  7. }
  1.         if (!$event->isMasterRequest()) {
  2.             return;
  3.         }
  4.         $request $event->getRequest();
  5.         $session $this->getSession();
  6.         if (null === $session || $request->hasSession()) {
  7.             return;
  8.         }
  9.         $request->setSession($session);
AbstractSessionListener->onKernelRequest(object(GetResponseEvent), 'kernel.request', object(TraceableEventDispatcher))
call_user_func(array(object(SessionListener), 'onKernelRequest'), object(GetResponseEvent), 'kernel.request', object(TraceableEventDispatcher)) in vendor/symfony/symfony/src/Symfony/Component/EventDispatcher/Debug/WrappedListener.php (line 104)
  1.     {
  2.         $this->called true;
  3.         $e $this->stopwatch->start($this->name'event_listener');
  4.         call_user_func($this->listener$event$eventName$this->dispatcher ?: $dispatcher);
  5.         if ($e->isStarted()) {
  6.             $e->stop();
  7.         }
WrappedListener->__invoke(object(GetResponseEvent), 'kernel.request', object(ContainerAwareEventDispatcher))
call_user_func(object(WrappedListener), object(GetResponseEvent), 'kernel.request', object(ContainerAwareEventDispatcher)) in vendor/symfony/symfony/src/Symfony/Component/EventDispatcher/EventDispatcher.php (line 212)
  1.     {
  2.         foreach ($listeners as $listener) {
  3.             if ($event->isPropagationStopped()) {
  4.                 break;
  5.             }
  6.             call_user_func($listener$event$eventName$this);
  7.         }
  8.     }
  9.     /**
  10.      * Sorts the internal list of listeners for the given event by priority.
EventDispatcher->doDispatch(array(object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener)), 'kernel.request', object(GetResponseEvent)) in vendor/symfony/symfony/src/Symfony/Component/EventDispatcher/EventDispatcher.php (line 44)
  1.         if (null === $event) {
  2.             $event = new Event();
  3.         }
  4.         if ($listeners $this->getListeners($eventName)) {
  5.             $this->doDispatch($listeners$eventName$event);
  6.         }
  7.         return $event;
  8.     }
EventDispatcher->dispatch('kernel.request', object(GetResponseEvent)) in vendor/symfony/symfony/src/Symfony/Component/EventDispatcher/Debug/TraceableEventDispatcher.php (line 139)
  1.         $this->preProcess($eventName);
  2.         $this->preDispatch($eventName$event);
  3.         $e $this->stopwatch->start($eventName'section');
  4.         $this->dispatcher->dispatch($eventName$event);
  5.         if ($e->isStarted()) {
  6.             $e->stop();
  7.         }
TraceableEventDispatcher->dispatch('kernel.request', object(GetResponseEvent)) in vendor/symfony/symfony/src/Symfony/Component/HttpKernel/HttpKernel.php (line 127)
  1.     {
  2.         $this->requestStack->push($request);
  3.         // request
  4.         $event = new GetResponseEvent($this$request$type);
  5.         $this->dispatcher->dispatch(KernelEvents::REQUEST$event);
  6.         if ($event->hasResponse()) {
  7.             return $this->filterResponse($event->getResponse(), $request$type);
  8.         }
HttpKernel->handleRaw(object(Request), 1) in vendor/symfony/symfony/src/Symfony/Component/HttpKernel/HttpKernel.php (line 68)
  1.     public function handle(Request $request$type HttpKernelInterface::MASTER_REQUEST$catch true)
  2.     {
  3.         $request->headers->set('X-Php-Ob-Level'ob_get_level());
  4.         try {
  5.             return $this->handleRaw($request$type);
  6.         } catch (\Exception $e) {
  7.             if ($e instanceof RequestExceptionInterface) {
  8.                 $e = new BadRequestHttpException($e->getMessage(), $e);
  9.             }
  10.             if (false === $catch) {
HttpKernel->handle(object(Request), 1, true) in vendor/symfony/symfony/src/Symfony/Component/HttpKernel/Kernel.php (line 169)
  1.     {
  2.         if (false === $this->booted) {
  3.             $this->boot();
  4.         }
  5.         return $this->getHttpKernel()->handle($request$type$catch);
  6.     }
  7.     /**
  8.      * Gets a HTTP kernel from the container.
  9.      *
Kernel->handle(object(Request)) in web/app.php (line 159)
  1. if (PHP_VERSION_ID 70000) {
  2.     $kernel->loadClassCache();
  3. }
  4. $request Request::createFromGlobals();
  5. $response $kernel->handle($request);
  6. $response->send();
  7. $kernel->terminate($request$response);

Logs

No log messages

Stack Trace

ContextErrorException

Symfony\Component\Debug\Exception\ContextErrorException:
Warning: ini_set(): Headers already sent. You cannot change the session module's ini settings at this time

  at vendor/symfony/symfony/src/Symfony/Component/HttpFoundation/Session/Storage/Handler/NativeFileSessionHandler.php:51
  at Symfony\Component\HttpFoundation\Session\Storage\Handler\NativeFileSessionHandler->__construct('/home/klient.dhosting.pl/martini007/juniorcoach.pl/var/sessions/prod')
     (var/cache/prod/appProdDebugProjectContainer.php:2373)
  at appProdDebugProjectContainer->getSession_HandlerService()
     (vendor/symfony/symfony/src/Symfony/Component/DependencyInjection/Container.php:329)
  at Symfony\Component\DependencyInjection\Container->get('session.handler')
     (var/cache/prod/appProdDebugProjectContainer.php:2403)
  at appProdDebugProjectContainer->getSession_Storage_NativeService()
     (vendor/symfony/symfony/src/Symfony/Component/DependencyInjection/Container.php:329)
  at Symfony\Component\DependencyInjection\Container->get('session.storage.native')
     (var/cache/prod/appProdDebugProjectContainer.php:2363)
  at appProdDebugProjectContainer->getSessionService()
     (vendor/symfony/symfony/src/Symfony/Component/DependencyInjection/Container.php:329)
  at Symfony\Component\DependencyInjection\Container->get('session', 2)
     (var/cache/prod/appProdDebugProjectContainer.php:2424)
  at appProdDebugProjectContainer->{closure}()
     (vendor/symfony/symfony/src/Symfony/Component/DependencyInjection/ServiceLocator.php:57)
  at Symfony\Component\DependencyInjection\ServiceLocator->get('session')
     (vendor/symfony/symfony/src/Symfony/Component/HttpKernel/EventListener/SessionListener.php:38)
  at Symfony\Component\HttpKernel\EventListener\SessionListener->getSession()
     (vendor/symfony/symfony/src/Symfony/Component/HttpKernel/EventListener/AbstractSessionListener.php:33)
  at Symfony\Component\HttpKernel\EventListener\AbstractSessionListener->onKernelRequest(object(GetResponseEvent), 'kernel.request', object(TraceableEventDispatcher))
  at call_user_func(array(object(SessionListener), 'onKernelRequest'), object(GetResponseEvent), 'kernel.request', object(TraceableEventDispatcher))
     (vendor/symfony/symfony/src/Symfony/Component/EventDispatcher/Debug/WrappedListener.php:104)
  at Symfony\Component\EventDispatcher\Debug\WrappedListener->__invoke(object(GetResponseEvent), 'kernel.request', object(ContainerAwareEventDispatcher))
  at call_user_func(object(WrappedListener), object(GetResponseEvent), 'kernel.request', object(ContainerAwareEventDispatcher))
     (vendor/symfony/symfony/src/Symfony/Component/EventDispatcher/EventDispatcher.php:212)
  at Symfony\Component\EventDispatcher\EventDispatcher->doDispatch(array(object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener)), 'kernel.request', object(GetResponseEvent))
     (vendor/symfony/symfony/src/Symfony/Component/EventDispatcher/EventDispatcher.php:44)
  at Symfony\Component\EventDispatcher\EventDispatcher->dispatch('kernel.request', object(GetResponseEvent))
     (vendor/symfony/symfony/src/Symfony/Component/EventDispatcher/Debug/TraceableEventDispatcher.php:139)
  at Symfony\Component\EventDispatcher\Debug\TraceableEventDispatcher->dispatch('kernel.request', object(GetResponseEvent))
     (vendor/symfony/symfony/src/Symfony/Component/HttpKernel/HttpKernel.php:127)
  at Symfony\Component\HttpKernel\HttpKernel->handleRaw(object(Request), 1)
     (vendor/symfony/symfony/src/Symfony/Component/HttpKernel/HttpKernel.php:68)
  at Symfony\Component\HttpKernel\HttpKernel->handle(object(Request), 1, true)
     (vendor/symfony/symfony/src/Symfony/Component/HttpKernel/Kernel.php:169)
  at Symfony\Component\HttpKernel\Kernel->handle(object(Request))
     (web/app.php:159)