Error 500 Internal Server Error

GET https://www.test.cr-art-auctions.be/en/catalog/46179

Forwarded to ErrorController (760a1e)

Exceptions

An exception occurred in the driver: SQLSTATE[HY000] [2002] Connection refused

Exceptions 3

Doctrine\DBAL\Exception\ ConnectionException

Show exception properties
Doctrine\DBAL\Exception\ConnectionException {#590
  -query: null
}
  1.             case 1370:
  2.             case 1429:
  3.             case 2002:
  4.             case 2005:
  5.             case 2054:
  6.                 return new ConnectionException($exception$query);
  7.             case 2006:
  8.             case 4031:
  9.                 return new ConnectionLost($exception$query);
  1.     private function handleDriverException(
  2.         Driver\Exception $driverException,
  3.         ?Query $query
  4.     ): DriverException {
  5.         $this->exceptionConverter ??= $this->_driver->getExceptionConverter();
  6.         $exception                  $this->exceptionConverter->convert($driverException$query);
  7.         if ($exception instanceof ConnectionLost) {
  8.             $this->close();
  9.         }
in vendor/doctrine/dbal/src/Connection.php -> handleDriverException (line 1924)
  1.     }
  2.     /** @internal */
  3.     final public function convertException(Driver\Exception $e): DriverException
  4.     {
  5.         return $this->handleDriverException($enull);
  6.     }
  7.     /**
  8.      * @param array<int, mixed>|array<string, mixed>                               $params
  9.      * @param array<int, int|string|Type|null>|array<string, int|string|Type|null> $types
in vendor/doctrine/dbal/src/Connection.php -> convertException (line 385)
  1.         }
  2.         try {
  3.             $this->_conn $this->_driver->connect($this->params);
  4.         } catch (Driver\Exception $e) {
  5.             throw $this->convertException($e);
  6.         }
  7.         if ($this->autoCommit === false) {
  8.             $this->beginTransaction();
  9.         }
  1.             'https://github.com/doctrine/dbal/issues/4966',
  2.             'Connection::getWrappedConnection() is deprecated.'
  3.                 ' Use Connection::getNativeConnection() to access the native connection.',
  4.         );
  5.         $this->connect();
  6.         return $this->_conn;
  7.     }
  8.     /** @return resource|object */
in vendor/doctrine/dbal/src/Connection.php -> getWrappedConnection (line 1087)
  1.     ): Result {
  2.         if ($qcp !== null) {
  3.             return $this->executeCacheQuery($sql$params$types$qcp);
  4.         }
  5.         $connection $this->getWrappedConnection();
  6.         $logger $this->_config->getSQLLogger();
  7.         if ($logger !== null) {
  8.             $logger->startQuery($sql$params$types);
  9.         }
  1.      * @param list<mixed>|array<string, mixed>                                     $params
  2.      * @param array<int, int|string|Type|null>|array<string, int|string|Type|null> $types
  3.      */
  4.     public function execute(Connection $conn, array $params, array $types): Result
  5.     {
  6.         return $conn->executeQuery($this->getSqlStatements(), $params$types$this->queryCacheProfile);
  7.     }
  8. }
in vendor/doctrine/orm/src/Query.php -> execute (line 330)
  1.             $sqlParams,
  2.             $types,
  3.             $this->_em->getConnection()->getParams()
  4.         );
  5.         return $executor->execute($this->_em->getConnection(), $sqlParams$types);
  6.     }
  7.     /**
  8.      * @param array<string,mixed> $sqlParams
  9.      * @param array<string,Type>  $types
in vendor/doctrine/orm/src/AbstractQuery.php -> _doExecute (line 1213)
  1.             $setCacheEntry = static function ($data) use ($cache$result$cacheItem$realCacheKey): void {
  2.                 $cache->save($cacheItem->set($result + [$realCacheKey => $data]));
  3.             };
  4.         }
  5.         $stmt $this->_doExecute();
  6.         if (is_numeric($stmt)) {
  7.             $setCacheEntry($stmt);
  8.             return $stmt;
in vendor/doctrine/orm/src/AbstractQuery.php -> executeIgnoreQueryCache (line 1167)
  1.     {
  2.         if ($this->cacheable && $this->isCacheEnabled()) {
  3.             return $this->executeUsingQueryCache($parameters$hydrationMode);
  4.         }
  5.         return $this->executeIgnoreQueryCache($parameters$hydrationMode);
  6.     }
  7.     /**
  8.      * Execute query ignoring second level cache.
  9.      *
  1.      *
  2.      * @return mixed[]
  3.      */
  4.     public function getSingleColumnResult()
  5.     {
  6.         return $this->execute(nullself::HYDRATE_SCALAR_COLUMN);
  7.     }
  8.     /**
  9.      * Gets the scalar results for the query.
  10.      *
AbstractQuery->getSingleColumnResult() in src/Service/BaseControllerService.php (line 148)
  1.             $language $this->em->createQueryBuilder()
  2.                 ->select('l.id')
  3.                 ->from(Languages::class, 'l')
  4.                 ->where('l.code = :code')->setParameter('code'$locale)
  5.                 ->getQuery()
  6.                 ->getSingleColumnResult();
  7.             if (!empty($language))
  8.                 $languageId $language[0];
  9.             $session->set('langIds', [$locale => $languageId]);
BaseControllerService->getLanguageId(object(Session), 'en') in src/Controller/CatalogueController.php (line 52)
  1.             'page' => '\d+',
  2.         ], 
  3.     )]
  4.     public function index(Request $requestSession $sessionSecurity $securityBaseControllerService $baseControllerService$projectDir$page 0): Response
  5.     {
  6.         $this->languageId $baseControllerService->getLanguageId($session$request->getLocale());
  7.         $pageCatalogue $this->cache->get('CatalogueController.index', function ($item) {
  8.             $item->expiresAfter(Utils::getCacheTTL($this->appEnv)); // 10 minutes
  9.             return $this->em->getRepository(PageCatalogue::class)->find(1);
  10.         });
  1.         $this->dispatcher->dispatch($eventKernelEvents::CONTROLLER_ARGUMENTS);
  2.         $controller $event->getController();
  3.         $arguments $event->getArguments();
  4.         // call controller
  5.         $response $controller(...$arguments);
  6.         // view
  7.         if (!$response instanceof Response) {
  8.             $event = new ViewEvent($this$request$type$response$event);
  9.             $this->dispatcher->dispatch($eventKernelEvents::VIEW);
  1.         $request->headers->set('X-Php-Ob-Level', (string) ob_get_level());
  2.         $this->requestStack->push($request);
  3.         $response null;
  4.         try {
  5.             return $response $this->handleRaw($request$type);
  6.         } catch (\Throwable $e) {
  7.             if ($e instanceof \Error && !$this->handleAllThrowables) {
  8.                 throw $e;
  9.             }
  1.         if (!$this->handlingHttpCache) {
  2.             $this->resetServices true;
  3.         }
  4.         try {
  5.             return $this->getHttpKernel()->handle($request$type$catch);
  6.         } finally {
  7.             --$this->requestStackSize;
  8.         }
  9.     }
  1.     ) {
  2.     }
  3.     public function run(): int
  4.     {
  5.         $response $this->kernel->handle($this->request);
  6.         if (Kernel::VERSION_ID >= 60400) {
  7.             $response->send(false);
  8.             if (\function_exists('fastcgi_finish_request') && !$this->debug) {
in vendor/autoload_runtime.php -> run (line 32)
  1. $app $app(...$args);
  2. exit(
  3.     $runtime
  4.         ->getRunner($app)
  5.         ->run()
  6. );
require_once('/home/crartak/test/vendor/autoload_runtime.php') in public/index.php (line 5)
  1. <?php
  2. use App\Kernel;
  3. require_once dirname(__DIR__).'/vendor/autoload_runtime.php';
  4. return function (array $context) {
  5.     return new Kernel($context['APP_ENV'], (bool) $context['APP_DEBUG']);
  6. };

Doctrine\DBAL\Driver\PDO\ Exception

SQLSTATE[HY000] [2002] Connection refused

  1.         } else {
  2.             $code     $exception->getCode();
  3.             $sqlState null;
  4.         }
  5.         return new self($exception->getMessage(), $sqlState$code$exception);
  6.     }
  7. }
  1.                 $params['user'] ?? '',
  2.                 $params['password'] ?? '',
  3.                 $driverOptions,
  4.             );
  5.         } catch (PDOException $exception) {
  6.             throw Exception::new($exception);
  7.         }
  8.         return new Connection($pdo);
  9.     }
  1.      */
  2.     public function connect(
  3.         #[SensitiveParameter]
  4.         array $params
  5.     ) {
  6.         return $this->wrappedDriver->connect($params);
  7.     }
  8.     /**
  9.      * {@inheritDoc}
  10.      */
  1.         array $params
  2.     ) {
  3.         $this->logger->info('Connecting with parameters {params}', ['params' => $this->maskPassword($params)]);
  4.         return new Connection(
  5.             parent::connect($params),
  6.             $this->logger,
  7.         );
  8.     }
  9.     /**
  1.      */
  2.     public function connect(
  3.         #[SensitiveParameter]
  4.         array $params
  5.     ) {
  6.         return $this->wrappedDriver->connect($params);
  7.     }
  8.     /**
  9.      * {@inheritDoc}
  10.      */
  1.         parent::__construct($driver);
  2.     }
  3.     public function connect(array $params): ConnectionInterface
  4.     {
  5.         $connection parent::connect($params);
  6.         if ('void' !== (string) (new \ReflectionMethod(ConnectionInterface::class, 'commit'))->getReturnType()) {
  7.             return new DBAL3\Connection(
  8.                 $connection,
  9.                 $this->debugDataHolder,
  1.      */
  2.     public function connect(
  3.         #[SensitiveParameter]
  4.         array $params
  5.     ) {
  6.         return $this->wrappedDriver->connect($params);
  7.     }
  8.     /**
  9.      * {@inheritDoc}
  10.      */
  1.     }
  2.     public function connect(array $params): ConnectionInterface
  3.     {
  4.         $timestamp time();
  5.         $connection parent::connect($params);
  6.         $this->connectionExpiries[$this->connectionName] = $timestamp $this->ttl;
  7.         return $connection;
  8.     }
  9. }
  1.         if ($this->_conn !== null) {
  2.             return false;
  3.         }
  4.         try {
  5.             $this->_conn $this->_driver->connect($this->params);
  6.         } catch (Driver\Exception $e) {
  7.             throw $this->convertException($e);
  8.         }
  9.         if ($this->autoCommit === false) {
  1.             'https://github.com/doctrine/dbal/issues/4966',
  2.             'Connection::getWrappedConnection() is deprecated.'
  3.                 ' Use Connection::getNativeConnection() to access the native connection.',
  4.         );
  5.         $this->connect();
  6.         return $this->_conn;
  7.     }
  8.     /** @return resource|object */
in vendor/doctrine/dbal/src/Connection.php -> getWrappedConnection (line 1087)
  1.     ): Result {
  2.         if ($qcp !== null) {
  3.             return $this->executeCacheQuery($sql$params$types$qcp);
  4.         }
  5.         $connection $this->getWrappedConnection();
  6.         $logger $this->_config->getSQLLogger();
  7.         if ($logger !== null) {
  8.             $logger->startQuery($sql$params$types);
  9.         }
  1.      * @param list<mixed>|array<string, mixed>                                     $params
  2.      * @param array<int, int|string|Type|null>|array<string, int|string|Type|null> $types
  3.      */
  4.     public function execute(Connection $conn, array $params, array $types): Result
  5.     {
  6.         return $conn->executeQuery($this->getSqlStatements(), $params$types$this->queryCacheProfile);
  7.     }
  8. }
in vendor/doctrine/orm/src/Query.php -> execute (line 330)
  1.             $sqlParams,
  2.             $types,
  3.             $this->_em->getConnection()->getParams()
  4.         );
  5.         return $executor->execute($this->_em->getConnection(), $sqlParams$types);
  6.     }
  7.     /**
  8.      * @param array<string,mixed> $sqlParams
  9.      * @param array<string,Type>  $types
in vendor/doctrine/orm/src/AbstractQuery.php -> _doExecute (line 1213)
  1.             $setCacheEntry = static function ($data) use ($cache$result$cacheItem$realCacheKey): void {
  2.                 $cache->save($cacheItem->set($result + [$realCacheKey => $data]));
  3.             };
  4.         }
  5.         $stmt $this->_doExecute();
  6.         if (is_numeric($stmt)) {
  7.             $setCacheEntry($stmt);
  8.             return $stmt;
in vendor/doctrine/orm/src/AbstractQuery.php -> executeIgnoreQueryCache (line 1167)
  1.     {
  2.         if ($this->cacheable && $this->isCacheEnabled()) {
  3.             return $this->executeUsingQueryCache($parameters$hydrationMode);
  4.         }
  5.         return $this->executeIgnoreQueryCache($parameters$hydrationMode);
  6.     }
  7.     /**
  8.      * Execute query ignoring second level cache.
  9.      *
  1.      *
  2.      * @return mixed[]
  3.      */
  4.     public function getSingleColumnResult()
  5.     {
  6.         return $this->execute(nullself::HYDRATE_SCALAR_COLUMN);
  7.     }
  8.     /**
  9.      * Gets the scalar results for the query.
  10.      *
AbstractQuery->getSingleColumnResult() in src/Service/BaseControllerService.php (line 148)
  1.             $language $this->em->createQueryBuilder()
  2.                 ->select('l.id')
  3.                 ->from(Languages::class, 'l')
  4.                 ->where('l.code = :code')->setParameter('code'$locale)
  5.                 ->getQuery()
  6.                 ->getSingleColumnResult();
  7.             if (!empty($language))
  8.                 $languageId $language[0];
  9.             $session->set('langIds', [$locale => $languageId]);
BaseControllerService->getLanguageId(object(Session), 'en') in src/Controller/CatalogueController.php (line 52)
  1.             'page' => '\d+',
  2.         ], 
  3.     )]
  4.     public function index(Request $requestSession $sessionSecurity $securityBaseControllerService $baseControllerService$projectDir$page 0): Response
  5.     {
  6.         $this->languageId $baseControllerService->getLanguageId($session$request->getLocale());
  7.         $pageCatalogue $this->cache->get('CatalogueController.index', function ($item) {
  8.             $item->expiresAfter(Utils::getCacheTTL($this->appEnv)); // 10 minutes
  9.             return $this->em->getRepository(PageCatalogue::class)->find(1);
  10.         });
  1.         $this->dispatcher->dispatch($eventKernelEvents::CONTROLLER_ARGUMENTS);
  2.         $controller $event->getController();
  3.         $arguments $event->getArguments();
  4.         // call controller
  5.         $response $controller(...$arguments);
  6.         // view
  7.         if (!$response instanceof Response) {
  8.             $event = new ViewEvent($this$request$type$response$event);
  9.             $this->dispatcher->dispatch($eventKernelEvents::VIEW);
  1.         $request->headers->set('X-Php-Ob-Level', (string) ob_get_level());
  2.         $this->requestStack->push($request);
  3.         $response null;
  4.         try {
  5.             return $response $this->handleRaw($request$type);
  6.         } catch (\Throwable $e) {
  7.             if ($e instanceof \Error && !$this->handleAllThrowables) {
  8.                 throw $e;
  9.             }
  1.         if (!$this->handlingHttpCache) {
  2.             $this->resetServices true;
  3.         }
  4.         try {
  5.             return $this->getHttpKernel()->handle($request$type$catch);
  6.         } finally {
  7.             --$this->requestStackSize;
  8.         }
  9.     }
  1.     ) {
  2.     }
  3.     public function run(): int
  4.     {
  5.         $response $this->kernel->handle($this->request);
  6.         if (Kernel::VERSION_ID >= 60400) {
  7.             $response->send(false);
  8.             if (\function_exists('fastcgi_finish_request') && !$this->debug) {
in vendor/autoload_runtime.php -> run (line 32)
  1. $app $app(...$args);
  2. exit(
  3.     $runtime
  4.         ->getRunner($app)
  5.         ->run()
  6. );
require_once('/home/crartak/test/vendor/autoload_runtime.php') in public/index.php (line 5)
  1. <?php
  2. use App\Kernel;
  3. require_once dirname(__DIR__).'/vendor/autoload_runtime.php';
  4. return function (array $context) {
  5.     return new Kernel($context['APP_ENV'], (bool) $context['APP_DEBUG']);
  6. };

PDOException

SQLSTATE[HY000] [2002] Connection refused

  1.         #[SensitiveParameter]
  2.         string $password,
  3.         array $options
  4.     ): PDO {
  5.         if (PHP_VERSION_ID 80400) {
  6.             return new PDO($dsn$username$password$options);
  7.         }
  8.         return PDO::connect($dsn$username$password$options);
  9.     }
  10. }
  1.         #[SensitiveParameter]
  2.         string $password,
  3.         array $options
  4.     ): PDO {
  5.         if (PHP_VERSION_ID 80400) {
  6.             return new PDO($dsn$username$password$options);
  7.         }
  8.         return PDO::connect($dsn$username$password$options);
  9.     }
  10. }
  1.         $safeParams $params;
  2.         unset($safeParams['password'], $safeParams['url']);
  3.         try {
  4.             $pdo $this->doConnect(
  5.                 $this->constructPdoDsn($safeParams),
  6.                 $params['user'] ?? '',
  7.                 $params['password'] ?? '',
  8.                 $driverOptions,
  9.             );
  1.      */
  2.     public function connect(
  3.         #[SensitiveParameter]
  4.         array $params
  5.     ) {
  6.         return $this->wrappedDriver->connect($params);
  7.     }
  8.     /**
  9.      * {@inheritDoc}
  10.      */
  1.         array $params
  2.     ) {
  3.         $this->logger->info('Connecting with parameters {params}', ['params' => $this->maskPassword($params)]);
  4.         return new Connection(
  5.             parent::connect($params),
  6.             $this->logger,
  7.         );
  8.     }
  9.     /**
  1.      */
  2.     public function connect(
  3.         #[SensitiveParameter]
  4.         array $params
  5.     ) {
  6.         return $this->wrappedDriver->connect($params);
  7.     }
  8.     /**
  9.      * {@inheritDoc}
  10.      */
  1.         parent::__construct($driver);
  2.     }
  3.     public function connect(array $params): ConnectionInterface
  4.     {
  5.         $connection parent::connect($params);
  6.         if ('void' !== (string) (new \ReflectionMethod(ConnectionInterface::class, 'commit'))->getReturnType()) {
  7.             return new DBAL3\Connection(
  8.                 $connection,
  9.                 $this->debugDataHolder,
  1.      */
  2.     public function connect(
  3.         #[SensitiveParameter]
  4.         array $params
  5.     ) {
  6.         return $this->wrappedDriver->connect($params);
  7.     }
  8.     /**
  9.      * {@inheritDoc}
  10.      */
  1.     }
  2.     public function connect(array $params): ConnectionInterface
  3.     {
  4.         $timestamp time();
  5.         $connection parent::connect($params);
  6.         $this->connectionExpiries[$this->connectionName] = $timestamp $this->ttl;
  7.         return $connection;
  8.     }
  9. }
  1.         if ($this->_conn !== null) {
  2.             return false;
  3.         }
  4.         try {
  5.             $this->_conn $this->_driver->connect($this->params);
  6.         } catch (Driver\Exception $e) {
  7.             throw $this->convertException($e);
  8.         }
  9.         if ($this->autoCommit === false) {
  1.             'https://github.com/doctrine/dbal/issues/4966',
  2.             'Connection::getWrappedConnection() is deprecated.'
  3.                 ' Use Connection::getNativeConnection() to access the native connection.',
  4.         );
  5.         $this->connect();
  6.         return $this->_conn;
  7.     }
  8.     /** @return resource|object */
in vendor/doctrine/dbal/src/Connection.php -> getWrappedConnection (line 1087)
  1.     ): Result {
  2.         if ($qcp !== null) {
  3.             return $this->executeCacheQuery($sql$params$types$qcp);
  4.         }
  5.         $connection $this->getWrappedConnection();
  6.         $logger $this->_config->getSQLLogger();
  7.         if ($logger !== null) {
  8.             $logger->startQuery($sql$params$types);
  9.         }
  1.      * @param list<mixed>|array<string, mixed>                                     $params
  2.      * @param array<int, int|string|Type|null>|array<string, int|string|Type|null> $types
  3.      */
  4.     public function execute(Connection $conn, array $params, array $types): Result
  5.     {
  6.         return $conn->executeQuery($this->getSqlStatements(), $params$types$this->queryCacheProfile);
  7.     }
  8. }
in vendor/doctrine/orm/src/Query.php -> execute (line 330)
  1.             $sqlParams,
  2.             $types,
  3.             $this->_em->getConnection()->getParams()
  4.         );
  5.         return $executor->execute($this->_em->getConnection(), $sqlParams$types);
  6.     }
  7.     /**
  8.      * @param array<string,mixed> $sqlParams
  9.      * @param array<string,Type>  $types
in vendor/doctrine/orm/src/AbstractQuery.php -> _doExecute (line 1213)
  1.             $setCacheEntry = static function ($data) use ($cache$result$cacheItem$realCacheKey): void {
  2.                 $cache->save($cacheItem->set($result + [$realCacheKey => $data]));
  3.             };
  4.         }
  5.         $stmt $this->_doExecute();
  6.         if (is_numeric($stmt)) {
  7.             $setCacheEntry($stmt);
  8.             return $stmt;
in vendor/doctrine/orm/src/AbstractQuery.php -> executeIgnoreQueryCache (line 1167)
  1.     {
  2.         if ($this->cacheable && $this->isCacheEnabled()) {
  3.             return $this->executeUsingQueryCache($parameters$hydrationMode);
  4.         }
  5.         return $this->executeIgnoreQueryCache($parameters$hydrationMode);
  6.     }
  7.     /**
  8.      * Execute query ignoring second level cache.
  9.      *
  1.      *
  2.      * @return mixed[]
  3.      */
  4.     public function getSingleColumnResult()
  5.     {
  6.         return $this->execute(nullself::HYDRATE_SCALAR_COLUMN);
  7.     }
  8.     /**
  9.      * Gets the scalar results for the query.
  10.      *
AbstractQuery->getSingleColumnResult() in src/Service/BaseControllerService.php (line 148)
  1.             $language $this->em->createQueryBuilder()
  2.                 ->select('l.id')
  3.                 ->from(Languages::class, 'l')
  4.                 ->where('l.code = :code')->setParameter('code'$locale)
  5.                 ->getQuery()
  6.                 ->getSingleColumnResult();
  7.             if (!empty($language))
  8.                 $languageId $language[0];
  9.             $session->set('langIds', [$locale => $languageId]);
BaseControllerService->getLanguageId(object(Session), 'en') in src/Controller/CatalogueController.php (line 52)
  1.             'page' => '\d+',
  2.         ], 
  3.     )]
  4.     public function index(Request $requestSession $sessionSecurity $securityBaseControllerService $baseControllerService$projectDir$page 0): Response
  5.     {
  6.         $this->languageId $baseControllerService->getLanguageId($session$request->getLocale());
  7.         $pageCatalogue $this->cache->get('CatalogueController.index', function ($item) {
  8.             $item->expiresAfter(Utils::getCacheTTL($this->appEnv)); // 10 minutes
  9.             return $this->em->getRepository(PageCatalogue::class)->find(1);
  10.         });
  1.         $this->dispatcher->dispatch($eventKernelEvents::CONTROLLER_ARGUMENTS);
  2.         $controller $event->getController();
  3.         $arguments $event->getArguments();
  4.         // call controller
  5.         $response $controller(...$arguments);
  6.         // view
  7.         if (!$response instanceof Response) {
  8.             $event = new ViewEvent($this$request$type$response$event);
  9.             $this->dispatcher->dispatch($eventKernelEvents::VIEW);
  1.         $request->headers->set('X-Php-Ob-Level', (string) ob_get_level());
  2.         $this->requestStack->push($request);
  3.         $response null;
  4.         try {
  5.             return $response $this->handleRaw($request$type);
  6.         } catch (\Throwable $e) {
  7.             if ($e instanceof \Error && !$this->handleAllThrowables) {
  8.                 throw $e;
  9.             }
  1.         if (!$this->handlingHttpCache) {
  2.             $this->resetServices true;
  3.         }
  4.         try {
  5.             return $this->getHttpKernel()->handle($request$type$catch);
  6.         } finally {
  7.             --$this->requestStackSize;
  8.         }
  9.     }
  1.     ) {
  2.     }
  3.     public function run(): int
  4.     {
  5.         $response $this->kernel->handle($this->request);
  6.         if (Kernel::VERSION_ID >= 60400) {
  7.             $response->send(false);
  8.             if (\function_exists('fastcgi_finish_request') && !$this->debug) {
in vendor/autoload_runtime.php -> run (line 32)
  1. $app $app(...$args);
  2. exit(
  3.     $runtime
  4.         ->getRunner($app)
  5.         ->run()
  6. );
require_once('/home/crartak/test/vendor/autoload_runtime.php') in public/index.php (line 5)
  1. <?php
  2. use App\Kernel;
  3. require_once dirname(__DIR__).'/vendor/autoload_runtime.php';
  4. return function (array $context) {
  5.     return new Kernel($context['APP_ENV'], (bool) $context['APP_DEBUG']);
  6. };

Logs

Level Channel Message
DEBUG 16:35:16 php Warning: Zend OPcache API is restricted by "restrict_api" configuration directive
{
    "exception": {
        "severity": 2,
        "file": "/home/crartak/test/vendor/symfony/error-handler/DebugClassLoader.php",
        "line": 303,
        "trace": [
            {
                "file": "/home/crartak/test/vendor/doctrine/doctrine-bundle/src/DoctrineBundle.php",
                "line": 136,
                "function": "loadClass",
                "class": "Symfony\\Component\\ErrorHandler\\DebugClassLoader",
                "type": "->"
            }
        ],
        "count": 8
    }
}
INFO 16:35:16 request Matched route "_profiler".
{
    "route": "_profiler",
    "route_parameters": {
        "_route": "_profiler",
        "_controller": "web_profiler.controller.profiler::panelAction",
        "token": "777402"
    },
    "request_uri": "https://www.test.cr-art-auctions.be/_profiler/777402",
    "method": "GET"
}
INFO 16:35:16 deprecation User Deprecated: In ORM 3.0, the AttributeDriver will report fields for the classes where they are declared. This may uncover invalid mapping configurations. To opt into the new mode today, set the "reportFieldsWhereDeclared" constructor parameter to true. (AttributeDriver.php:77 called by App_KernelDevDebugContainer.php:1298, https://github.com/doctrine/orm/pull/10455, package doctrine/orm)
{
    "exception": {}
}

Stack Traces 3

[3/3] ConnectionException
Doctrine\DBAL\Exception\ConnectionException:
An exception occurred in the driver: SQLSTATE[HY000] [2002] Connection refused

  at vendor/doctrine/dbal/src/Driver/API/MySQL/ExceptionConverter.php:112
  at Doctrine\DBAL\Driver\API\MySQL\ExceptionConverter->convert(object(Exception), null)
     (vendor/doctrine/dbal/src/Connection.php:1976)
  at Doctrine\DBAL\Connection->handleDriverException(object(Exception), null)
     (vendor/doctrine/dbal/src/Connection.php:1924)
  at Doctrine\DBAL\Connection->convertException(object(Exception))
     (vendor/doctrine/dbal/src/Connection.php:385)
  at Doctrine\DBAL\Connection->connect()
     (vendor/doctrine/dbal/src/Connection.php:1692)
  at Doctrine\DBAL\Connection->getWrappedConnection()
     (vendor/doctrine/dbal/src/Connection.php:1087)
  at Doctrine\DBAL\Connection->executeQuery('SELECT l0_.id AS id_0 FROM languages l0_ WHERE l0_.code = ?', array('en'), array(2), null)
     (vendor/doctrine/orm/src/Query/Exec/FinalizedSelectExecutor.php:31)
  at Doctrine\ORM\Query\Exec\FinalizedSelectExecutor->execute(object(Connection), array('en'), array(2))
     (vendor/doctrine/orm/src/Query.php:330)
  at Doctrine\ORM\Query->_doExecute()
     (vendor/doctrine/orm/src/AbstractQuery.php:1213)
  at Doctrine\ORM\AbstractQuery->executeIgnoreQueryCache(null, 6)
     (vendor/doctrine/orm/src/AbstractQuery.php:1167)
  at Doctrine\ORM\AbstractQuery->execute(null, 6)
     (vendor/doctrine/orm/src/AbstractQuery.php:930)
  at Doctrine\ORM\AbstractQuery->getSingleColumnResult()
     (src/Service/BaseControllerService.php:148)
  at App\Service\BaseControllerService->getLanguageId(object(Session), 'en')
     (src/Controller/CatalogueController.php:52)
  at App\Controller\CatalogueController->index(object(Request), object(Session), object(Security), object(BaseControllerService), '/home/crartak/test', '46179')
     (vendor/symfony/http-kernel/HttpKernel.php:183)
  at Symfony\Component\HttpKernel\HttpKernel->handleRaw(object(Request), 1)
     (vendor/symfony/http-kernel/HttpKernel.php:76)
  at Symfony\Component\HttpKernel\HttpKernel->handle(object(Request), 1, true)
     (vendor/symfony/http-kernel/Kernel.php:193)
  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:32)
  at require_once('/home/crartak/test/vendor/autoload_runtime.php')
     (public/index.php:5)                
[2/3] Exception
Doctrine\DBAL\Driver\PDO\Exception:
SQLSTATE[HY000] [2002] Connection refused

  at vendor/doctrine/dbal/src/Driver/PDO/Exception.php:24
  at Doctrine\DBAL\Driver\PDO\Exception::new(object(PDOException))
     (vendor/doctrine/dbal/src/Driver/PDO/MySQL/Driver.php:43)
  at Doctrine\DBAL\Driver\PDO\MySQL\Driver->connect(object(SensitiveParameterValue))
     (vendor/doctrine/dbal/src/Driver/Middleware/AbstractDriverMiddleware.php:29)
  at Doctrine\DBAL\Driver\Middleware\AbstractDriverMiddleware->connect(object(SensitiveParameterValue))
     (vendor/doctrine/dbal/src/Logging/Driver.php:34)
  at Doctrine\DBAL\Logging\Driver->connect(object(SensitiveParameterValue))
     (vendor/doctrine/dbal/src/Driver/Middleware/AbstractDriverMiddleware.php:29)
  at Doctrine\DBAL\Driver\Middleware\AbstractDriverMiddleware->connect(object(SensitiveParameterValue))
     (vendor/symfony/doctrine-bridge/Middleware/Debug/Driver.php:37)
  at Symfony\Bridge\Doctrine\Middleware\Debug\Driver->connect(array('driver' => 'pdo_mysql', 'idle_connection_ttl' => 600, 'host' => 'crartaktest.mysql.db', 'port' => 3306, 'user' => 'crartaktest', 'password' => 'iRPnl958T7wHiU8W', 'driverOptions' => array(), 'defaultTableOptions' => array(), 'dbname' => 'crartaktest', 'charset' => 'utf8mb4', 'serverVersion' => '13'))
     (vendor/doctrine/dbal/src/Driver/Middleware/AbstractDriverMiddleware.php:29)
  at Doctrine\DBAL\Driver\Middleware\AbstractDriverMiddleware->connect(object(SensitiveParameterValue))
     (vendor/symfony/doctrine-bridge/Middleware/IdleConnection/Driver.php:35)
  at Symfony\Bridge\Doctrine\Middleware\IdleConnection\Driver->connect(array('driver' => 'pdo_mysql', 'idle_connection_ttl' => 600, 'host' => 'crartaktest.mysql.db', 'port' => 3306, 'user' => 'crartaktest', 'password' => 'iRPnl958T7wHiU8W', 'driverOptions' => array(), 'defaultTableOptions' => array(), 'dbname' => 'crartaktest', 'charset' => 'utf8mb4', 'serverVersion' => '13'))
     (vendor/doctrine/dbal/src/Connection.php:383)
  at Doctrine\DBAL\Connection->connect()
     (vendor/doctrine/dbal/src/Connection.php:1692)
  at Doctrine\DBAL\Connection->getWrappedConnection()
     (vendor/doctrine/dbal/src/Connection.php:1087)
  at Doctrine\DBAL\Connection->executeQuery('SELECT l0_.id AS id_0 FROM languages l0_ WHERE l0_.code = ?', array('en'), array(2), null)
     (vendor/doctrine/orm/src/Query/Exec/FinalizedSelectExecutor.php:31)
  at Doctrine\ORM\Query\Exec\FinalizedSelectExecutor->execute(object(Connection), array('en'), array(2))
     (vendor/doctrine/orm/src/Query.php:330)
  at Doctrine\ORM\Query->_doExecute()
     (vendor/doctrine/orm/src/AbstractQuery.php:1213)
  at Doctrine\ORM\AbstractQuery->executeIgnoreQueryCache(null, 6)
     (vendor/doctrine/orm/src/AbstractQuery.php:1167)
  at Doctrine\ORM\AbstractQuery->execute(null, 6)
     (vendor/doctrine/orm/src/AbstractQuery.php:930)
  at Doctrine\ORM\AbstractQuery->getSingleColumnResult()
     (src/Service/BaseControllerService.php:148)
  at App\Service\BaseControllerService->getLanguageId(object(Session), 'en')
     (src/Controller/CatalogueController.php:52)
  at App\Controller\CatalogueController->index(object(Request), object(Session), object(Security), object(BaseControllerService), '/home/crartak/test', '46179')
     (vendor/symfony/http-kernel/HttpKernel.php:183)
  at Symfony\Component\HttpKernel\HttpKernel->handleRaw(object(Request), 1)
     (vendor/symfony/http-kernel/HttpKernel.php:76)
  at Symfony\Component\HttpKernel\HttpKernel->handle(object(Request), 1, true)
     (vendor/symfony/http-kernel/Kernel.php:193)
  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:32)
  at require_once('/home/crartak/test/vendor/autoload_runtime.php')
     (public/index.php:5)                
[1/3] PDOException
PDOException:
SQLSTATE[HY000] [2002] Connection refused

  at vendor/doctrine/dbal/src/Driver/PDO/PDOConnect.php:25
  at PDO->__construct('mysql:host=crartaktest.mysql.db;port=3306;dbname=crartaktest;charset=utf8mb4;', 'crartaktest', object(SensitiveParameterValue), array())
     (vendor/doctrine/dbal/src/Driver/PDO/PDOConnect.php:25)
  at Doctrine\DBAL\Driver\PDO\MySQL\Driver->doConnect(object(SensitiveParameterValue), 'crartaktest', object(SensitiveParameterValue), array())
     (vendor/doctrine/dbal/src/Driver/PDO/MySQL/Driver.php:36)
  at Doctrine\DBAL\Driver\PDO\MySQL\Driver->connect(object(SensitiveParameterValue))
     (vendor/doctrine/dbal/src/Driver/Middleware/AbstractDriverMiddleware.php:29)
  at Doctrine\DBAL\Driver\Middleware\AbstractDriverMiddleware->connect(object(SensitiveParameterValue))
     (vendor/doctrine/dbal/src/Logging/Driver.php:34)
  at Doctrine\DBAL\Logging\Driver->connect(object(SensitiveParameterValue))
     (vendor/doctrine/dbal/src/Driver/Middleware/AbstractDriverMiddleware.php:29)
  at Doctrine\DBAL\Driver\Middleware\AbstractDriverMiddleware->connect(object(SensitiveParameterValue))
     (vendor/symfony/doctrine-bridge/Middleware/Debug/Driver.php:37)
  at Symfony\Bridge\Doctrine\Middleware\Debug\Driver->connect(array('driver' => 'pdo_mysql', 'idle_connection_ttl' => 600, 'host' => 'crartaktest.mysql.db', 'port' => 3306, 'user' => 'crartaktest', 'password' => 'iRPnl958T7wHiU8W', 'driverOptions' => array(), 'defaultTableOptions' => array(), 'dbname' => 'crartaktest', 'charset' => 'utf8mb4', 'serverVersion' => '13'))
     (vendor/doctrine/dbal/src/Driver/Middleware/AbstractDriverMiddleware.php:29)
  at Doctrine\DBAL\Driver\Middleware\AbstractDriverMiddleware->connect(object(SensitiveParameterValue))
     (vendor/symfony/doctrine-bridge/Middleware/IdleConnection/Driver.php:35)
  at Symfony\Bridge\Doctrine\Middleware\IdleConnection\Driver->connect(array('driver' => 'pdo_mysql', 'idle_connection_ttl' => 600, 'host' => 'crartaktest.mysql.db', 'port' => 3306, 'user' => 'crartaktest', 'password' => 'iRPnl958T7wHiU8W', 'driverOptions' => array(), 'defaultTableOptions' => array(), 'dbname' => 'crartaktest', 'charset' => 'utf8mb4', 'serverVersion' => '13'))
     (vendor/doctrine/dbal/src/Connection.php:383)
  at Doctrine\DBAL\Connection->connect()
     (vendor/doctrine/dbal/src/Connection.php:1692)
  at Doctrine\DBAL\Connection->getWrappedConnection()
     (vendor/doctrine/dbal/src/Connection.php:1087)
  at Doctrine\DBAL\Connection->executeQuery('SELECT l0_.id AS id_0 FROM languages l0_ WHERE l0_.code = ?', array('en'), array(2), null)
     (vendor/doctrine/orm/src/Query/Exec/FinalizedSelectExecutor.php:31)
  at Doctrine\ORM\Query\Exec\FinalizedSelectExecutor->execute(object(Connection), array('en'), array(2))
     (vendor/doctrine/orm/src/Query.php:330)
  at Doctrine\ORM\Query->_doExecute()
     (vendor/doctrine/orm/src/AbstractQuery.php:1213)
  at Doctrine\ORM\AbstractQuery->executeIgnoreQueryCache(null, 6)
     (vendor/doctrine/orm/src/AbstractQuery.php:1167)
  at Doctrine\ORM\AbstractQuery->execute(null, 6)
     (vendor/doctrine/orm/src/AbstractQuery.php:930)
  at Doctrine\ORM\AbstractQuery->getSingleColumnResult()
     (src/Service/BaseControllerService.php:148)
  at App\Service\BaseControllerService->getLanguageId(object(Session), 'en')
     (src/Controller/CatalogueController.php:52)
  at App\Controller\CatalogueController->index(object(Request), object(Session), object(Security), object(BaseControllerService), '/home/crartak/test', '46179')
     (vendor/symfony/http-kernel/HttpKernel.php:183)
  at Symfony\Component\HttpKernel\HttpKernel->handleRaw(object(Request), 1)
     (vendor/symfony/http-kernel/HttpKernel.php:76)
  at Symfony\Component\HttpKernel\HttpKernel->handle(object(Request), 1, true)
     (vendor/symfony/http-kernel/Kernel.php:193)
  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:32)
  at require_once('/home/crartak/test/vendor/autoload_runtime.php')
     (public/index.php:5)