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 /home/usr10524/bookaband.com/bookaband/vendor/symfony/symfony/src/Symfony/Component/HttpFoundation/Session/Storage/NativeSessionStorage.php at line 142  -
    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.         // start the session
  2. at NativeSessionStorage ->start ()
    in /home/usr10524/bookaband.com/bookaband/vendor/symfony/symfony/src/Symfony/Component/HttpFoundation/Session/Session.php at line 74  +
  3. at Session ->start ()
    in /home/usr10524/bookaband.com/bookaband/vendor/symfony/symfony/src/Symfony/Component/Form/Extension/Csrf/CsrfProvider/SessionCsrfProvider.php at line 53  +
  4. at SessionCsrfProvider ->getSessionId ()
    in /home/usr10524/bookaband.com/bookaband/vendor/symfony/symfony/src/Symfony/Component/Form/Extension/Csrf/CsrfProvider/DefaultCsrfProvider.php at line 48  +
  5. at DefaultCsrfProvider ->generateCsrfToken ('unknown')
    in /home/usr10524/bookaband.com/bookaband/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' => 'Bookaband\AppBundle\Entity\ContactForm', '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(ContactForm)))
    in /home/usr10524/bookaband.com/bookaband/vendor/symfony/symfony/src/Symfony/Component/Form/ResolvedFormType.php at line 222  +
  7. at ResolvedFormType ->finishView (object(FormView), object(Form), array('block_name' => null, 'data_class' => 'Bookaband\AppBundle\Entity\ContactForm', '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(ContactForm)))
    in /home/usr10524/bookaband.com/bookaband/vendor/symfony/symfony/src/Symfony/Component/Form/ResolvedFormType.php at line 215  +
  8. at ResolvedFormType ->finishView (object(FormView), object(Form), array('block_name' => null, 'data_class' => 'Bookaband\AppBundle\Entity\ContactForm', '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(ContactForm)))
    in /home/usr10524/bookaband.com/bookaband/vendor/symfony/symfony/src/Symfony/Component/Form/ResolvedFormType.php at line 146  +
  9. at ResolvedFormType ->createView (object(Form), null)
    in /home/usr10524/bookaband.com/bookaband/vendor/symfony/symfony/src/Symfony/Component/Form/Form.php at line 987  +
  10. at Form ->createView ()
    in /home/usr10524/bookaband.com/bookaband/src/Bookaband/AppBundle/Controller/DefaultController.php at line 1125  +
  11. at DefaultController ->searchAction ()
  12. at call_user_func_array (array(object(DefaultController), 'searchAction'), array())
    in kernel.root_dir/bootstrap.php.cache at line 1421  +
  13. at HttpKernel ->handleRaw (object(Request), '1')
    in kernel.root_dir/bootstrap.php.cache at line 1385  +
  14. at HttpKernel ->handle (object(Request), '1', true)
    in kernel.root_dir/bootstrap.php.cache at line 1561  +
  15. at HttpKernel ->handle (object(Request), '1', true)
    in kernel.root_dir/bootstrap.php.cache at line 612  +
  16. at Kernel ->handle (object(Request))
    in /home/usr10524/bookaband.com/bookaband/web/app.php at line 26  +

Logs  -