Failed to start the session because headers have already been sent.
500 Internal Server Error - RuntimeException
Stack Trace
-
in kernel.root_dir/cache/prod/classes.php at line 180
}
if (ini_get('session.use_cookies') && headers_sent()) {
throw new \RuntimeException('Failed to start the session because headers have already been sent.');
}
if (!session_start()) {
-
at
NativeSessionStorage
->start
()
in kernel.root_dir/cache/prod/classes.php at line 688 -
at
Session
->start
()
in /home/eliteins/elite/vendor/symfony/symfony/src/Symfony/Component/Form/Extension/Csrf/CsrfProvider/SessionCsrfProvider.php at line 53 -
at
SessionCsrfProvider
->getSessionId
()
in /home/eliteins/elite/vendor/symfony/symfony/src/Symfony/Component/Form/Extension/Csrf/CsrfProvider/DefaultCsrfProvider.php at line 48 -
at
DefaultCsrfProvider
->generateCsrfToken
('unknown')
in /home/eliteins/elite/vendor/symfony/symfony/src/Symfony/Component/Form/Extension/Csrf/Type/FormTypeCsrfExtension.php at line 67 -
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 -
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 -
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 -
at
ResolvedFormType
->createView
(object(Form), null)
in /home/eliteins/elite/vendor/symfony/symfony/src/Symfony/Component/Form/Form.php at line 991 -
at
Form
->createView
()
in /home/eliteins/elite/src/Elite/SitewebBundle/Controller/NewController.php at line 2781 - at NewController ->inscsdipAction ('langues-vivantes')
-
at
call_user_func_array
(array(object(NewController), 'inscsdipAction'), array('langues-vivantes'))
in kernel.root_dir/bootstrap.php.cache at line 1426 -
at
HttpKernel
->handleRaw
(object(Request), '1')
in kernel.root_dir/bootstrap.php.cache at line 1390 -
at
HttpKernel
->handle
(object(Request), '1', true)
in kernel.root_dir/bootstrap.php.cache at line 1566 -
at
HttpKernel
->handle
(object(Request), '1', true)
in kernel.root_dir/bootstrap.php.cache at line 617 -
at
Kernel
->handle
(object(Request))
in /home/eliteins/elite/web/app.php at line 26