Deprecated: Constant E_STRICT is deprecated in /var/www/sites/sotramagasin/staging/vendor/symfony/error-handler/ErrorHandler.php on line 58

Deprecated: Constant E_STRICT is deprecated in /var/www/sites/sotramagasin/staging/vendor/symfony/error-handler/ErrorHandler.php on line 76

Deprecated: Symfony\Component\Security\Http\Firewall\ChannelListener::__construct(): Implicitly marking parameter $logger as nullable is deprecated, the explicit nullable type must be used instead in /var/www/sites/sotramagasin/staging/vendor/symfony/security-http/Firewall/ChannelListener.php on line 34

Deprecated: Symfony\Component\Security\Http\EntryPoint\RetryAuthenticationEntryPoint::start(): Implicitly marking parameter $authException as nullable is deprecated, the explicit nullable type must be used instead in /var/www/sites/sotramagasin/staging/vendor/symfony/security-http/EntryPoint/RetryAuthenticationEntryPoint.php on line 39

Deprecated: Symfony\Component\Security\Http\AccessMap::add(): Implicitly marking parameter $channel as nullable is deprecated, the explicit nullable type must be used instead in /var/www/sites/sotramagasin/staging/vendor/symfony/security-http/AccessMap.php on line 31

Deprecated: Symfony\Component\Security\Http\Authentication\AuthenticatorManager::__construct(): Implicitly marking parameter $logger as nullable is deprecated, the explicit nullable type must be used instead in /var/www/sites/sotramagasin/staging/vendor/symfony/security-http/Authentication/AuthenticatorManager.php on line 60

Deprecated: Symfony\Bundle\FrameworkBundle\Controller\AbstractController::file(): Implicitly marking parameter $fileName as nullable is deprecated, the explicit nullable type must be used instead in /var/www/sites/sotramagasin/staging/vendor/symfony/framework-bundle/Controller/AbstractController.php on line 189

Deprecated: Symfony\Bundle\FrameworkBundle\Controller\AbstractController::render(): Implicitly marking parameter $response as nullable is deprecated, the explicit nullable type must be used instead in /var/www/sites/sotramagasin/staging/vendor/symfony/framework-bundle/Controller/AbstractController.php on line 257

Deprecated: Symfony\Bundle\FrameworkBundle\Controller\AbstractController::renderForm(): Implicitly marking parameter $response as nullable is deprecated, the explicit nullable type must be used instead in /var/www/sites/sotramagasin/staging/vendor/symfony/framework-bundle/Controller/AbstractController.php on line 275

Deprecated: Symfony\Bundle\FrameworkBundle\Controller\AbstractController::stream(): Implicitly marking parameter $response as nullable is deprecated, the explicit nullable type must be used instead in /var/www/sites/sotramagasin/staging/vendor/symfony/framework-bundle/Controller/AbstractController.php on line 303

Deprecated: Symfony\Bundle\FrameworkBundle\Controller\AbstractController::createNotFoundException(): Implicitly marking parameter $previous as nullable is deprecated, the explicit nullable type must be used instead in /var/www/sites/sotramagasin/staging/vendor/symfony/framework-bundle/Controller/AbstractController.php on line 331

Deprecated: Symfony\Bundle\FrameworkBundle\Controller\AbstractController::createAccessDeniedException(): Implicitly marking parameter $previous as nullable is deprecated, the explicit nullable type must be used instead in /var/www/sites/sotramagasin/staging/vendor/symfony/framework-bundle/Controller/AbstractController.php on line 345

Deprecated: Symfony\Component\Routing\Annotation\Route::__construct(): Implicitly marking parameter $name as nullable is deprecated, the explicit nullable type must be used instead in /var/www/sites/sotramagasin/staging/vendor/symfony/routing/Annotation/Route.php on line 49

Deprecated: Symfony\Component\Routing\Annotation\Route::__construct(): Implicitly marking parameter $host as nullable is deprecated, the explicit nullable type must be used instead in /var/www/sites/sotramagasin/staging/vendor/symfony/routing/Annotation/Route.php on line 49

Deprecated: Symfony\Component\Routing\Annotation\Route::__construct(): Implicitly marking parameter $condition as nullable is deprecated, the explicit nullable type must be used instead in /var/www/sites/sotramagasin/staging/vendor/symfony/routing/Annotation/Route.php on line 49

Deprecated: Symfony\Component\Routing\Annotation\Route::__construct(): Implicitly marking parameter $priority as nullable is deprecated, the explicit nullable type must be used instead in /var/www/sites/sotramagasin/staging/vendor/symfony/routing/Annotation/Route.php on line 49

Deprecated: Symfony\Component\Routing\Annotation\Route::__construct(): Implicitly marking parameter $locale as nullable is deprecated, the explicit nullable type must be used instead in /var/www/sites/sotramagasin/staging/vendor/symfony/routing/Annotation/Route.php on line 49

Deprecated: Symfony\Component\Routing\Annotation\Route::__construct(): Implicitly marking parameter $format as nullable is deprecated, the explicit nullable type must be used instead in /var/www/sites/sotramagasin/staging/vendor/symfony/routing/Annotation/Route.php on line 49

Deprecated: Symfony\Component\Routing\Annotation\Route::__construct(): Implicitly marking parameter $utf8 as nullable is deprecated, the explicit nullable type must be used instead in /var/www/sites/sotramagasin/staging/vendor/symfony/routing/Annotation/Route.php on line 49

Deprecated: Symfony\Component\Routing\Annotation\Route::__construct(): Implicitly marking parameter $stateless as nullable is deprecated, the explicit nullable type must be used instead in /var/www/sites/sotramagasin/staging/vendor/symfony/routing/Annotation/Route.php on line 49

Deprecated: Symfony\Component\Routing\Annotation\Route::__construct(): Implicitly marking parameter $env as nullable is deprecated, the explicit nullable type must be used instead in /var/www/sites/sotramagasin/staging/vendor/symfony/routing/Annotation/Route.php on line 49
Failed to start the session because headers have already been sent by "/var/www/sites/sotramagasin/staging/vendor/symfony/routing/Annotation/Route.php" at line 49. (500 Internal Server Error)

Symfony Exception

RuntimeException

HTTP 500 Internal Server Error

Failed to start the session because headers have already been sent by "/var/www/sites/sotramagasin/staging/vendor/symfony/routing/Annotation/Route.php" at line 49.

Exception

RuntimeException

AuthenticationUtils->getLastAuthenticationError() in src/Controller/SecurityController.php (line 18)
    in vendor/autoload_runtime.php -> run (line 35)
      require_once('/var/www/sites/sotramagasin/staging/vendor/autoload_runtime.php') in public/index.php (line 5)
      1. <?php
        
        use App\Kernel;
        
        require_once dirname(__DIR__).'/vendor/autoload_runtime.php';
        
        return function (array $context) {
            return new Kernel($context['APP_ENV'], (bool) $context['APP_DEBUG']);
        };
        

      Logs 1

      Level Channel Message
      INFO 09:21:26 php User Deprecated: Using the WebserverBundle is deprecated since Symfony 4.4. The new Symfony local server has more features, you can use it instead.
      {
          "exception": {}
      }
      INFO 09:21:26 request Matched route "app_login".
      {
          "route": "app_login",
          "route_parameters": {
              "_route": "app_login",
              "_controller": "App\\Controller\\SecurityController::login"
          },
          "request_uri": "http://staging.sotramagasin.sotraplant.be/login",
          "method": "GET"
      }
      DEBUG 09:21:26 security Checking for authenticator support.
      {
          "firewall_name": "main",
          "authenticators": 1
      }
      DEBUG 09:21:26 security Checking support on authenticator.
      {
          "firewall_name": "main",
          "authenticator": "App\\Security\\LoginFormAuthenticator"
      }
      DEBUG 09:21:26 security Authenticator does not support the request.
      {
          "firewall_name": "main",
          "authenticator": "App\\Security\\LoginFormAuthenticator"
      }
      DEBUG 09:21:26 event Notified event "kernel.request" to listener "Symfony\Component\HttpKernel\EventListener\DebugHandlersListener::configure".
      {
          "event": "kernel.request",
          "listener": "Symfony\\Component\\HttpKernel\\EventListener\\DebugHandlersListener::configure"
      }
      DEBUG 09:21:26 event Notified event "kernel.request" to listener "Symfony\Component\HttpKernel\EventListener\ValidateRequestListener::onKernelRequest".
      {
          "event": "kernel.request",
          "listener": "Symfony\\Component\\HttpKernel\\EventListener\\ValidateRequestListener::onKernelRequest"
      }
      DEBUG 09:21:26 event Notified event "kernel.request" to listener "Symfony\Component\HttpKernel\EventListener\SessionListener::onKernelRequest".
      {
          "event": "kernel.request",
          "listener": "Symfony\\Component\\HttpKernel\\EventListener\\SessionListener::onKernelRequest"
      }
      DEBUG 09:21:26 event Notified event "kernel.request" to listener "Symfony\Component\HttpKernel\EventListener\LocaleListener::setDefaultLocale".
      {
          "event": "kernel.request",
          "listener": "Symfony\\Component\\HttpKernel\\EventListener\\LocaleListener::setDefaultLocale"
      }
      DEBUG 09:21:26 event Notified event "kernel.request" to listener "Symfony\Component\HttpKernel\EventListener\RouterListener::onKernelRequest".
      {
          "event": "kernel.request",
          "listener": "Symfony\\Component\\HttpKernel\\EventListener\\RouterListener::onKernelRequest"
      }
      DEBUG 09:21:26 event Notified event "kernel.request" to listener "Symfony\Component\HttpKernel\EventListener\LocaleListener::onKernelRequest".
      {
          "event": "kernel.request",
          "listener": "Symfony\\Component\\HttpKernel\\EventListener\\LocaleListener::onKernelRequest"
      }
      DEBUG 09:21:26 event Notified event "kernel.request" to listener "Symfony\Component\HttpKernel\EventListener\LocaleAwareListener::onKernelRequest".
      {
          "event": "kernel.request",
          "listener": "Symfony\\Component\\HttpKernel\\EventListener\\LocaleAwareListener::onKernelRequest"
      }
      DEBUG 09:21:26 event Notified event "kernel.request" to listener "Symfony\Bundle\SecurityBundle\Debug\TraceableFirewallListener::configureLogoutUrlGenerator".
      {
          "event": "kernel.request",
          "listener": "Symfony\\Bundle\\SecurityBundle\\Debug\\TraceableFirewallListener::configureLogoutUrlGenerator"
      }
      DEBUG 09:21:26 event Notified event "kernel.request" to listener "Symfony\Bundle\SecurityBundle\Debug\TraceableFirewallListener::onKernelRequest".
      {
          "event": "kernel.request",
          "listener": "Symfony\\Bundle\\SecurityBundle\\Debug\\TraceableFirewallListener::onKernelRequest"
      }
      DEBUG 09:21:26 event Notified event "kernel.controller" to listener "Symfony\Bundle\FrameworkBundle\DataCollector\RouterDataCollector::onKernelController".
      {
          "event": "kernel.controller",
          "listener": "Symfony\\Bundle\\FrameworkBundle\\DataCollector\\RouterDataCollector::onKernelController"
      }
      DEBUG 09:21:26 event Notified event "kernel.controller" to listener "Symfony\Component\HttpKernel\DataCollector\RequestDataCollector::onKernelController".
      {
          "event": "kernel.controller",
          "listener": "Symfony\\Component\\HttpKernel\\DataCollector\\RequestDataCollector::onKernelController"
      }
      DEBUG 09:21:26 event Notified event "kernel.controller" to listener "Sensio\Bundle\FrameworkExtraBundle\EventListener\ControllerListener::onKernelController".
      {
          "event": "kernel.controller",
          "listener": "Sensio\\Bundle\\FrameworkExtraBundle\\EventListener\\ControllerListener::onKernelController"
      }
      DEBUG 09:21:26 event Notified event "kernel.controller" to listener "Sensio\Bundle\FrameworkExtraBundle\EventListener\ParamConverterListener::onKernelController".
      {
          "event": "kernel.controller",
          "listener": "Sensio\\Bundle\\FrameworkExtraBundle\\EventListener\\ParamConverterListener::onKernelController"
      }
      DEBUG 09:21:26 event Notified event "kernel.controller" to listener "Sensio\Bundle\FrameworkExtraBundle\EventListener\HttpCacheListener::onKernelController".
      {
          "event": "kernel.controller",
          "listener": "Sensio\\Bundle\\FrameworkExtraBundle\\EventListener\\HttpCacheListener::onKernelController"
      }
      DEBUG 09:21:26 event Notified event "kernel.controller" to listener "Sensio\Bundle\FrameworkExtraBundle\EventListener\TemplateListener::onKernelController".
      {
          "event": "kernel.controller",
          "listener": "Sensio\\Bundle\\FrameworkExtraBundle\\EventListener\\TemplateListener::onKernelController"
      }
      DEBUG 09:21:26 event Notified event "kernel.controller_arguments" to listener "Symfony\Component\HttpKernel\EventListener\ErrorListener::onControllerArguments".
      {
          "event": "kernel.controller_arguments",
          "listener": "Symfony\\Component\\HttpKernel\\EventListener\\ErrorListener::onControllerArguments"
      }
      DEBUG 09:21:26 event Notified event "kernel.controller_arguments" to listener "Sensio\Bundle\FrameworkExtraBundle\EventListener\SecurityListener::onKernelControllerArguments".
      {
          "event": "kernel.controller_arguments",
          "listener": "Sensio\\Bundle\\FrameworkExtraBundle\\EventListener\\SecurityListener::onKernelControllerArguments"
      }
      DEBUG 09:21:26 event Notified event "kernel.controller_arguments" to listener "Sensio\Bundle\FrameworkExtraBundle\EventListener\IsGrantedListener::onKernelControllerArguments".
      {
          "event": "kernel.controller_arguments",
          "listener": "Sensio\\Bundle\\FrameworkExtraBundle\\EventListener\\IsGrantedListener::onKernelControllerArguments"
      }
      INFO 09:21:26 doctrine Connecting with parameters {params}
      {
          "params": {
              "driver": "pdo_mysql",
              "charset": "utf8mb4",
              "unix_socket": "",
              "url": "<redacted>",
              "host": "127.0.0.1",
              "port": 3306,
              "user": "wecodx_sotraoffice",
              "password": "<redacted>",
              "driverOptions": [],
              "defaultTableOptions": {
                  "charset": "utf8mb4",
                  "collate": "utf8mb4_unicode_ci"
              },
              "dbname": "sotraoffice_staging_magasin"
          }
      }
      INFO 09:21:26 php Deprecated: App\Entity\User implements the Serializable interface, which is deprecated. Implement __serialize() and __unserialize() instead (or in addition, if support for old PHP versions is necessary)
      {
          "exception": {}
      }
      INFO 09:21:26 php Deprecated: Creation of dynamic property App\Repository\InvoiceRepository::$invoiceMachineryRepository is deprecated
      {
          "exception": {}
      }
      INFO 09:21:26 php Deprecated: Creation of dynamic property App\Repository\InvoiceRepository::$invoiceConstructionSiteRepository is deprecated
      {
          "exception": {}
      }
      INFO 09:21:26 php Deprecated: Creation of dynamic property App\Service\TwigService::$reservedStockRepository is deprecated
      {
          "exception": {}
      }
      INFO 09:21:26 php Deprecated: Creation of dynamic property App\Service\TwigService::$userRepository is deprecated
      {
          "exception": {}
      }
      INFO 09:21:26 php Deprecated: Creation of dynamic property App\Service\TwigService::$invoiceRepository is deprecated
      {
          "exception": {}
      }
      CRITICAL 09:21:26 request Uncaught PHP Exception RuntimeException: "Failed to start the session because headers have already been sent by "/var/www/sites/sotramagasin/staging/vendor/symfony/routing/Annotation/Route.php" at line 49." at /var/www/sites/sotramagasin/staging/vendor/symfony/http-foundation/Session/Storage/NativeSessionStorage.php line 152
      {
          "exception": {}
      }
      DEBUG 09:21:26 event Notified event "kernel.request" to listener "Symfony\Component\HttpKernel\EventListener\DebugHandlersListener::configure".
      {
          "event": "kernel.request",
          "listener": "Symfony\\Component\\HttpKernel\\EventListener\\DebugHandlersListener::configure"
      }
      DEBUG 09:21:26 event Notified event "kernel.request" to listener "Symfony\Component\HttpKernel\EventListener\ValidateRequestListener::onKernelRequest".
      {
          "event": "kernel.request",
          "listener": "Symfony\\Component\\HttpKernel\\EventListener\\ValidateRequestListener::onKernelRequest"
      }
      DEBUG 09:21:26 event Notified event "kernel.request" to listener "Symfony\Component\HttpKernel\EventListener\SessionListener::onKernelRequest".
      {
          "event": "kernel.request",
          "listener": "Symfony\\Component\\HttpKernel\\EventListener\\SessionListener::onKernelRequest"
      }
      DEBUG 09:21:26 event Notified event "kernel.request" to listener "Symfony\Component\HttpKernel\EventListener\LocaleListener::setDefaultLocale".
      {
          "event": "kernel.request",
          "listener": "Symfony\\Component\\HttpKernel\\EventListener\\LocaleListener::setDefaultLocale"
      }
      DEBUG 09:21:26 event Notified event "kernel.request" to listener "Symfony\Component\HttpKernel\EventListener\RouterListener::onKernelRequest".
      {
          "event": "kernel.request",
          "listener": "Symfony\\Component\\HttpKernel\\EventListener\\RouterListener::onKernelRequest"
      }
      DEBUG 09:21:26 event Notified event "kernel.request" to listener "Symfony\Component\HttpKernel\EventListener\LocaleListener::onKernelRequest".
      {
          "event": "kernel.request",
          "listener": "Symfony\\Component\\HttpKernel\\EventListener\\LocaleListener::onKernelRequest"
      }
      DEBUG 09:21:26 event Notified event "kernel.request" to listener "Symfony\Component\HttpKernel\EventListener\LocaleAwareListener::onKernelRequest".
      {
          "event": "kernel.request",
          "listener": "Symfony\\Component\\HttpKernel\\EventListener\\LocaleAwareListener::onKernelRequest"
      }
      DEBUG 09:21:26 event Notified event "kernel.request" to listener "Symfony\Bundle\SecurityBundle\Debug\TraceableFirewallListener::configureLogoutUrlGenerator".
      {
          "event": "kernel.request",
          "listener": "Symfony\\Bundle\\SecurityBundle\\Debug\\TraceableFirewallListener::configureLogoutUrlGenerator"
      }
      DEBUG 09:21:26 event Notified event "kernel.request" to listener "Symfony\Bundle\SecurityBundle\Debug\TraceableFirewallListener::onKernelRequest".
      {
          "event": "kernel.request",
          "listener": "Symfony\\Bundle\\SecurityBundle\\Debug\\TraceableFirewallListener::onKernelRequest"
      }
      DEBUG 09:21:26 event Notified event "kernel.controller" to listener "Symfony\Bundle\FrameworkBundle\DataCollector\RouterDataCollector::onKernelController".
      {
          "event": "kernel.controller",
          "listener": "Symfony\\Bundle\\FrameworkBundle\\DataCollector\\RouterDataCollector::onKernelController"
      }
      DEBUG 09:21:26 event Notified event "kernel.controller" to listener "Symfony\Component\HttpKernel\DataCollector\RequestDataCollector::onKernelController".
      {
          "event": "kernel.controller",
          "listener": "Symfony\\Component\\HttpKernel\\DataCollector\\RequestDataCollector::onKernelController"
      }
      DEBUG 09:21:26 event Notified event "kernel.controller" to listener "Sensio\Bundle\FrameworkExtraBundle\EventListener\ControllerListener::onKernelController".
      {
          "event": "kernel.controller",
          "listener": "Sensio\\Bundle\\FrameworkExtraBundle\\EventListener\\ControllerListener::onKernelController"
      }
      DEBUG 09:21:26 event Notified event "kernel.controller" to listener "Sensio\Bundle\FrameworkExtraBundle\EventListener\ParamConverterListener::onKernelController".
      {
          "event": "kernel.controller",
          "listener": "Sensio\\Bundle\\FrameworkExtraBundle\\EventListener\\ParamConverterListener::onKernelController"
      }
      DEBUG 09:21:26 event Notified event "kernel.controller" to listener "Sensio\Bundle\FrameworkExtraBundle\EventListener\HttpCacheListener::onKernelController".
      {
          "event": "kernel.controller",
          "listener": "Sensio\\Bundle\\FrameworkExtraBundle\\EventListener\\HttpCacheListener::onKernelController"
      }
      DEBUG 09:21:26 event Notified event "kernel.controller" to listener "Sensio\Bundle\FrameworkExtraBundle\EventListener\TemplateListener::onKernelController".
      {
          "event": "kernel.controller",
          "listener": "Sensio\\Bundle\\FrameworkExtraBundle\\EventListener\\TemplateListener::onKernelController"
      }
      DEBUG 09:21:26 event Notified event "kernel.controller_arguments" to listener "Symfony\Component\HttpKernel\EventListener\ErrorListener::onControllerArguments".
      {
          "event": "kernel.controller_arguments",
          "listener": "Symfony\\Component\\HttpKernel\\EventListener\\ErrorListener::onControllerArguments"
      }
      DEBUG 09:21:26 event Notified event "kernel.controller_arguments" to listener "Sensio\Bundle\FrameworkExtraBundle\EventListener\SecurityListener::onKernelControllerArguments".
      {
          "event": "kernel.controller_arguments",
          "listener": "Sensio\\Bundle\\FrameworkExtraBundle\\EventListener\\SecurityListener::onKernelControllerArguments"
      }
      DEBUG 09:21:26 event Notified event "kernel.controller_arguments" to listener "Sensio\Bundle\FrameworkExtraBundle\EventListener\IsGrantedListener::onKernelControllerArguments".
      {
          "event": "kernel.controller_arguments",
          "listener": "Sensio\\Bundle\\FrameworkExtraBundle\\EventListener\\IsGrantedListener::onKernelControllerArguments"
      }

      Stack Trace

      RuntimeException
      RuntimeException:
      Failed to start the session because headers have already been sent by "/var/www/sites/sotramagasin/staging/vendor/symfony/routing/Annotation/Route.php" at line 49.
      
        at vendor/symfony/http-foundation/Session/Storage/NativeSessionStorage.php:152
        at Symfony\Component\HttpFoundation\Session\Storage\NativeSessionStorage->start()
           (vendor/symfony/http-foundation/Session/Storage/NativeSessionStorage.php:323)
        at Symfony\Component\HttpFoundation\Session\Storage\NativeSessionStorage->getBag()
           (vendor/symfony/http-foundation/Session/Session.php:259)
        at Symfony\Component\HttpFoundation\Session\Session->getBag()
           (vendor/symfony/http-foundation/Session/Session.php:281)
        at Symfony\Component\HttpFoundation\Session\Session->getAttributeBag()
           (vendor/symfony/http-foundation/Session/Session.php:67)
        at Symfony\Component\HttpFoundation\Session\Session->has()
           (vendor/symfony/security-http/Authentication/AuthenticationUtils.php:43)
        at Symfony\Component\Security\Http\Authentication\AuthenticationUtils->getLastAuthenticationError()
           (src/Controller/SecurityController.php:18)
        at App\Controller\SecurityController->login()
           (vendor/symfony/http-kernel/HttpKernel.php:156)
        at Symfony\Component\HttpKernel\HttpKernel->handleRaw()
           (vendor/symfony/http-kernel/HttpKernel.php:78)
        at Symfony\Component\HttpKernel\HttpKernel->handle()
           (vendor/symfony/http-kernel/Kernel.php:199)
        at Symfony\Component\HttpKernel\Kernel->handle()
           (vendor/symfony/runtime/Runner/Symfony/HttpKernelRunner.php:37)
        at Symfony\Component\Runtime\Runner\Symfony\HttpKernelRunner->run()
           (vendor/autoload_runtime.php:35)
        at require_once('/var/www/sites/sotramagasin/staging/vendor/autoload_runtime.php')
           (public/index.php:5)