SQLSTATE[HY000] [1040] Too many connections
500 Internal Server Error - PDOException
Stack Trace
-
in vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOConnection.php at line 40
*/
public function __construct($dsn, $user = null, $password = null, array $options = null)
{
parent::__construct($dsn, $user, $password, $options);
$this->setAttribute(PDO::ATTR_STATEMENT_CLASS, array('Doctrine\DBAL\Driver\PDOStatement', array()));
$this->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
}
-
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 -
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 -
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 -
at
Connection
->connect
()
in vendor/doctrine/dbal/lib/Doctrine/DBAL/Connection.php at line 680 -
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 -
at
SingleSelectExecutor
->execute
(object(Connection), array(), array())
in vendor/doctrine/orm/lib/Doctrine/ORM/Query.php at line 286 -
at
Query
->_doExecute
()
in vendor/doctrine/orm/lib/Doctrine/ORM/AbstractQuery.php at line 794 -
at
AbstractQuery
->execute
()
in vendor/symfony/symfony/src/Symfony/Bridge/Doctrine/Form/ChoiceList/ORMQueryBuilderLoader.php at line 71 -
at
ORMQueryBuilderLoader
->getEntities
()
in vendor/symfony/symfony/src/Symfony/Bridge/Doctrine/Form/ChoiceList/EntityChoiceList.php at line 430 -
at
EntityChoiceList
->load
()
in vendor/symfony/symfony/src/Symfony/Bridge/Doctrine/Form/ChoiceList/EntityChoiceList.php at line 174 -
at
EntityChoiceList
->getPreferredViews
()
in vendor/symfony/symfony/src/Symfony/Component/Form/Extension/Core/Type/ChoiceType.php at line 101 -
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 -
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 -
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 -
at
Form
->createView
(object(FormView))
in vendor/symfony/symfony/src/Symfony/Component/Form/Form.php at line 1061 -
at
Form
->createView
()
in src/AppBundle/Controller/SearchController.php at line 123 - at SearchController ->advancedSearchAction (object(Request))
-
at
call_user_func_array
(array(object(SearchController), 'advancedSearchAction'), array(object(Request)))
in app/bootstrap.php.cache at line 3054 -
at
HttpKernel
->handleRaw
(object(Request), '1')
in app/bootstrap.php.cache at line 3016 -
at
HttpKernel
->handle
(object(Request), '1', true)
in app/bootstrap.php.cache at line 3165 -
at
ContainerAwareHttpKernel
->handle
(object(Request), '1', true)
in app/bootstrap.php.cache at line 2406 -
at
Kernel
->handle
(object(Request))
in web/app.php at line 28