Exception detected!

Failed to start the session because headers have already been sent by "/home/transfergd/www/app.php" at line 3.

500 Internal Server Error - RuntimeException

Stack Trace

  1. in kernel.root_dir/cache/prod/classes.php at line 118  -
    1. throw new \RuntimeException('Failed to start the session: already started by PHP ($_SESSION is set).');
    2. }
    3. if (ini_get('session.use_cookies') && headers_sent($file$line)) {
    4. throw new \RuntimeException(sprintf('Failed to start the session because headers have already been sent by "%s" at line %d.'$file$line));
    5. }
    6. if (!session_start()) {
    7. throw new \RuntimeException('Failed to start the session');
  2. at NativeSessionStorage ->start ()
    in kernel.root_dir/cache/prod/classes.php at line 490  +
  3. at Session ->start ()
    in /home/transfergd/vendor/symfony/symfony/src/Symfony/Component/Security/Csrf/TokenStorage/SessionTokenStorage.php at line 89  +
  4. at SessionTokenStorage ->hasToken ('contacto')
    in /home/transfergd/vendor/symfony/symfony/src/Symfony/Component/Security/Csrf/CsrfTokenManager.php at line 55  +
  5. at CsrfTokenManager ->getToken ('contacto')
    in /home/transfergd/vendor/symfony/symfony/src/Symfony/Component/Form/Extension/Csrf/CsrfProvider/CsrfTokenManagerAdapter.php at line 47  +
  6. at CsrfTokenManagerAdapter ->generateCsrfToken ('contacto')
    in /home/transfergd/vendor/symfony/symfony/src/Symfony/Component/Form/Extension/Csrf/CsrfProvider/CsrfProviderAdapter.php at line 49  +
  7. at CsrfProviderAdapter ->getToken ('contacto')
    in /home/transfergd/vendor/symfony/symfony/src/Symfony/Component/Form/Extension/Csrf/Type/FormTypeCsrfExtension.php at line 109  +
  8. at FormTypeCsrfExtension ->finishView (object(FormView), object(Form), array('block_name' => null, 'disabled' => false, 'label' => null, 'attr' => array(), 'translation_domain' => null, 'auto_initialize' => true, 'data_class' => null, 'empty_data' => object(Closure), 'trim' => true, 'required' => true, 'read_only' => false, 'max_length' => null, 'pattern' => null, 'property_path' => null, 'mapped' => true, 'by_reference' => true, 'error_bubbling' => true, 'label_attr' => array(), 'virtual' => null, '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.', 'validation_groups' => null, 'error_mapping' => array(), '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.', 'csrf_protection' => true, 'csrf_field_name' => '_token', 'csrf_message' => 'The CSRF token is invalid. Please try to resubmit the form.', 'csrf_token_manager' => object(CsrfProviderAdapter), 'csrf_token_id' => null, 'csrf_provider' => object(CsrfTokenManagerAdapter), 'intention' => null, 'sonata_admin' => null, 'sonata_field_description' => null, 'label_render' => true, 'sonata_help' => null, 'horizontal_label_class' => '', 'horizontal_label_offset_class' => '', 'horizontal_input_wrapper_class' => ''))
    in /home/transfergd/vendor/symfony/symfony/src/Symfony/Component/Form/ResolvedFormType.php at line 188  +
  9. at ResolvedFormType ->finishView (object(FormView), object(Form), array('block_name' => null, 'disabled' => false, 'label' => null, 'attr' => array(), 'translation_domain' => null, 'auto_initialize' => true, 'data_class' => null, 'empty_data' => object(Closure), 'trim' => true, 'required' => true, 'read_only' => false, 'max_length' => null, 'pattern' => null, 'property_path' => null, 'mapped' => true, 'by_reference' => true, 'error_bubbling' => true, 'label_attr' => array(), 'virtual' => null, '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.', 'validation_groups' => null, 'error_mapping' => array(), '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.', 'csrf_protection' => true, 'csrf_field_name' => '_token', 'csrf_message' => 'The CSRF token is invalid. Please try to resubmit the form.', 'csrf_token_manager' => object(CsrfProviderAdapter), 'csrf_token_id' => null, 'csrf_provider' => object(CsrfTokenManagerAdapter), 'intention' => null, 'sonata_admin' => null, 'sonata_field_description' => null, 'label_render' => true, 'sonata_help' => null, 'horizontal_label_class' => '', 'horizontal_label_offset_class' => '', 'horizontal_input_wrapper_class' => ''))
    in /home/transfergd/vendor/symfony/symfony/src/Symfony/Component/Form/ResolvedFormType.php at line 181  +
  10. at ResolvedFormType ->finishView (object(FormView), object(Form), array('block_name' => null, 'disabled' => false, 'label' => null, 'attr' => array(), 'translation_domain' => null, 'auto_initialize' => true, 'data_class' => null, 'empty_data' => object(Closure), 'trim' => true, 'required' => true, 'read_only' => false, 'max_length' => null, 'pattern' => null, 'property_path' => null, 'mapped' => true, 'by_reference' => true, 'error_bubbling' => true, 'label_attr' => array(), 'virtual' => null, '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.', 'validation_groups' => null, 'error_mapping' => array(), '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.', 'csrf_protection' => true, 'csrf_field_name' => '_token', 'csrf_message' => 'The CSRF token is invalid. Please try to resubmit the form.', 'csrf_token_manager' => object(CsrfProviderAdapter), 'csrf_token_id' => null, 'csrf_provider' => object(CsrfTokenManagerAdapter), 'intention' => null, 'sonata_admin' => null, 'sonata_field_description' => null, 'label_render' => true, 'sonata_help' => null, 'horizontal_label_class' => '', 'horizontal_label_offset_class' => '', 'horizontal_input_wrapper_class' => ''))
    in /home/transfergd/vendor/symfony/symfony/src/Symfony/Component/Form/Form.php at line 1042  +
  11. at Form ->createView ()
    in /home/transfergd/src/Transfermediterraneo/FrontendBundle/Controller/DefaultController.php at line 550  +
  12. at DefaultController ->contactoAction ()
  13. at call_user_func_array (array(object(DefaultController), 'contactoAction'), array())
    in kernel.root_dir/bootstrap.php.cache at line 2976  +
  14. at HttpKernel ->handleRaw (object(Request), '1')
    in kernel.root_dir/bootstrap.php.cache at line 2938  +
  15. at HttpKernel ->handle (object(Request), '1', true)
    in kernel.root_dir/bootstrap.php.cache at line 3087  +
  16. at ContainerAwareHttpKernel ->handle (object(Request), '1', true)
    in kernel.root_dir/bootstrap.php.cache at line 2337  +
  17. at Kernel ->handle (object(Request))
    in /home/transfergd/www/app.php at line 142  +

Logs  -

Stack Trace (Plain Text)  +