"0.020320892333984 http://sis.silverjet.nl/nosvn/4site3.php?act=get_referrers&branche=BE&lang=nl&"
Failed to start the session because headers have already been sent by "/var/www/new-be.silverjet.nl/vendor/symfony/var-dumper/Dumper/AbstractDumper.php" at line 181. (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/new-be.silverjet.nl/vendor/symfony/var-dumper/Dumper/AbstractDumper.php" at line 181.

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 (filter_var(ini_get('session.use_cookies'), FILTER_VALIDATE_BOOLEAN) && 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.      * {@inheritdoc}
  3.      */
  4.     public function start()
  5.     {
  6.         return $this->storage->start();
  7.     }
  8.     /**
  9.      * {@inheritdoc}
  10.      */
  1.      * {@inheritdoc}
  2.      */
  3.     public function hasToken($tokenId)
  4.     {
  5.         if (!$this->session->isStarted()) {
  6.             $this->session->start();
  7.         }
  8.         return $this->session->has($this->namespace.'/'.$tokenId);
  9.     }
  1.      * {@inheritdoc}
  2.      */
  3.     public function getToken($tokenId)
  4.     {
  5.         $namespacedId $this->getNamespace().$tokenId;
  6.         if ($this->storage->hasToken($namespacedId)) {
  7.             $value $this->storage->getToken($namespacedId);
  8.         } else {
  9.             $value $this->generator->generateToken();
  10.             $this->storage->setToken($namespacedId$value);
  1.     public function finishView(FormView $viewFormInterface $form, array $options)
  2.     {
  3.         if ($options['csrf_protection'] && !$view->parent && $options['compound']) {
  4.             $factory $form->getConfig()->getFormFactory();
  5.             $tokenId $options['csrf_token_id'] ?: ($form->getName() ?: \get_class($form->getConfig()->getType()->getInnerType()));
  6.             $data = (string) $options['csrf_token_manager']->getToken($tokenId);
  7.             $csrfForm $factory->createNamed($options['csrf_field_name'], 'Symfony\Component\Form\Extension\Core\Type\HiddenType'$data, [
  8.                 'mapped' => false,
  9.             ]);
in vendor/symfony/form/ResolvedFormType.php->finishView (line 174)
  1.         $this->innerType->finishView($view$form$options);
  2.         foreach ($this->typeExtensions as $extension) {
  3.             /* @var FormTypeExtensionInterface $extension */
  4.             $extension->finishView($view$form$options);
  5.         }
  6.     }
  7.     /**
  8.      * Returns the configured options resolver used for this type.
  1.     /**
  2.      * {@inheritdoc}
  3.      */
  4.     public function finishView(FormView $viewFormInterface $form, array $options)
  5.     {
  6.         $this->proxiedType->finishView($view$form$options);
  7.         // Remember which view belongs to which form instance, so that we can
  8.         // get the collected data for a view when its form instance is not
  9.         // available (e.g. CSRF token)
  10.         $this->dataCollector->associateFormWithView($form$view);
in vendor/symfony/form/Form.php->finishView (line 1046)
  1.         foreach ($this->children as $name => $child) {
  2.             $view->children[$name] = $child->createView($view);
  3.         }
  4.         $type->finishView($view$this$options);
  5.         return $view;
  6.     }
  7.     /**
Form->createView() in src/Controller/BrochureController.php (line 108)
  1.             } else {
  2.                 $aResults[] = 'no_data_received';
  3.             }
  4.         }
  5.         return $this->render('brochure/request.html.twig', ['results' => $aResults'form' => $form->createView()]);
  6.     }
  7.     /**
  8.      * @Route("brochure/bedankt", name="brochure_thank_you", requirements={"_locale": "%app_locales%"})
  9.      */
  1.         $this->dispatcher->dispatch(KernelEvents::CONTROLLER_ARGUMENTS$event);
  2.         $controller $event->getController();
  3.         $arguments $event->getArguments();
  4.         // call controller
  5.         $response $controller(...$arguments);
  6.         // view
  7.         if (!$response instanceof Response) {
  8.             $event = new GetResponseForControllerResultEvent($this$request$type$response);
  9.             $this->dispatcher->dispatch(KernelEvents::VIEW$event);
  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) {
  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 public/index.php (line 43)
  1.     setcookie"iUserID"$_GET['iUserID'], time() + 60 60 24 30"/" );
  2. }
  3. $kernel = new Kernel($_SERVER['APP_ENV'] ?? 'dev'$_SERVER['APP_DEBUG'] ?? ('prod' !== ($_SERVER['APP_ENV'] ?? 'dev')));
  4. $request Request::createFromGlobals();
  5. $response $kernel->handle($request);
  6. $response->send();
  7. $kernel->terminate($request$response);

Stack Trace

RuntimeException

RuntimeException:
Failed to start the session because headers have already been sent by "/var/www/new-be.silverjet.nl/vendor/symfony/var-dumper/Dumper/AbstractDumper.php" at line 181.

  at vendor/symfony/http-foundation/Session/Storage/NativeSessionStorage.php:145
  at Symfony\Component\HttpFoundation\Session\Storage\NativeSessionStorage->start()
     (vendor/symfony/http-foundation/Session/Session.php:57)
  at Symfony\Component\HttpFoundation\Session\Session->start()
     (vendor/symfony/security-csrf/TokenStorage/SessionTokenStorage.php:78)
  at Symfony\Component\Security\Csrf\TokenStorage\SessionTokenStorage->hasToken('https-form')
     (vendor/symfony/security-csrf/CsrfTokenManager.php:72)
  at Symfony\Component\Security\Csrf\CsrfTokenManager->getToken('form')
     (vendor/symfony/form/Extension/Csrf/Type/FormTypeCsrfExtension.php:91)
  at Symfony\Component\Form\Extension\Csrf\Type\FormTypeCsrfExtension->finishView(object(FormView), object(Form), array('block_name' => null, 'disabled' => false, 'label' => null, 'label_format' => null, 'translation_domain' => null, 'auto_initialize' => true, 'trim' => true, 'required' => true, 'property_path' => null, 'mapped' => true, 'by_reference' => true, 'inherit_data' => false, 'compound' => true, 'method' => 'POST', 'action' => '', 'post_max_size_message' => 'The uploaded file was too large. Please try to upload a smaller file.', 'allow_file_upload' => false, 'error_mapping' => array(), 'invalid_message' => 'This value is not valid.', 'invalid_message_parameters' => array(), 'allow_extra_fields' => false, 'extra_fields_message' => 'This form should not contain extra fields.', 'csrf_protection' => true, 'csrf_field_name' => '_token', 'csrf_message' => 'The CSRF token is invalid. Please try to resubmit the form.', 'csrf_token_manager' => object(CsrfTokenManager), 'csrf_token_id' => null, 'attr' => array(), 'data_class' => null, 'empty_data' => object(Closure), 'error_bubbling' => true, 'label_attr' => array(), 'upload_max_size_message' => object(Closure), 'help' => null, 'help_attr' => array(), 'validation_groups' => null, 'constraints' => array()))
     (vendor/symfony/form/ResolvedFormType.php:174)
  at Symfony\Component\Form\ResolvedFormType->finishView(object(FormView), object(Form), array('block_name' => null, 'disabled' => false, 'label' => null, 'label_format' => null, 'translation_domain' => null, 'auto_initialize' => true, 'trim' => true, 'required' => true, 'property_path' => null, 'mapped' => true, 'by_reference' => true, 'inherit_data' => false, 'compound' => true, 'method' => 'POST', 'action' => '', 'post_max_size_message' => 'The uploaded file was too large. Please try to upload a smaller file.', 'allow_file_upload' => false, 'error_mapping' => array(), 'invalid_message' => 'This value is not valid.', 'invalid_message_parameters' => array(), 'allow_extra_fields' => false, 'extra_fields_message' => 'This form should not contain extra fields.', 'csrf_protection' => true, 'csrf_field_name' => '_token', 'csrf_message' => 'The CSRF token is invalid. Please try to resubmit the form.', 'csrf_token_manager' => object(CsrfTokenManager), 'csrf_token_id' => null, 'attr' => array(), 'data_class' => null, 'empty_data' => object(Closure), 'error_bubbling' => true, 'label_attr' => array(), 'upload_max_size_message' => object(Closure), 'help' => null, 'help_attr' => array(), 'validation_groups' => null, 'constraints' => array()))
     (vendor/symfony/form/Extension/DataCollector/Proxy/ResolvedTypeDataCollectorProxy.php:111)
  at Symfony\Component\Form\Extension\DataCollector\Proxy\ResolvedTypeDataCollectorProxy->finishView(object(FormView), object(Form), array('block_name' => null, 'disabled' => false, 'label' => null, 'label_format' => null, 'translation_domain' => null, 'auto_initialize' => true, 'trim' => true, 'required' => true, 'property_path' => null, 'mapped' => true, 'by_reference' => true, 'inherit_data' => false, 'compound' => true, 'method' => 'POST', 'action' => '', 'post_max_size_message' => 'The uploaded file was too large. Please try to upload a smaller file.', 'allow_file_upload' => false, 'error_mapping' => array(), 'invalid_message' => 'This value is not valid.', 'invalid_message_parameters' => array(), 'allow_extra_fields' => false, 'extra_fields_message' => 'This form should not contain extra fields.', 'csrf_protection' => true, 'csrf_field_name' => '_token', 'csrf_message' => 'The CSRF token is invalid. Please try to resubmit the form.', 'csrf_token_manager' => object(CsrfTokenManager), 'csrf_token_id' => null, 'attr' => array(), 'data_class' => null, 'empty_data' => object(Closure), 'error_bubbling' => true, 'label_attr' => array(), 'upload_max_size_message' => object(Closure), 'help' => null, 'help_attr' => array(), 'validation_groups' => null, 'constraints' => array()))
     (vendor/symfony/form/Form.php:1046)
  at Symfony\Component\Form\Form->createView()
     (src/Controller/BrochureController.php:108)
  at App\Controller\BrochureController->request('198', object(Request), object(SisProvider), object(DataCollectorTranslator))
     (vendor/symfony/http-kernel/HttpKernel.php:150)
  at Symfony\Component\HttpKernel\HttpKernel->handleRaw(object(Request), 1)
     (vendor/symfony/http-kernel/HttpKernel.php:67)
  at Symfony\Component\HttpKernel\HttpKernel->handle(object(Request), 1, true)
     (vendor/symfony/http-kernel/Kernel.php:198)
  at Symfony\Component\HttpKernel\Kernel->handle(object(Request))
     (public/index.php:43)