1 Failed to start the session because headers have already been sent. (500 Internal Server Error)
Exception detected!

Failed to start the session because headers have already been sent.

500 Internal Server Error - RuntimeException

Stack Trace

  1. in kernel.root_dir/cache/prod/classes.php at line 180  -
    1.         }
    2.         if (ini_get('session.use_cookies') && headers_sent()) {
    3.             throw new \RuntimeException('Failed to start the session because headers have already been sent.');
    4.         }
    5.                 if (!session_start()) {
  2. at NativeSessionStorage ->start ()
    in kernel.root_dir/cache/prod/classes.php at line 688  +
  3. at Session ->start ()
    in /home/eliteins/elite/vendor/symfony/symfony/src/Symfony/Component/Form/Extension/Csrf/CsrfProvider/SessionCsrfProvider.php at line 53  +
  4. at SessionCsrfProvider ->getSessionId ()
    in /home/eliteins/elite/vendor/symfony/symfony/src/Symfony/Component/Form/Extension/Csrf/CsrfProvider/DefaultCsrfProvider.php at line 48  +
  5. at DefaultCsrfProvider ->generateCsrfToken ('unknown')
    in /home/eliteins/elite/vendor/symfony/symfony/src/Symfony/Component/Form/Extension/Csrf/Type/FormTypeCsrfExtension.php at line 67  +
  6. at FormTypeCsrfExtension ->finishView (object(FormView), object(Form), array('block_name' => null, 'data_class' => 'Elite\AdminBundle\Entity\Preinscription', 'empty_data' => object(Closure), 'trim' => true, 'required' => true, 'read_only' => false, 'disabled' => false, 'max_length' => null, 'pattern' => null, 'property_path' => null, 'mapped' => true, 'by_reference' => true, 'error_bubbling' => true, 'label' => null, 'attr' => array(), 'label_attr' => array(), 'virtual' => false, 'compound' => true, 'translation_domain' => null, 'error_mapping' => array(), 'validation_groups' => null, 'validation_constraint' => null, 'constraints' => array(), 'cascade_validation' => false, 'invalid_message' => 'This value is not valid.', 'invalid_message_parameters' => array(), 'extra_fields_message' => 'This form should not contain extra fields.', 'post_max_size_message' => 'The uploaded file was too large. Please try to upload a smaller file.', 'csrf_protection' => true, 'csrf_field_name' => '_token', 'csrf_provider' => object(SessionCsrfProvider), 'intention' => 'unknown', 'data' => object(Preinscription)))
    in /home/eliteins/elite/vendor/symfony/symfony/src/Symfony/Component/Form/ResolvedFormType.php at line 221  +
  7. at ResolvedFormType ->finishView (object(FormView), object(Form), array('block_name' => null, 'data_class' => 'Elite\AdminBundle\Entity\Preinscription', 'empty_data' => object(Closure), 'trim' => true, 'required' => true, 'read_only' => false, 'disabled' => false, 'max_length' => null, 'pattern' => null, 'property_path' => null, 'mapped' => true, 'by_reference' => true, 'error_bubbling' => true, 'label' => null, 'attr' => array(), 'label_attr' => array(), 'virtual' => false, 'compound' => true, 'translation_domain' => null, 'error_mapping' => array(), 'validation_groups' => null, 'validation_constraint' => null, 'constraints' => array(), 'cascade_validation' => false, 'invalid_message' => 'This value is not valid.', 'invalid_message_parameters' => array(), 'extra_fields_message' => 'This form should not contain extra fields.', 'post_max_size_message' => 'The uploaded file was too large. Please try to upload a smaller file.', 'csrf_protection' => true, 'csrf_field_name' => '_token', 'csrf_provider' => object(SessionCsrfProvider), 'intention' => 'unknown', 'data' => object(Preinscription)))
    in /home/eliteins/elite/vendor/symfony/symfony/src/Symfony/Component/Form/ResolvedFormType.php at line 214  +
  8. at ResolvedFormType ->finishView (object(FormView), object(Form), array('block_name' => null, 'data_class' => 'Elite\AdminBundle\Entity\Preinscription', 'empty_data' => object(Closure), 'trim' => true, 'required' => true, 'read_only' => false, 'disabled' => false, 'max_length' => null, 'pattern' => null, 'property_path' => null, 'mapped' => true, 'by_reference' => true, 'error_bubbling' => true, 'label' => null, 'attr' => array(), 'label_attr' => array(), 'virtual' => false, 'compound' => true, 'translation_domain' => null, 'error_mapping' => array(), 'validation_groups' => null, 'validation_constraint' => null, 'constraints' => array(), 'cascade_validation' => false, 'invalid_message' => 'This value is not valid.', 'invalid_message_parameters' => array(), 'extra_fields_message' => 'This form should not contain extra fields.', 'post_max_size_message' => 'The uploaded file was too large. Please try to upload a smaller file.', 'csrf_protection' => true, 'csrf_field_name' => '_token', 'csrf_provider' => object(SessionCsrfProvider), 'intention' => 'unknown', 'data' => object(Preinscription)))
    in /home/eliteins/elite/vendor/symfony/symfony/src/Symfony/Component/Form/ResolvedFormType.php at line 145  +
  9. at ResolvedFormType ->createView (object(Form), null)
    in /home/eliteins/elite/vendor/symfony/symfony/src/Symfony/Component/Form/Form.php at line 991  +
  10. at Form ->createView ()
    in /home/eliteins/elite/src/Elite/SitewebBundle/Controller/NewController.php at line 2436  +
  11. at NewController ->inscsdipAction ('certifications')
  12. at call_user_func_array (array(object(NewController), 'inscsdipAction'), array('certifications'))
    in kernel.root_dir/bootstrap.php.cache at line 1426  +
  13. at HttpKernel ->handleRaw (object(Request), '1')
    in kernel.root_dir/bootstrap.php.cache at line 1390  +
  14. at HttpKernel ->handle (object(Request), '1', true)
    in kernel.root_dir/bootstrap.php.cache at line 1566  +
  15. at HttpKernel ->handle (object(Request), '1', true)
    in kernel.root_dir/bootstrap.php.cache at line 617  +
  16. at Kernel ->handle (object(Request))
    in /home/eliteins/elite/web/app.php at line 26  +

Logs  -