Warning: "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in /home/uqipvwpi/public_html/skyvision/vendor/doctrine/orm/lib/Doctrine/ORM/UnitOfWork.php on line 2636

Warning: "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in /home/uqipvwpi/public_html/skyvision/vendor/doctrine/orm/lib/Doctrine/ORM/UnitOfWork.php on line 2665
Failed to start the session because headers have already been sent by "/home/uqipvwpi/public_html/skyvision/vendor/doctrine/orm/lib/Doctrine/ORM/UnitOfWork.php" at line 2636. (500Internal Server Error)

Symfony Exception

RuntimeException

HTTP500 Internal Server Error

Failed to start the session because headers have already been sent by "/home/uqipvwpi/public_html/skyvision/vendor/doctrine/orm/lib/Doctrine/ORM/UnitOfWork.php" at line 2636.

Exception

RuntimeException

  1.         if (\PHP_SESSION_ACTIVE === session_status()) {
  2.             throw new \RuntimeException('Failed to start the session: already started by PHP.');
  3.         }
  4.         if (ini_get('session.use_cookies') && headers_sent($file, $line)) {
  5.             throw new \RuntimeException(sprintf('Failed to start the session because headers have already been sent by "%s" at line %d.', $file, $line));
  6.         }
  7.         // ok to try and start the session
  8.         if (!session_start()) {
  9.             throw new \RuntimeException('Failed to start the session');
  1.         }
  2.         if (!$this->started && $this->saveHandler->isActive()) {
  3.             $this->loadSession();
  4.         } elseif (!$this->started) {
  5.             $this->start();
  6.         }
  7.         return $this->bags[$name];
  8.     }
NativeSessionStorage->getBag('attributes') in vendor/symfony/symfony/src/Symfony/Component/HttpFoundation/Session/Session.php (line249)
  1.     /**
  2.      * {@inheritdoc}
  3.      */
  4.     public function getBag($name)
  5.     {
  6.         return $this->storage->getBag($name)->getBag();
  7.     }
  8.     /**
  9.      * Gets the flashbag interface.
  10.      *
  1.      *
  2.      * @return AttributeBagInterface
  3.      */
  4.     private function getAttributeBag()
  5.     {
  6.         return $this->getBag($this->attributeName);
  7.     }
  8. }
  1.     /**
  2.      * {@inheritdoc}
  3.      */
  4.     public function set($name, $value)
  5.     {
  6.         $this->getAttributeBag()->set($name, $value);
  7.     }
  8.     /**
  9.      * {@inheritdoc}
  10.      */
Session->set('_security.main.target_path', 'https://www.skyvision.alex-ivanov.eu/') in vendor/symfony/symfony/src/Symfony/Component/Security/Http/Util/TargetPathTrait.php (line32)
  1.      * @param string           $providerKey The name of your firewall
  2.      * @param string           $uri         The URI to set as the target path
  3.      */
  4.     private function saveTargetPath(SessionInterface $session, $providerKey, $uri)
  5.     {
  6.         $session->set('_security.'.$providerKey.'.target_path', $uri);
  7.     }
  8.     /**
  9.      * Returns the URL (if any) the user visited that forced them to login.
  10.      *
ExceptionListener->saveTargetPath(object(Session), 'main', 'https://www.skyvision.alex-ivanov.eu/') in vendor/symfony/symfony/src/Symfony/Component/Security/Http/Firewall/ExceptionListener.php (line214)
  1.     protected function setTargetPath(Request $request)
  2.     {
  3.         // session isn't required when using HTTP basic authentication mechanism for example
  4.         if ($request->hasSession() && $request->isMethodSafe(false) && !$request->isXmlHttpRequest()) {
  5.             $this->saveTargetPath($request->getSession(), $this->providerKey, $request->getUri());
  6.         }
  7.     }
  8. }
ExceptionListener->setTargetPath(object(Request)) in vendor/symfony/symfony/src/Symfony/Component/Security/Http/Firewall/ExceptionListener.php (line187)
  1.         if (null !== $this->logger) {
  2.             $this->logger->debug('Calling Authentication entry point.');
  3.         }
  4.         if (!$this->stateless) {
  5.             $this->setTargetPath($request);
  6.         }
  7.         if ($authException instanceof AccountStatusException) {
  8.             // remove the security token to prevent infinite redirect loops
  9.             $this->tokenStorage->setToken(null);
ExceptionListener->startAuthentication(object(Request), object(InsufficientAuthenticationException)) in vendor/symfony/symfony/src/Symfony/Component/Security/Http/Firewall/ExceptionListener.php (line129)
  1.             try {
  2.                 $insufficientAuthenticationException = new InsufficientAuthenticationException('Full authentication is required to access this resource.', 0, $exception);
  3.                 $insufficientAuthenticationException->setToken($token);
  4.                 $event->setResponse($this->startAuthentication($event->getRequest(), $insufficientAuthenticationException));
  5.             } catch (\Exception $e) {
  6.                 $event->setException($e);
  7.             }
  8.             return;
ExceptionListener->handleAccessDeniedException(object(GetResponseForExceptionEvent), object(AccessDeniedException)) in vendor/symfony/symfony/src/Symfony/Component/Security/Http/Firewall/ExceptionListener.php (line94)
  1.         $exception = $event->getException();
  2.         do {
  3.             if ($exception instanceof AuthenticationException) {
  4.                 return $this->handleAuthenticationException($event, $exception);
  5.             } elseif ($exception instanceof AccessDeniedException) {
  6.                 return $this->handleAccessDeniedException($event, $exception);
  7.             } elseif ($exception instanceof LogoutException) {
  8.                 return $this->handleLogoutException($exception);
  9.             }
  10.         } while (null !== $exception = $exception->getPrevious());
  11.     }
ExceptionListener->onKernelException(object(GetResponseForExceptionEvent), 'kernel.exception', object(TraceableEventDispatcher))
call_user_func(array(object(ExceptionListener), 'onKernelException'), object(GetResponseForExceptionEvent), 'kernel.exception', object(TraceableEventDispatcher)) in vendor/symfony/symfony/src/Symfony/Component/EventDispatcher/Debug/WrappedListener.php (line104)
  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(GetResponseForExceptionEvent), 'kernel.exception', object(ContainerAwareEventDispatcher)) in vendor/symfony/symfony/src/Symfony/Component/EventDispatcher/EventDispatcher.php (line212)
  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)), 'kernel.exception', object(GetResponseForExceptionEvent)) in vendor/symfony/symfony/src/Symfony/Component/EventDispatcher/EventDispatcher.php (line44)
  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.exception', object(GetResponseForExceptionEvent)) in vendor/symfony/symfony/src/Symfony/Component/EventDispatcher/Debug/TraceableEventDispatcher.php (line139)
  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.exception', object(GetResponseForExceptionEvent)) in vendor/symfony/symfony/src/Symfony/Component/HttpKernel/HttpKernel.php (line228)
  1.      * @throws \Exception
  2.      */
  3.     private function handleException(\Exception $e, $request, $type)
  4.     {
  5.         $event = new GetResponseForExceptionEvent($this, $request, $type, $e);
  6.         $this->dispatcher->dispatch(KernelEvents::EXCEPTION, $event);
  7.         // a listener might have replaced the exception
  8.         $e = $event->getException();
  9.         if (!$event->hasResponse()) {
HttpKernel->handleException(object(AccessDeniedException), object(Request), 1) in vendor/symfony/symfony/src/Symfony/Component/HttpKernel/HttpKernel.php (line79)
  1.                 $this->finishRequest($request, $type);
  2.                 throw $e;
  3.             }
  4.             return $this->handleException($e, $request, $type);
  5.         }
  6.     }
  7.     /**
  8.      * {@inheritdoc}
HttpKernel->handle(object(Request), 1, true) in vendor/symfony/symfony/src/Symfony/Component/HttpKernel/Kernel.php (line202)
  1.         $this->boot();
  2.         ++$this->requestStackSize;
  3.         $this->resetServices = true;
  4.         try {
  5.             return $this->getHttpKernel()->handle($request, $type, $catch);
  6.         } finally {
  7.             --$this->requestStackSize;
  8.         }
  9.     }
Kernel->handle(object(Request)) in web/app.php (line19)
  1. //$kernel = new AppCache($kernel);
  2. // When using the HttpCache, you need to call the method in your front controller instead of relying on the configuration parameter
  3. //Request::enableHttpMethodParameterOverride();
  4. $request = Request::createFromGlobals();
  5. $response = $kernel->handle($request);
  6. $response->send();
  7. $kernel->terminate($request, $response);

Logs

No log messages

Stack Trace

RuntimeException

RuntimeException:Failed to start the session because headers have already been sent by "/home/uqipvwpi/public_html/skyvision/vendor/doctrine/orm/lib/Doctrine/ORM/UnitOfWork.php" at line 2636.at vendor/symfony/symfony/src/Symfony/Component/HttpFoundation/Session/Storage/NativeSessionStorage.php:141atSymfony\Component\HttpFoundation\Session\Storage\NativeSessionStorage->start()
     (vendor/symfony/symfony/src/Symfony/Component/HttpFoundation/Session/Storage/NativeSessionStorage.php:302)atSymfony\Component\HttpFoundation\Session\Storage\NativeSessionStorage->getBag('attributes')
     (vendor/symfony/symfony/src/Symfony/Component/HttpFoundation/Session/Session.php:249)atSymfony\Component\HttpFoundation\Session\Session->getBag('attributes')
     (vendor/symfony/symfony/src/Symfony/Component/HttpFoundation/Session/Session.php:271)atSymfony\Component\HttpFoundation\Session\Session->getAttributeBag()
     (vendor/symfony/symfony/src/Symfony/Component/HttpFoundation/Session/Session.php:81)atSymfony\Component\HttpFoundation\Session\Session->set('_security.main.target_path', 'https://www.skyvision.alex-ivanov.eu/')
     (vendor/symfony/symfony/src/Symfony/Component/Security/Http/Util/TargetPathTrait.php:32)atSymfony\Component\Security\Http\Firewall\ExceptionListener->saveTargetPath(object(Session), 'main', 'https://www.skyvision.alex-ivanov.eu/')
     (vendor/symfony/symfony/src/Symfony/Component/Security/Http/Firewall/ExceptionListener.php:214)atSymfony\Component\Security\Http\Firewall\ExceptionListener->setTargetPath(object(Request))
     (vendor/symfony/symfony/src/Symfony/Component/Security/Http/Firewall/ExceptionListener.php:187)atSymfony\Component\Security\Http\Firewall\ExceptionListener->startAuthentication(object(Request), object(InsufficientAuthenticationException))
     (vendor/symfony/symfony/src/Symfony/Component/Security/Http/Firewall/ExceptionListener.php:129)atSymfony\Component\Security\Http\Firewall\ExceptionListener->handleAccessDeniedException(object(GetResponseForExceptionEvent), object(AccessDeniedException))
     (vendor/symfony/symfony/src/Symfony/Component/Security/Http/Firewall/ExceptionListener.php:94)atSymfony\Component\Security\Http\Firewall\ExceptionListener->onKernelException(object(GetResponseForExceptionEvent), 'kernel.exception', object(TraceableEventDispatcher))atcall_user_func(array(object(ExceptionListener), 'onKernelException'), object(GetResponseForExceptionEvent), 'kernel.exception', object(TraceableEventDispatcher))
     (vendor/symfony/symfony/src/Symfony/Component/EventDispatcher/Debug/WrappedListener.php:104)atSymfony\Component\EventDispatcher\Debug\WrappedListener->__invoke(object(GetResponseForExceptionEvent), 'kernel.exception', object(ContainerAwareEventDispatcher))
     (vendor/symfony/symfony/src/Symfony/Component/EventDispatcher/EventDispatcher.php:212)atSymfony\Component\EventDispatcher\EventDispatcher->doDispatch(array(object(WrappedListener), object(WrappedListener), object(WrappedListener)), 'kernel.exception', object(GetResponseForExceptionEvent))
     (vendor/symfony/symfony/src/Symfony/Component/EventDispatcher/EventDispatcher.php:44)atSymfony\Component\EventDispatcher\EventDispatcher->dispatch('kernel.exception', object(GetResponseForExceptionEvent))
     (vendor/symfony/symfony/src/Symfony/Component/EventDispatcher/Debug/TraceableEventDispatcher.php:139)atSymfony\Component\EventDispatcher\Debug\TraceableEventDispatcher->dispatch('kernel.exception', object(GetResponseForExceptionEvent))
     (vendor/symfony/symfony/src/Symfony/Component/HttpKernel/HttpKernel.php:228)atSymfony\Component\HttpKernel\HttpKernel->handleException(object(AccessDeniedException), object(Request), 1)
     (vendor/symfony/symfony/src/Symfony/Component/HttpKernel/HttpKernel.php:79)atSymfony\Component\HttpKernel\HttpKernel->handle(object(Request), 1, true)
     (vendor/symfony/symfony/src/Symfony/Component/HttpKernel/Kernel.php:202)atSymfony\Component\HttpKernel\Kernel->handle(object(Request))
     (web/app.php:19)