DateTime Object ( [date] => 2018-02-21 21:17:00.000000 [timezone_type] => 3 [timezone] => Europe/London ) Failed to start the session because headers have already been sent by "/www/htdocs/w015a223/bowling-pub.de/src/AppBundle/Controller/TischreservierungController.php" at line 25. (500 Internal Server Error)

Failed to start the session because headers have already been sent by "/www/htdocs/w015a223/bowling-pub.de/src/AppBundle/Controller/TischreservierungController.php" at line 25.

500 Internal Server Error - RuntimeException

Stack Trace

  1. in var/cache/prod/classes.php at line 110  -
    1. throw new \RuntimeException('Failed to start the session: already started by PHP.');
    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 var/cache/prod/classes.php at line 433  +
  3. at Session ->start ()
    in vendor/symfony/symfony/src/Symfony/Component/Security/Csrf/TokenStorage/SessionTokenStorage.php at line 90  +
  4. at SessionTokenStorage ->hasToken ('tischreservierung_form')
    in vendor/symfony/symfony/src/Symfony/Component/Security/Csrf/CsrfTokenManager.php at line 54  +
  5. at CsrfTokenManager ->getToken ('tischreservierung_form')
    in vendor/symfony/symfony/src/Symfony/Component/Form/Extension/Csrf/Type/FormTypeCsrfExtension.php at line 106  +
  6. at 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.', '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' => object(Tischreservierung), 'data_class' => 'AppBundle\\Entity\\Tischreservierung', 'empty_data' => object(Closure), 'error_bubbling' => true, 'label_attr' => array(), 'upload_max_size_message' => object(Closure), 'validation_groups' => null, 'constraints' => array()))
    in vendor/symfony/symfony/src/Symfony/Component/Form/ResolvedFormType.php at line 174  +
  7. at 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.', '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' => object(Tischreservierung), 'data_class' => 'AppBundle\\Entity\\Tischreservierung', 'empty_data' => object(Closure), 'error_bubbling' => true, 'label_attr' => array(), 'upload_max_size_message' => object(Closure), 'validation_groups' => null, 'constraints' => array()))
    in vendor/symfony/symfony/src/Symfony/Component/Form/ResolvedFormType.php at line 167  +
  8. at 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.', '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' => object(Tischreservierung), 'data_class' => 'AppBundle\\Entity\\Tischreservierung', 'empty_data' => object(Closure), 'error_bubbling' => true, 'label_attr' => array(), 'upload_max_size_message' => object(Closure), 'validation_groups' => null, 'constraints' => array()))
    in vendor/symfony/symfony/src/Symfony/Component/Form/Form.php at line 1013  +
  9. at Form ->createView ()
    in src/AppBundle/Controller/TischreservierungController.php at line 52  +
  10. at TischreservierungController ->TischreservierungAction (object(Request))
  11. at call_user_func_array (array(object(TischreservierungController), 'TischreservierungAction'), array(object(Request)))
    in var/cache/prod/classes.php at line 4651  +
  12. at HttpKernel ->handleRaw (object(Request), 1)
    in var/cache/prod/classes.php at line 4606  +
  13. at HttpKernel ->handle (object(Request), 1, true)
    in vendor/symfony/symfony/src/Symfony/Component/HttpKernel/Kernel.php at line 168  +
  14. at Kernel ->handle (object(Request))
    in web/app.php at line 16  +

Logs  -

Stack Trace (Plain Text)  +