Exception detected!

SQLSTATE[HY000] [1040] Too many connections

500 Internal Server Error - PDOException

Stack Trace

  1. in vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOConnection.php at line 40  -
    1.      */
    2.     public function __construct($dsn$user null$password null, array $options null)
    3.     {
    4.         parent::__construct($dsn$user$password$options);
    5.         $this->setAttribute(PDO::ATTR_STATEMENT_CLASS, array('Doctrine\DBAL\Driver\PDOStatement', array()));
    6.         $this->setAttribute(PDO::ATTR_ERRMODEPDO::ERRMODE_EXCEPTION);
    7.     }
  2. at PDO ->__construct ('mysql:host=192.168.50.52;dbname=ibbk;charset=UTF8;', 'ibbk', 'QugYCe3apIFsOwQA', array())
    in vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOConnection.php at line 40  +
  3. at PDOConnection ->__construct ('mysql:host=192.168.50.52;dbname=ibbk;charset=UTF8;', 'ibbk', 'QugYCe3apIFsOwQA', array())
    in vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOMySql/Driver.php at line 41  +
  4. at Driver ->connect (array('driver' => 'pdo_mysql', 'host' => '192.168.50.52', 'port' => null, 'dbname' => 'ibbk', 'user' => 'ibbk', 'password' => 'QugYCe3apIFsOwQA', 'charset' => 'UTF8', 'driverOptions' => array(), 'defaultTableOptions' => array()), 'ibbk', 'QugYCe3apIFsOwQA', array())
    in vendor/doctrine/dbal/lib/Doctrine/DBAL/Connection.php at line 356  +
  5. at Connection ->connect ()
    in vendor/doctrine/dbal/lib/Doctrine/DBAL/Connection.php at line 680  +
  6. at Connection ->executeQuery ('SELECT i0_.id AS id0, i0_.value AS value1, i0_.created_at AS created_at2, i0_.updated_at AS updated_at3, i0_.created_by AS created_by4, i0_.updated_by AS updated_by5 FROM ibbk_therapeutic_area i0_', array(), array(), null)
    in vendor/doctrine/orm/lib/Doctrine/ORM/Query/Exec/SingleSelectExecutor.php at line 50  +
  7. at SingleSelectExecutor ->execute (object(Connection), array(), array())
    in vendor/doctrine/orm/lib/Doctrine/ORM/Query.php at line 286  +
  8. at Query ->_doExecute ()
    in vendor/doctrine/orm/lib/Doctrine/ORM/AbstractQuery.php at line 794  +
  9. at AbstractQuery ->execute ()
    in vendor/symfony/symfony/src/Symfony/Bridge/Doctrine/Form/ChoiceList/ORMQueryBuilderLoader.php at line 71  +
  10. at ORMQueryBuilderLoader ->getEntities ()
    in vendor/symfony/symfony/src/Symfony/Bridge/Doctrine/Form/ChoiceList/EntityChoiceList.php at line 430  +
  11. at EntityChoiceList ->load ()
    in vendor/symfony/symfony/src/Symfony/Bridge/Doctrine/Form/ChoiceList/EntityChoiceList.php at line 174  +
  12. at EntityChoiceList ->getPreferredViews ()
    in vendor/symfony/symfony/src/Symfony/Component/Form/Extension/Core/Type/ChoiceType.php at line 101  +
  13. at ChoiceType ->buildView (object(FormView), object(Form), array('block_name' => null, 'disabled' => false, 'label_format' => null, 'translation_domain' => null, 'auto_initialize' => true, 'trim' => true, 'read_only' => false, 'max_length' => null, 'pattern' => null, 'property_path' => null, 'mapped' => true, 'by_reference' => true, 'virtual' => null, 'method' => 'POST', 'action' => '', 'post_max_size_message' => 'The uploaded file was too large. Please try to upload a smaller file.', 'error_mapping' => array(), 'cascade_validation' => false, '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_provider' => object(CsrfProviderAdapter), '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' => '', 'multiple' => false, 'expanded' => false, 'choices' => null, 'preferred_choices' => array(), 'property' => null, 'query_builder' => null, 'group_by' => null, 'label' => 'Obszar terapeutyczny', 'attr' => array(), 'data_class' => null, 'empty_data' => '', 'required' => false, 'error_bubbling' => false, 'label_attr' => array(), 'inherit_data' => false, 'compound' => false, 'validation_groups' => null, 'constraints' => array(), 'csrf_token_manager' => object(CsrfProviderAdapter), 'csrf_token_id' => null, 'class' => 'AppBundle\Entity\TherapeuticArea', 'em' => object(EntityManager), 'loader' => object(ORMQueryBuilderLoader), 'choice_list' => object(EntityChoiceList), 'empty_value' => '', 'placeholder' => 'Dowolny obszar'))
    in vendor/symfony/symfony/src/Symfony/Component/Form/ResolvedFormType.php at line 157  +
  14. at ResolvedFormType ->buildView (object(FormView), object(Form), array('block_name' => null, 'disabled' => false, 'label_format' => null, 'translation_domain' => null, 'auto_initialize' => true, 'trim' => true, 'read_only' => false, 'max_length' => null, 'pattern' => null, 'property_path' => null, 'mapped' => true, 'by_reference' => true, 'virtual' => null, 'method' => 'POST', 'action' => '', 'post_max_size_message' => 'The uploaded file was too large. Please try to upload a smaller file.', 'error_mapping' => array(), 'cascade_validation' => false, '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_provider' => object(CsrfProviderAdapter), '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' => '', 'multiple' => false, 'expanded' => false, 'choices' => null, 'preferred_choices' => array(), 'property' => null, 'query_builder' => null, 'group_by' => null, 'label' => 'Obszar terapeutyczny', 'attr' => array(), 'data_class' => null, 'empty_data' => '', 'required' => false, 'error_bubbling' => false, 'label_attr' => array(), 'inherit_data' => false, 'compound' => false, 'validation_groups' => null, 'constraints' => array(), 'csrf_token_manager' => object(CsrfProviderAdapter), 'csrf_token_id' => null, 'class' => 'AppBundle\Entity\TherapeuticArea', 'em' => object(EntityManager), 'loader' => object(ORMQueryBuilderLoader), 'choice_list' => object(EntityChoiceList), 'empty_value' => '', 'placeholder' => 'Dowolny obszar'))
    in vendor/symfony/symfony/src/Symfony/Component/Form/ResolvedFormType.php at line 154  +
  15. at ResolvedFormType ->buildView (object(FormView), object(Form), array('block_name' => null, 'disabled' => false, 'label_format' => null, 'translation_domain' => null, 'auto_initialize' => true, 'trim' => true, 'read_only' => false, 'max_length' => null, 'pattern' => null, 'property_path' => null, 'mapped' => true, 'by_reference' => true, 'virtual' => null, 'method' => 'POST', 'action' => '', 'post_max_size_message' => 'The uploaded file was too large. Please try to upload a smaller file.', 'error_mapping' => array(), 'cascade_validation' => false, '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_provider' => object(CsrfProviderAdapter), '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' => '', 'multiple' => false, 'expanded' => false, 'choices' => null, 'preferred_choices' => array(), 'property' => null, 'query_builder' => null, 'group_by' => null, 'label' => 'Obszar terapeutyczny', 'attr' => array(), 'data_class' => null, 'empty_data' => '', 'required' => false, 'error_bubbling' => false, 'label_attr' => array(), 'inherit_data' => false, 'compound' => false, 'validation_groups' => null, 'constraints' => array(), 'csrf_token_manager' => object(CsrfProviderAdapter), 'csrf_token_id' => null, 'class' => 'AppBundle\Entity\TherapeuticArea', 'em' => object(EntityManager), 'loader' => object(ORMQueryBuilderLoader), 'choice_list' => object(EntityChoiceList), 'empty_value' => '', 'placeholder' => 'Dowolny obszar'))
    in vendor/symfony/symfony/src/Symfony/Component/Form/Form.php at line 1058  +
  16. at Form ->createView (object(FormView))
    in vendor/symfony/symfony/src/Symfony/Component/Form/Form.php at line 1061  +
  17. at Form ->createView ()
    in src/AppBundle/Controller/SearchController.php at line 123  +
  18. at SearchController ->advancedSearchAction (object(Request))
  19. at call_user_func_array (array(object(SearchController), 'advancedSearchAction'), array(object(Request)))
    in app/bootstrap.php.cache at line 3054  +
  20. at HttpKernel ->handleRaw (object(Request), '1')
    in app/bootstrap.php.cache at line 3016  +
  21. at HttpKernel ->handle (object(Request), '1', true)
    in app/bootstrap.php.cache at line 3165  +
  22. at ContainerAwareHttpKernel ->handle (object(Request), '1', true)
    in app/bootstrap.php.cache at line 2406  +
  23. at Kernel ->handle (object(Request))
    in web/app.php at line 28  +

Logs  -

Stack Trace (Plain Text)  +