case 1364:
case 1566:
return new NotNullConstraintViolationException($exception, $query);
}
return new DriverException($exception, $query);
}
}
): DriverException {
if ($this->exceptionConverter === null) {
$this->exceptionConverter = $this->_driver->getExceptionConverter();
}
$exception = $this->exceptionConverter->convert($driverException, $query);
if ($exception instanceof ConnectionLost) {
$this->close();
}
/**
* @internal
*/
final public function convertException(Driver\Exception $e): DriverException
{
return $this->handleDriverException($e, null);
}
/**
* @param array<int, mixed>|array<string, mixed> $params
* @param array<int, int|string|Type|null>|array<string, int|string|Type|null> $types
}
try {
$this->_conn = $this->_driver->connect($this->params);
} catch (Driver\Exception $e) {
throw $this->convertException($e);
}
if ($this->autoCommit === false) {
$this->beginTransaction();
}
'https://github.com/doctrine/dbal/issues/4966',
'Connection::getWrappedConnection() is deprecated.'
. ' Use Connection::getNativeConnection() to access the native connection.'
);
$this->connect();
assert($this->_conn !== null);
return $this->_conn;
}
): Result {
if ($qcp !== null) {
return $this->executeCacheQuery($sql, $params, $types, $qcp);
}
$connection = $this->getWrappedConnection();
$logger = $this->_config->getSQLLogger();
if ($logger !== null) {
$logger->startQuery($sql, $params, $types);
}
{
$this->switchPersisterContext(null, $limit);
$sql = $this->getSelectSQL($criteria, $assoc, $lockMode, $limit, null, $orderBy);
[$params, $types] = $this->expandParameters($criteria);
$stmt = $this->conn->executeQuery($sql, $params, $types);
if ($entity !== null) {
$hints[Query::HINT_REFRESH] = true;
$hints[Query::HINT_REFRESH_ENTITY] = $entity;
}
/**
* {@inheritdoc}
*/
public function loadById(array $identifier, $entity = null)
{
return $this->load($identifier, $entity);
}
/**
* {@inheritdoc}
*/
case $lockMode === LockMode::PESSIMISTIC_READ:
case $lockMode === LockMode::PESSIMISTIC_WRITE:
return $persister->load($sortedId, null, null, [], $lockMode);
default:
return $persister->loadById($sortedId);
}
}
/**
* {@inheritDoc}
public function find($className, $id, $lockMode = null, $lockVersion = null)
{
$this->initializerb2430 && ($this->initializerb2430->__invoke($valueHolder0b13f, $this, 'find', array('className' => $className, 'id' => $id, 'lockMode' => $lockMode, 'lockVersion' => $lockVersion), $this->initializerb2430) || 1) && $this->valueHolder0b13f = $valueHolder0b13f;
return $this->valueHolder0b13f->find($className, $id, $lockMode, $lockVersion);
}
public function getReference($entityName, $id)
{
$this->initializerb2430 && ($this->initializerb2430->__invoke($valueHolder0b13f, $this, 'getReference', array('entityName' => $entityName, 'id' => $id), $this->initializerb2430) || 1) && $this->valueHolder0b13f = $valueHolder0b13f;
* @return object|null The entity instance or NULL if the entity can not be found.
* @psalm-return ?T
*/
public function find($id, $lockMode = null, $lockVersion = null)
{
return $this->_em->find($this->_entityName, $id, $lockMode, $lockVersion);
}
/**
* Finds all entities in the repository.
*
$cacheProvider->evictEntity($class, $id);
}
}
try {
return $om->getRepository($class)->$method($id);
} catch (NoResultException $e) {
return;
} catch (ConversionException $e) {
return;
}
if (null === $object) {
$errorMessage = sprintf('The expression "%s" returned null', $expr);
}
// find by identifier?
} elseif (false === $object = $this->find($class, $request, $options, $name)) {
// find by criteria
if (false === $object = $this->findOneBy($class, $request, $options)) {
if ($configuration->isOptional()) {
$object = null;
} else {
return;
}
foreach ($this->all() as $converter) {
if ($converter->supports($configuration)) {
if ($converter->apply($request, $configuration)) {
return;
}
}
}
}
if (\is_object($configurations)) {
$configurations = [$configurations];
}
foreach ($configurations as $configuration) {
$this->applyConverter($request, $configuration);
}
}
/**
* Applies converter on request based on the given configuration.
}
$configurations = $this->autoConfigure($r, $request, $configurations);
}
$this->manager->apply($request, $configurations);
}
private function autoConfigure(\ReflectionFunctionAbstract $r, Request $request, $configurations)
{
foreach ($r->getParameters() as $param) {
$this->priority = $dispatcher->getListenerPriority($eventName, $this->listener);
$e = $this->stopwatch->start($this->name, 'event_listener');
try {
($this->optimizedListener ?? $this->listener)($event, $eventName, $dispatcher);
} finally {
if ($e->isStarted()) {
$e->stop();
}
}
foreach ($listeners as $listener) {
if ($stoppable && $event->isPropagationStopped()) {
break;
}
$listener($event, $eventName, $this);
}
}
/**
* Sorts the internal list of listeners for the given event by priority.
} else {
$listeners = $this->getListeners($eventName);
}
if ($listeners) {
$this->callListeners($listeners, $eventName, $event);
}
return $event;
}
try {
$this->beforeDispatch($eventName, $event);
try {
$e = $this->stopwatch->start($eventName, 'section');
try {
$this->dispatcher->dispatch($event, $eventName);
} finally {
if ($e->isStarted()) {
$e->stop();
}
}
if (false === $controller = $this->resolver->getController($request)) {
throw new NotFoundHttpException(sprintf('Unable to find the controller for path "%s". The route is wrongly configured.', $request->getPathInfo()));
}
$event = new ControllerEvent($this, $controller, $request, $type);
$this->dispatcher->dispatch($event, KernelEvents::CONTROLLER);
$controller = $event->getController();
// controller arguments
$arguments = $this->argumentResolver->getArguments($request, $controller);
{
$request->headers->set('X-Php-Ob-Level', (string) ob_get_level());
$this->requestStack->push($request);
try {
return $this->handleRaw($request, $type);
} catch (\Exception $e) {
if ($e instanceof RequestExceptionInterface) {
$e = new BadRequestHttpException($e->getMessage(), $e);
}
if (false === $catch) {
$this->boot();
++$this->requestStackSize;
$this->resetServices = true;
try {
return $this->getHttpKernel()->handle($request, $type, $catch);
} finally {
--$this->requestStackSize;
}
}
$this->request = $request;
}
public function run(): int
{
$response = $this->kernel->handle($this->request);
$response->send();
if ($this->kernel instanceof TerminableInterface) {
$this->kernel->terminate($this->request, $response);
}
$app = $app(...$args);
exit(
$runtime
->getRunner($app)
->run()
);
<?php
use App\Kernel;
require_once dirname(__DIR__).'/vendor/autoload_runtime.php';
return function (array $context) {
return new Kernel($context['APP_ENV'], (bool) $context['APP_DEBUG']);
};
} else {
$code = $exception->getCode();
$sqlState = null;
}
return new self($exception->getMessage(), $sqlState, $code, $exception);
}
}
$params['user'] ?? '',
$params['password'] ?? '',
$driverOptions
);
} catch (PDOException $exception) {
throw Exception::new($exception);
}
return new Connection($pdo);
}
/**
* {@inheritdoc}
*/
public function connect(array $params)
{
return $this->wrappedDriver->connect($params);
}
/**
* {@inheritdoc}
*/
public function connect(array $params)
{
$this->logger->info('Connecting with parameters {params}', ['params' => $this->maskPassword($params)]);
return new Connection(
parent::connect($params),
$this->logger
);
}
/**
/**
* {@inheritdoc}
*/
public function connect(array $params)
{
return $this->wrappedDriver->connect($params);
}
/**
* {@inheritdoc}
*/
}
public function connect(array $params): Connection
{
return new Connection(
parent::connect($params),
$this->debugDataHolder,
$this->stopwatch,
$this->connectionName
);
}
if ($this->_conn !== null) {
return false;
}
try {
$this->_conn = $this->_driver->connect($this->params);
} catch (Driver\Exception $e) {
throw $this->convertException($e);
}
if ($this->autoCommit === false) {
'https://github.com/doctrine/dbal/issues/4966',
'Connection::getWrappedConnection() is deprecated.'
. ' Use Connection::getNativeConnection() to access the native connection.'
);
$this->connect();
assert($this->_conn !== null);
return $this->_conn;
}
): Result {
if ($qcp !== null) {
return $this->executeCacheQuery($sql, $params, $types, $qcp);
}
$connection = $this->getWrappedConnection();
$logger = $this->_config->getSQLLogger();
if ($logger !== null) {
$logger->startQuery($sql, $params, $types);
}
{
$this->switchPersisterContext(null, $limit);
$sql = $this->getSelectSQL($criteria, $assoc, $lockMode, $limit, null, $orderBy);
[$params, $types] = $this->expandParameters($criteria);
$stmt = $this->conn->executeQuery($sql, $params, $types);
if ($entity !== null) {
$hints[Query::HINT_REFRESH] = true;
$hints[Query::HINT_REFRESH_ENTITY] = $entity;
}
/**
* {@inheritdoc}
*/
public function loadById(array $identifier, $entity = null)
{
return $this->load($identifier, $entity);
}
/**
* {@inheritdoc}
*/
case $lockMode === LockMode::PESSIMISTIC_READ:
case $lockMode === LockMode::PESSIMISTIC_WRITE:
return $persister->load($sortedId, null, null, [], $lockMode);
default:
return $persister->loadById($sortedId);
}
}
/**
* {@inheritDoc}
public function find($className, $id, $lockMode = null, $lockVersion = null)
{
$this->initializerb2430 && ($this->initializerb2430->__invoke($valueHolder0b13f, $this, 'find', array('className' => $className, 'id' => $id, 'lockMode' => $lockMode, 'lockVersion' => $lockVersion), $this->initializerb2430) || 1) && $this->valueHolder0b13f = $valueHolder0b13f;
return $this->valueHolder0b13f->find($className, $id, $lockMode, $lockVersion);
}
public function getReference($entityName, $id)
{
$this->initializerb2430 && ($this->initializerb2430->__invoke($valueHolder0b13f, $this, 'getReference', array('entityName' => $entityName, 'id' => $id), $this->initializerb2430) || 1) && $this->valueHolder0b13f = $valueHolder0b13f;
* @return object|null The entity instance or NULL if the entity can not be found.
* @psalm-return ?T
*/
public function find($id, $lockMode = null, $lockVersion = null)
{
return $this->_em->find($this->_entityName, $id, $lockMode, $lockVersion);
}
/**
* Finds all entities in the repository.
*
$cacheProvider->evictEntity($class, $id);
}
}
try {
return $om->getRepository($class)->$method($id);
} catch (NoResultException $e) {
return;
} catch (ConversionException $e) {
return;
}
if (null === $object) {
$errorMessage = sprintf('The expression "%s" returned null', $expr);
}
// find by identifier?
} elseif (false === $object = $this->find($class, $request, $options, $name)) {
// find by criteria
if (false === $object = $this->findOneBy($class, $request, $options)) {
if ($configuration->isOptional()) {
$object = null;
} else {
return;
}
foreach ($this->all() as $converter) {
if ($converter->supports($configuration)) {
if ($converter->apply($request, $configuration)) {
return;
}
}
}
}
if (\is_object($configurations)) {
$configurations = [$configurations];
}
foreach ($configurations as $configuration) {
$this->applyConverter($request, $configuration);
}
}
/**
* Applies converter on request based on the given configuration.
}
$configurations = $this->autoConfigure($r, $request, $configurations);
}
$this->manager->apply($request, $configurations);
}
private function autoConfigure(\ReflectionFunctionAbstract $r, Request $request, $configurations)
{
foreach ($r->getParameters() as $param) {
$this->priority = $dispatcher->getListenerPriority($eventName, $this->listener);
$e = $this->stopwatch->start($this->name, 'event_listener');
try {
($this->optimizedListener ?? $this->listener)($event, $eventName, $dispatcher);
} finally {
if ($e->isStarted()) {
$e->stop();
}
}
foreach ($listeners as $listener) {
if ($stoppable && $event->isPropagationStopped()) {
break;
}
$listener($event, $eventName, $this);
}
}
/**
* Sorts the internal list of listeners for the given event by priority.
} else {
$listeners = $this->getListeners($eventName);
}
if ($listeners) {
$this->callListeners($listeners, $eventName, $event);
}
return $event;
}
try {
$this->beforeDispatch($eventName, $event);
try {
$e = $this->stopwatch->start($eventName, 'section');
try {
$this->dispatcher->dispatch($event, $eventName);
} finally {
if ($e->isStarted()) {
$e->stop();
}
}
if (false === $controller = $this->resolver->getController($request)) {
throw new NotFoundHttpException(sprintf('Unable to find the controller for path "%s". The route is wrongly configured.', $request->getPathInfo()));
}
$event = new ControllerEvent($this, $controller, $request, $type);
$this->dispatcher->dispatch($event, KernelEvents::CONTROLLER);
$controller = $event->getController();
// controller arguments
$arguments = $this->argumentResolver->getArguments($request, $controller);
{
$request->headers->set('X-Php-Ob-Level', (string) ob_get_level());
$this->requestStack->push($request);
try {
return $this->handleRaw($request, $type);
} catch (\Exception $e) {
if ($e instanceof RequestExceptionInterface) {
$e = new BadRequestHttpException($e->getMessage(), $e);
}
if (false === $catch) {
$this->boot();
++$this->requestStackSize;
$this->resetServices = true;
try {
return $this->getHttpKernel()->handle($request, $type, $catch);
} finally {
--$this->requestStackSize;
}
}
$this->request = $request;
}
public function run(): int
{
$response = $this->kernel->handle($this->request);
$response->send();
if ($this->kernel instanceof TerminableInterface) {
$this->kernel->terminate($this->request, $response);
}
$app = $app(...$args);
exit(
$runtime
->getRunner($app)
->run()
);
<?php
use App\Kernel;
require_once dirname(__DIR__).'/vendor/autoload_runtime.php';
return function (array $context) {
return new Kernel($context['APP_ENV'], (bool) $context['APP_DEBUG']);
};
$driverOptions[PDO::ATTR_PERSISTENT] = true;
}
try {
$pdo = new PDO(
$this->constructPdoDsn($params),
$params['user'] ?? '',
$params['password'] ?? '',
$driverOptions
);
} catch (PDOException $exception) {
$driverOptions[PDO::ATTR_PERSISTENT] = true;
}
try {
$pdo = new PDO(
$this->constructPdoDsn($params),
$params['user'] ?? '',
$params['password'] ?? '',
$driverOptions
);
} catch (PDOException $exception) {
/**
* {@inheritdoc}
*/
public function connect(array $params)
{
return $this->wrappedDriver->connect($params);
}
/**
* {@inheritdoc}
*/
public function connect(array $params)
{
$this->logger->info('Connecting with parameters {params}', ['params' => $this->maskPassword($params)]);
return new Connection(
parent::connect($params),
$this->logger
);
}
/**
/**
* {@inheritdoc}
*/
public function connect(array $params)
{
return $this->wrappedDriver->connect($params);
}
/**
* {@inheritdoc}
*/
}
public function connect(array $params): Connection
{
return new Connection(
parent::connect($params),
$this->debugDataHolder,
$this->stopwatch,
$this->connectionName
);
}
if ($this->_conn !== null) {
return false;
}
try {
$this->_conn = $this->_driver->connect($this->params);
} catch (Driver\Exception $e) {
throw $this->convertException($e);
}
if ($this->autoCommit === false) {
'https://github.com/doctrine/dbal/issues/4966',
'Connection::getWrappedConnection() is deprecated.'
. ' Use Connection::getNativeConnection() to access the native connection.'
);
$this->connect();
assert($this->_conn !== null);
return $this->_conn;
}
): Result {
if ($qcp !== null) {
return $this->executeCacheQuery($sql, $params, $types, $qcp);
}
$connection = $this->getWrappedConnection();
$logger = $this->_config->getSQLLogger();
if ($logger !== null) {
$logger->startQuery($sql, $params, $types);
}
{
$this->switchPersisterContext(null, $limit);
$sql = $this->getSelectSQL($criteria, $assoc, $lockMode, $limit, null, $orderBy);
[$params, $types] = $this->expandParameters($criteria);
$stmt = $this->conn->executeQuery($sql, $params, $types);
if ($entity !== null) {
$hints[Query::HINT_REFRESH] = true;
$hints[Query::HINT_REFRESH_ENTITY] = $entity;
}
/**
* {@inheritdoc}
*/
public function loadById(array $identifier, $entity = null)
{
return $this->load($identifier, $entity);
}
/**
* {@inheritdoc}
*/
case $lockMode === LockMode::PESSIMISTIC_READ:
case $lockMode === LockMode::PESSIMISTIC_WRITE:
return $persister->load($sortedId, null, null, [], $lockMode);
default:
return $persister->loadById($sortedId);
}
}
/**
* {@inheritDoc}
public function find($className, $id, $lockMode = null, $lockVersion = null)
{
$this->initializerb2430 && ($this->initializerb2430->__invoke($valueHolder0b13f, $this, 'find', array('className' => $className, 'id' => $id, 'lockMode' => $lockMode, 'lockVersion' => $lockVersion), $this->initializerb2430) || 1) && $this->valueHolder0b13f = $valueHolder0b13f;
return $this->valueHolder0b13f->find($className, $id, $lockMode, $lockVersion);
}
public function getReference($entityName, $id)
{
$this->initializerb2430 && ($this->initializerb2430->__invoke($valueHolder0b13f, $this, 'getReference', array('entityName' => $entityName, 'id' => $id), $this->initializerb2430) || 1) && $this->valueHolder0b13f = $valueHolder0b13f;
* @return object|null The entity instance or NULL if the entity can not be found.
* @psalm-return ?T
*/
public function find($id, $lockMode = null, $lockVersion = null)
{
return $this->_em->find($this->_entityName, $id, $lockMode, $lockVersion);
}
/**
* Finds all entities in the repository.
*
$cacheProvider->evictEntity($class, $id);
}
}
try {
return $om->getRepository($class)->$method($id);
} catch (NoResultException $e) {
return;
} catch (ConversionException $e) {
return;
}
if (null === $object) {
$errorMessage = sprintf('The expression "%s" returned null', $expr);
}
// find by identifier?
} elseif (false === $object = $this->find($class, $request, $options, $name)) {
// find by criteria
if (false === $object = $this->findOneBy($class, $request, $options)) {
if ($configuration->isOptional()) {
$object = null;
} else {
return;
}
foreach ($this->all() as $converter) {
if ($converter->supports($configuration)) {
if ($converter->apply($request, $configuration)) {
return;
}
}
}
}
if (\is_object($configurations)) {
$configurations = [$configurations];
}
foreach ($configurations as $configuration) {
$this->applyConverter($request, $configuration);
}
}
/**
* Applies converter on request based on the given configuration.
}
$configurations = $this->autoConfigure($r, $request, $configurations);
}
$this->manager->apply($request, $configurations);
}
private function autoConfigure(\ReflectionFunctionAbstract $r, Request $request, $configurations)
{
foreach ($r->getParameters() as $param) {
$this->priority = $dispatcher->getListenerPriority($eventName, $this->listener);
$e = $this->stopwatch->start($this->name, 'event_listener');
try {
($this->optimizedListener ?? $this->listener)($event, $eventName, $dispatcher);
} finally {
if ($e->isStarted()) {
$e->stop();
}
}
foreach ($listeners as $listener) {
if ($stoppable && $event->isPropagationStopped()) {
break;
}
$listener($event, $eventName, $this);
}
}
/**
* Sorts the internal list of listeners for the given event by priority.
} else {
$listeners = $this->getListeners($eventName);
}
if ($listeners) {
$this->callListeners($listeners, $eventName, $event);
}
return $event;
}
try {
$this->beforeDispatch($eventName, $event);
try {
$e = $this->stopwatch->start($eventName, 'section');
try {
$this->dispatcher->dispatch($event, $eventName);
} finally {
if ($e->isStarted()) {
$e->stop();
}
}
if (false === $controller = $this->resolver->getController($request)) {
throw new NotFoundHttpException(sprintf('Unable to find the controller for path "%s". The route is wrongly configured.', $request->getPathInfo()));
}
$event = new ControllerEvent($this, $controller, $request, $type);
$this->dispatcher->dispatch($event, KernelEvents::CONTROLLER);
$controller = $event->getController();
// controller arguments
$arguments = $this->argumentResolver->getArguments($request, $controller);
{
$request->headers->set('X-Php-Ob-Level', (string) ob_get_level());
$this->requestStack->push($request);
try {
return $this->handleRaw($request, $type);
} catch (\Exception $e) {
if ($e instanceof RequestExceptionInterface) {
$e = new BadRequestHttpException($e->getMessage(), $e);
}
if (false === $catch) {
$this->boot();
++$this->requestStackSize;
$this->resetServices = true;
try {
return $this->getHttpKernel()->handle($request, $type, $catch);
} finally {
--$this->requestStackSize;
}
}
$this->request = $request;
}
public function run(): int
{
$response = $this->kernel->handle($this->request);
$response->send();
if ($this->kernel instanceof TerminableInterface) {
$this->kernel->terminate($this->request, $response);
}
$app = $app(...$args);
exit(
$runtime
->getRunner($app)
->run()
);
<?php
use App\Kernel;
require_once dirname(__DIR__).'/vendor/autoload_runtime.php';
return function (array $context) {
return new Kernel($context['APP_ENV'], (bool) $context['APP_DEBUG']);
};
No log messages
[3/3]
DriverException
|
---|
Doctrine\DBAL\Exception\DriverException: An exception occurred in the driver: SQLSTATE[HY000] [1040] Too many connections at vendor/doctrine/dbal/src/Driver/API/MySQL/ExceptionConverter.php:119 at Doctrine\DBAL\Driver\API\MySQL\ExceptionConverter->convert(object(Exception), null) (vendor/doctrine/dbal/src/Connection.php:1814) at Doctrine\DBAL\Connection->handleDriverException(object(Exception), null) (vendor/doctrine/dbal/src/Connection.php:1757) at Doctrine\DBAL\Connection->convertException(object(Exception)) (vendor/doctrine/dbal/src/Connection.php:343) at Doctrine\DBAL\Connection->connect() (vendor/doctrine/dbal/src/Connection.php:1531) at Doctrine\DBAL\Connection->getWrappedConnection() (vendor/doctrine/dbal/src/Connection.php:1029) at Doctrine\DBAL\Connection->executeQuery('SELECT t0.id AS id_1, t0.titre AS titre_2, t0.ville AS ville_3, t0.tag AS tag_4, t0.localisation AS localisation_5, t0.gratuit AS gratuit_6, t0.poussette AS poussette_7, t0.handicape AS handicape_8, t0.picnic AS picnic_9, t0.temps AS temps_10, t0.age AS age_11, t0.lieu AS lieu_12, t0.siteweb AS siteweb_13, t0.telephone AS telephone_14, t0.tarifs AS tarifs_15, t0.departement AS departement_16, t0.descriptif AS descriptif_17, t0.descriptif_web AS descriptif_web_18, t0.photo AS photo_19, t0.video AS video_20, t0.categorie AS categorie_21, t0.debut AS debut_22, t0.fin AS fin_23, t0.latitude AS latitude_24, t0.longitude AS longitude_25, t0.result_postcode AS result_postcode_26, t0.result_citycode AS result_citycode_27, t0.publiable AS publiable_28, t0.avant AS avant_29, t0.credit AS credit_30 FROM pwa_enfance t0 WHERE t0.id = ?', array('210'), array('integer')) (vendor/doctrine/orm/lib/Doctrine/ORM/Persisters/Entity/BasicEntityPersister.php:750) at Doctrine\ORM\Persisters\Entity\BasicEntityPersister->load(array('id' => '210'), null) (vendor/doctrine/orm/lib/Doctrine/ORM/Persisters/Entity/BasicEntityPersister.php:768) at Doctrine\ORM\Persisters\Entity\BasicEntityPersister->loadById(array('id' => '210')) (vendor/doctrine/orm/lib/Doctrine/ORM/EntityManager.php:521) at Doctrine\ORM\EntityManager->find('App\\Entity\\PwaEnfance', array(), null, null) (var/cache/preprod/ContainerAhwBDfC/EntityManager_9a5be93.php:144) at ContainerAhwBDfC\EntityManager_9a5be93->find('App\\Entity\\PwaEnfance', '210', null, null) (vendor/doctrine/orm/lib/Doctrine/ORM/EntityRepository.php:197) at Doctrine\ORM\EntityRepository->find('210') (vendor/sensio/framework-extra-bundle/src/Request/ParamConverter/DoctrineParamConverter.php:142) at Sensio\Bundle\FrameworkExtraBundle\Request\ParamConverter\DoctrineParamConverter->find('App\\Entity\\PwaEnfance', object(Request), array('entity_manager' => null, 'exclude' => array(), 'mapping' => array(), 'strip_null' => false, 'expr' => null, 'id' => null, 'repository_method' => null, 'map_method_signature' => false, 'evict_cache' => false), 'pwaEnfance') (vendor/sensio/framework-extra-bundle/src/Request/ParamConverter/DoctrineParamConverter.php:91) at Sensio\Bundle\FrameworkExtraBundle\Request\ParamConverter\DoctrineParamConverter->apply(object(Request), object(ParamConverter)) (vendor/sensio/framework-extra-bundle/src/Request/ParamConverter/ParamConverterManager.php:84) at Sensio\Bundle\FrameworkExtraBundle\Request\ParamConverter\ParamConverterManager->applyConverter(object(Request), object(ParamConverter)) (vendor/sensio/framework-extra-bundle/src/Request/ParamConverter/ParamConverterManager.php:48) at Sensio\Bundle\FrameworkExtraBundle\Request\ParamConverter\ParamConverterManager->apply(object(Request), array('pwaEnfance' => object(ParamConverter))) (vendor/sensio/framework-extra-bundle/src/EventListener/ParamConverterListener.php:72) at Sensio\Bundle\FrameworkExtraBundle\EventListener\ParamConverterListener->onKernelController(object(ControllerEvent), 'kernel.controller', object(TraceableEventDispatcher)) (vendor/symfony/event-dispatcher/Debug/WrappedListener.php:118) at Symfony\Component\EventDispatcher\Debug\WrappedListener->__invoke(object(ControllerEvent), 'kernel.controller', object(TraceableEventDispatcher)) (vendor/symfony/event-dispatcher/EventDispatcher.php:230) at Symfony\Component\EventDispatcher\EventDispatcher->callListeners(array(object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener)), 'kernel.controller', object(ControllerEvent)) (vendor/symfony/event-dispatcher/EventDispatcher.php:59) at Symfony\Component\EventDispatcher\EventDispatcher->dispatch(object(ControllerEvent), 'kernel.controller') (vendor/symfony/event-dispatcher/Debug/TraceableEventDispatcher.php:154) at Symfony\Component\EventDispatcher\Debug\TraceableEventDispatcher->dispatch(object(ControllerEvent), 'kernel.controller') (vendor/symfony/http-kernel/HttpKernel.php:151) at Symfony\Component\HttpKernel\HttpKernel->handleRaw(object(Request), 1) (vendor/symfony/http-kernel/HttpKernel.php:75) at Symfony\Component\HttpKernel\HttpKernel->handle(object(Request), 1, true) (vendor/symfony/http-kernel/Kernel.php:202) at Symfony\Component\HttpKernel\Kernel->handle(object(Request)) (vendor/symfony/runtime/Runner/Symfony/HttpKernelRunner.php:35) at Symfony\Component\Runtime\Runner\Symfony\HttpKernelRunner->run() (vendor/autoload_runtime.php:35) at require_once('/data/www/root/labretagnedesenfants.bzh/prod/35d22df8f1de8e840628ae98f22780ceb82068a1-1680099099/vendor/autoload_runtime.php') (public/index.php:5) |
[2/3]
Exception
|
---|
Doctrine\DBAL\Driver\PDO\Exception: SQLSTATE[HY000] [1040] Too many connections at vendor/doctrine/dbal/src/Driver/PDO/Exception.php:30 at Doctrine\DBAL\Driver\PDO\Exception::new(object(PDOException)) (vendor/doctrine/dbal/src/Driver/PDO/MySQL/Driver.php:34) at Doctrine\DBAL\Driver\PDO\MySQL\Driver->connect(array('url' => 'mysql://bo_redac:irUBZ9h8WUM0mi1D@telegramme-apps2.sdv.fr:3306/bo_redac?serverVersion=8&charset=utf8mb4', 'driver' => 'pdo_mysql', 'host' => 'telegramme-apps2.sdv.fr', 'port' => 3306, 'user' => 'bo_redac', 'password' => 'irUBZ9h8WUM0mi1D', 'driverOptions' => array(), 'defaultTableOptions' => array(), 'dbname' => 'bo_redac', 'serverVersion' => '8', 'charset' => 'utf8mb4')) (vendor/doctrine/dbal/src/Driver/Middleware/AbstractDriverMiddleware.php:26) at Doctrine\DBAL\Driver\Middleware\AbstractDriverMiddleware->connect(array('url' => 'mysql://bo_redac:irUBZ9h8WUM0mi1D@telegramme-apps2.sdv.fr:3306/bo_redac?serverVersion=8&charset=utf8mb4', 'driver' => 'pdo_mysql', 'host' => 'telegramme-apps2.sdv.fr', 'port' => 3306, 'user' => 'bo_redac', 'password' => 'irUBZ9h8WUM0mi1D', 'driverOptions' => array(), 'defaultTableOptions' => array(), 'dbname' => 'bo_redac', 'serverVersion' => '8', 'charset' => 'utf8mb4')) (vendor/doctrine/dbal/src/Logging/Driver.php:34) at Doctrine\DBAL\Logging\Driver->connect(array('url' => 'mysql://bo_redac:irUBZ9h8WUM0mi1D@telegramme-apps2.sdv.fr:3306/bo_redac?serverVersion=8&charset=utf8mb4', 'driver' => 'pdo_mysql', 'host' => 'telegramme-apps2.sdv.fr', 'port' => 3306, 'user' => 'bo_redac', 'password' => 'irUBZ9h8WUM0mi1D', 'driverOptions' => array(), 'defaultTableOptions' => array(), 'dbname' => 'bo_redac', 'serverVersion' => '8', 'charset' => 'utf8mb4')) (vendor/doctrine/dbal/src/Driver/Middleware/AbstractDriverMiddleware.php:26) at Doctrine\DBAL\Driver\Middleware\AbstractDriverMiddleware->connect(array('url' => 'mysql://bo_redac:irUBZ9h8WUM0mi1D@telegramme-apps2.sdv.fr:3306/bo_redac?serverVersion=8&charset=utf8mb4', 'driver' => 'pdo_mysql', 'host' => 'telegramme-apps2.sdv.fr', 'port' => 3306, 'user' => 'bo_redac', 'password' => 'irUBZ9h8WUM0mi1D', 'driverOptions' => array(), 'defaultTableOptions' => array(), 'dbname' => 'bo_redac', 'serverVersion' => '8', 'charset' => 'utf8mb4')) (vendor/symfony/doctrine-bridge/Middleware/Debug/Driver.php:41) at Symfony\Bridge\Doctrine\Middleware\Debug\Driver->connect(array('url' => 'mysql://bo_redac:irUBZ9h8WUM0mi1D@telegramme-apps2.sdv.fr:3306/bo_redac?serverVersion=8&charset=utf8mb4', 'driver' => 'pdo_mysql', 'host' => 'telegramme-apps2.sdv.fr', 'port' => 3306, 'user' => 'bo_redac', 'password' => 'irUBZ9h8WUM0mi1D', 'driverOptions' => array(), 'defaultTableOptions' => array(), 'dbname' => 'bo_redac', 'serverVersion' => '8', 'charset' => 'utf8mb4')) (vendor/doctrine/dbal/src/Connection.php:341) at Doctrine\DBAL\Connection->connect() (vendor/doctrine/dbal/src/Connection.php:1531) at Doctrine\DBAL\Connection->getWrappedConnection() (vendor/doctrine/dbal/src/Connection.php:1029) at Doctrine\DBAL\Connection->executeQuery('SELECT t0.id AS id_1, t0.titre AS titre_2, t0.ville AS ville_3, t0.tag AS tag_4, t0.localisation AS localisation_5, t0.gratuit AS gratuit_6, t0.poussette AS poussette_7, t0.handicape AS handicape_8, t0.picnic AS picnic_9, t0.temps AS temps_10, t0.age AS age_11, t0.lieu AS lieu_12, t0.siteweb AS siteweb_13, t0.telephone AS telephone_14, t0.tarifs AS tarifs_15, t0.departement AS departement_16, t0.descriptif AS descriptif_17, t0.descriptif_web AS descriptif_web_18, t0.photo AS photo_19, t0.video AS video_20, t0.categorie AS categorie_21, t0.debut AS debut_22, t0.fin AS fin_23, t0.latitude AS latitude_24, t0.longitude AS longitude_25, t0.result_postcode AS result_postcode_26, t0.result_citycode AS result_citycode_27, t0.publiable AS publiable_28, t0.avant AS avant_29, t0.credit AS credit_30 FROM pwa_enfance t0 WHERE t0.id = ?', array('210'), array('integer')) (vendor/doctrine/orm/lib/Doctrine/ORM/Persisters/Entity/BasicEntityPersister.php:750) at Doctrine\ORM\Persisters\Entity\BasicEntityPersister->load(array('id' => '210'), null) (vendor/doctrine/orm/lib/Doctrine/ORM/Persisters/Entity/BasicEntityPersister.php:768) at Doctrine\ORM\Persisters\Entity\BasicEntityPersister->loadById(array('id' => '210')) (vendor/doctrine/orm/lib/Doctrine/ORM/EntityManager.php:521) at Doctrine\ORM\EntityManager->find('App\\Entity\\PwaEnfance', array(), null, null) (var/cache/preprod/ContainerAhwBDfC/EntityManager_9a5be93.php:144) at ContainerAhwBDfC\EntityManager_9a5be93->find('App\\Entity\\PwaEnfance', '210', null, null) (vendor/doctrine/orm/lib/Doctrine/ORM/EntityRepository.php:197) at Doctrine\ORM\EntityRepository->find('210') (vendor/sensio/framework-extra-bundle/src/Request/ParamConverter/DoctrineParamConverter.php:142) at Sensio\Bundle\FrameworkExtraBundle\Request\ParamConverter\DoctrineParamConverter->find('App\\Entity\\PwaEnfance', object(Request), array('entity_manager' => null, 'exclude' => array(), 'mapping' => array(), 'strip_null' => false, 'expr' => null, 'id' => null, 'repository_method' => null, 'map_method_signature' => false, 'evict_cache' => false), 'pwaEnfance') (vendor/sensio/framework-extra-bundle/src/Request/ParamConverter/DoctrineParamConverter.php:91) at Sensio\Bundle\FrameworkExtraBundle\Request\ParamConverter\DoctrineParamConverter->apply(object(Request), object(ParamConverter)) (vendor/sensio/framework-extra-bundle/src/Request/ParamConverter/ParamConverterManager.php:84) at Sensio\Bundle\FrameworkExtraBundle\Request\ParamConverter\ParamConverterManager->applyConverter(object(Request), object(ParamConverter)) (vendor/sensio/framework-extra-bundle/src/Request/ParamConverter/ParamConverterManager.php:48) at Sensio\Bundle\FrameworkExtraBundle\Request\ParamConverter\ParamConverterManager->apply(object(Request), array('pwaEnfance' => object(ParamConverter))) (vendor/sensio/framework-extra-bundle/src/EventListener/ParamConverterListener.php:72) at Sensio\Bundle\FrameworkExtraBundle\EventListener\ParamConverterListener->onKernelController(object(ControllerEvent), 'kernel.controller', object(TraceableEventDispatcher)) (vendor/symfony/event-dispatcher/Debug/WrappedListener.php:118) at Symfony\Component\EventDispatcher\Debug\WrappedListener->__invoke(object(ControllerEvent), 'kernel.controller', object(TraceableEventDispatcher)) (vendor/symfony/event-dispatcher/EventDispatcher.php:230) at Symfony\Component\EventDispatcher\EventDispatcher->callListeners(array(object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener)), 'kernel.controller', object(ControllerEvent)) (vendor/symfony/event-dispatcher/EventDispatcher.php:59) at Symfony\Component\EventDispatcher\EventDispatcher->dispatch(object(ControllerEvent), 'kernel.controller') (vendor/symfony/event-dispatcher/Debug/TraceableEventDispatcher.php:154) at Symfony\Component\EventDispatcher\Debug\TraceableEventDispatcher->dispatch(object(ControllerEvent), 'kernel.controller') (vendor/symfony/http-kernel/HttpKernel.php:151) at Symfony\Component\HttpKernel\HttpKernel->handleRaw(object(Request), 1) (vendor/symfony/http-kernel/HttpKernel.php:75) at Symfony\Component\HttpKernel\HttpKernel->handle(object(Request), 1, true) (vendor/symfony/http-kernel/Kernel.php:202) at Symfony\Component\HttpKernel\Kernel->handle(object(Request)) (vendor/symfony/runtime/Runner/Symfony/HttpKernelRunner.php:35) at Symfony\Component\Runtime\Runner\Symfony\HttpKernelRunner->run() (vendor/autoload_runtime.php:35) at require_once('/data/www/root/labretagnedesenfants.bzh/prod/35d22df8f1de8e840628ae98f22780ceb82068a1-1680099099/vendor/autoload_runtime.php') (public/index.php:5) |
[1/3]
PDOException
|
---|
PDOException: SQLSTATE[HY000] [1040] Too many connections at vendor/doctrine/dbal/src/Driver/PDO/MySQL/Driver.php:28 at PDO->__construct('mysql:host=telegramme-apps2.sdv.fr;port=3306;dbname=bo_redac;charset=utf8mb4;', 'bo_redac', 'irUBZ9h8WUM0mi1D', array()) (vendor/doctrine/dbal/src/Driver/PDO/MySQL/Driver.php:28) at Doctrine\DBAL\Driver\PDO\MySQL\Driver->connect(array('url' => 'mysql://bo_redac:irUBZ9h8WUM0mi1D@telegramme-apps2.sdv.fr:3306/bo_redac?serverVersion=8&charset=utf8mb4', 'driver' => 'pdo_mysql', 'host' => 'telegramme-apps2.sdv.fr', 'port' => 3306, 'user' => 'bo_redac', 'password' => 'irUBZ9h8WUM0mi1D', 'driverOptions' => array(), 'defaultTableOptions' => array(), 'dbname' => 'bo_redac', 'serverVersion' => '8', 'charset' => 'utf8mb4')) (vendor/doctrine/dbal/src/Driver/Middleware/AbstractDriverMiddleware.php:26) at Doctrine\DBAL\Driver\Middleware\AbstractDriverMiddleware->connect(array('url' => 'mysql://bo_redac:irUBZ9h8WUM0mi1D@telegramme-apps2.sdv.fr:3306/bo_redac?serverVersion=8&charset=utf8mb4', 'driver' => 'pdo_mysql', 'host' => 'telegramme-apps2.sdv.fr', 'port' => 3306, 'user' => 'bo_redac', 'password' => 'irUBZ9h8WUM0mi1D', 'driverOptions' => array(), 'defaultTableOptions' => array(), 'dbname' => 'bo_redac', 'serverVersion' => '8', 'charset' => 'utf8mb4')) (vendor/doctrine/dbal/src/Logging/Driver.php:34) at Doctrine\DBAL\Logging\Driver->connect(array('url' => 'mysql://bo_redac:irUBZ9h8WUM0mi1D@telegramme-apps2.sdv.fr:3306/bo_redac?serverVersion=8&charset=utf8mb4', 'driver' => 'pdo_mysql', 'host' => 'telegramme-apps2.sdv.fr', 'port' => 3306, 'user' => 'bo_redac', 'password' => 'irUBZ9h8WUM0mi1D', 'driverOptions' => array(), 'defaultTableOptions' => array(), 'dbname' => 'bo_redac', 'serverVersion' => '8', 'charset' => 'utf8mb4')) (vendor/doctrine/dbal/src/Driver/Middleware/AbstractDriverMiddleware.php:26) at Doctrine\DBAL\Driver\Middleware\AbstractDriverMiddleware->connect(array('url' => 'mysql://bo_redac:irUBZ9h8WUM0mi1D@telegramme-apps2.sdv.fr:3306/bo_redac?serverVersion=8&charset=utf8mb4', 'driver' => 'pdo_mysql', 'host' => 'telegramme-apps2.sdv.fr', 'port' => 3306, 'user' => 'bo_redac', 'password' => 'irUBZ9h8WUM0mi1D', 'driverOptions' => array(), 'defaultTableOptions' => array(), 'dbname' => 'bo_redac', 'serverVersion' => '8', 'charset' => 'utf8mb4')) (vendor/symfony/doctrine-bridge/Middleware/Debug/Driver.php:41) at Symfony\Bridge\Doctrine\Middleware\Debug\Driver->connect(array('url' => 'mysql://bo_redac:irUBZ9h8WUM0mi1D@telegramme-apps2.sdv.fr:3306/bo_redac?serverVersion=8&charset=utf8mb4', 'driver' => 'pdo_mysql', 'host' => 'telegramme-apps2.sdv.fr', 'port' => 3306, 'user' => 'bo_redac', 'password' => 'irUBZ9h8WUM0mi1D', 'driverOptions' => array(), 'defaultTableOptions' => array(), 'dbname' => 'bo_redac', 'serverVersion' => '8', 'charset' => 'utf8mb4')) (vendor/doctrine/dbal/src/Connection.php:341) at Doctrine\DBAL\Connection->connect() (vendor/doctrine/dbal/src/Connection.php:1531) at Doctrine\DBAL\Connection->getWrappedConnection() (vendor/doctrine/dbal/src/Connection.php:1029) at Doctrine\DBAL\Connection->executeQuery('SELECT t0.id AS id_1, t0.titre AS titre_2, t0.ville AS ville_3, t0.tag AS tag_4, t0.localisation AS localisation_5, t0.gratuit AS gratuit_6, t0.poussette AS poussette_7, t0.handicape AS handicape_8, t0.picnic AS picnic_9, t0.temps AS temps_10, t0.age AS age_11, t0.lieu AS lieu_12, t0.siteweb AS siteweb_13, t0.telephone AS telephone_14, t0.tarifs AS tarifs_15, t0.departement AS departement_16, t0.descriptif AS descriptif_17, t0.descriptif_web AS descriptif_web_18, t0.photo AS photo_19, t0.video AS video_20, t0.categorie AS categorie_21, t0.debut AS debut_22, t0.fin AS fin_23, t0.latitude AS latitude_24, t0.longitude AS longitude_25, t0.result_postcode AS result_postcode_26, t0.result_citycode AS result_citycode_27, t0.publiable AS publiable_28, t0.avant AS avant_29, t0.credit AS credit_30 FROM pwa_enfance t0 WHERE t0.id = ?', array('210'), array('integer')) (vendor/doctrine/orm/lib/Doctrine/ORM/Persisters/Entity/BasicEntityPersister.php:750) at Doctrine\ORM\Persisters\Entity\BasicEntityPersister->load(array('id' => '210'), null) (vendor/doctrine/orm/lib/Doctrine/ORM/Persisters/Entity/BasicEntityPersister.php:768) at Doctrine\ORM\Persisters\Entity\BasicEntityPersister->loadById(array('id' => '210')) (vendor/doctrine/orm/lib/Doctrine/ORM/EntityManager.php:521) at Doctrine\ORM\EntityManager->find('App\\Entity\\PwaEnfance', array(), null, null) (var/cache/preprod/ContainerAhwBDfC/EntityManager_9a5be93.php:144) at ContainerAhwBDfC\EntityManager_9a5be93->find('App\\Entity\\PwaEnfance', '210', null, null) (vendor/doctrine/orm/lib/Doctrine/ORM/EntityRepository.php:197) at Doctrine\ORM\EntityRepository->find('210') (vendor/sensio/framework-extra-bundle/src/Request/ParamConverter/DoctrineParamConverter.php:142) at Sensio\Bundle\FrameworkExtraBundle\Request\ParamConverter\DoctrineParamConverter->find('App\\Entity\\PwaEnfance', object(Request), array('entity_manager' => null, 'exclude' => array(), 'mapping' => array(), 'strip_null' => false, 'expr' => null, 'id' => null, 'repository_method' => null, 'map_method_signature' => false, 'evict_cache' => false), 'pwaEnfance') (vendor/sensio/framework-extra-bundle/src/Request/ParamConverter/DoctrineParamConverter.php:91) at Sensio\Bundle\FrameworkExtraBundle\Request\ParamConverter\DoctrineParamConverter->apply(object(Request), object(ParamConverter)) (vendor/sensio/framework-extra-bundle/src/Request/ParamConverter/ParamConverterManager.php:84) at Sensio\Bundle\FrameworkExtraBundle\Request\ParamConverter\ParamConverterManager->applyConverter(object(Request), object(ParamConverter)) (vendor/sensio/framework-extra-bundle/src/Request/ParamConverter/ParamConverterManager.php:48) at Sensio\Bundle\FrameworkExtraBundle\Request\ParamConverter\ParamConverterManager->apply(object(Request), array('pwaEnfance' => object(ParamConverter))) (vendor/sensio/framework-extra-bundle/src/EventListener/ParamConverterListener.php:72) at Sensio\Bundle\FrameworkExtraBundle\EventListener\ParamConverterListener->onKernelController(object(ControllerEvent), 'kernel.controller', object(TraceableEventDispatcher)) (vendor/symfony/event-dispatcher/Debug/WrappedListener.php:118) at Symfony\Component\EventDispatcher\Debug\WrappedListener->__invoke(object(ControllerEvent), 'kernel.controller', object(TraceableEventDispatcher)) (vendor/symfony/event-dispatcher/EventDispatcher.php:230) at Symfony\Component\EventDispatcher\EventDispatcher->callListeners(array(object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener)), 'kernel.controller', object(ControllerEvent)) (vendor/symfony/event-dispatcher/EventDispatcher.php:59) at Symfony\Component\EventDispatcher\EventDispatcher->dispatch(object(ControllerEvent), 'kernel.controller') (vendor/symfony/event-dispatcher/Debug/TraceableEventDispatcher.php:154) at Symfony\Component\EventDispatcher\Debug\TraceableEventDispatcher->dispatch(object(ControllerEvent), 'kernel.controller') (vendor/symfony/http-kernel/HttpKernel.php:151) at Symfony\Component\HttpKernel\HttpKernel->handleRaw(object(Request), 1) (vendor/symfony/http-kernel/HttpKernel.php:75) at Symfony\Component\HttpKernel\HttpKernel->handle(object(Request), 1, true) (vendor/symfony/http-kernel/Kernel.php:202) at Symfony\Component\HttpKernel\Kernel->handle(object(Request)) (vendor/symfony/runtime/Runner/Symfony/HttpKernelRunner.php:35) at Symfony\Component\Runtime\Runner\Symfony\HttpKernelRunner->run() (vendor/autoload_runtime.php:35) at require_once('/data/www/root/labretagnedesenfants.bzh/prod/35d22df8f1de8e840628ae98f22780ceb82068a1-1680099099/vendor/autoload_runtime.php') (public/index.php:5) |