https://install.oceanexpert.org/expert/54149

Exceptions

An exception occurred while executing 'SELECT r0_.name AS name_0 FROM regions r0_ WHERE r0_.id_region IN (?)' with params [""]:

SQLSTATE[42S02]: Base table or view not found: 1146 Table 'oceanexpert_dev.regions' doesn't exist

  • Exceptions 3
  • Logs
  • Stack Traces 3

Doctrine\DBAL\Exception\ TableNotFoundException

  1.             case '1050':
  2.                 return new TableExistsException($message$exception);
  3.             case '1051':
  4.             case '1146':
  5.                 return new TableNotFoundException($message$exception);
  6.             case '1216':
  7.             case '1217':
  8.             case '1451':
  9.             case '1452':
  1.         if ($driverEx instanceof DriverException) {
  2.             return $driverEx;
  3.         }
  4.         if ($driver instanceof ExceptionConverterDriver && $driverEx instanceof DeprecatedDriverException) {
  5.             return $driver->convertException($msg$driverEx);
  6.         }
  7.         return new Exception($msg0$driverEx);
  8.     }
  1.             $msg .= ' with params ' self::formatParameters($params);
  2.         }
  3.         $msg .= ":\n\n" $driverEx->getMessage();
  4.         return self::wrapException($driver$driverEx$msg);
  5.     }
  6.     /**
  7.      * @deprecated
  8.      *
in vendor/doctrine/dbal/lib/Doctrine/DBAL/Connection.php :: driverExceptionDuringQuery (line 2226)
  1.         $this->throw(
  2.             Exception::driverExceptionDuringQuery(
  3.                 $this->_driver,
  4.                 $e,
  5.                 $sql,
  6.                 $this->resolveParams($params$types)
  7.             )
  8.         );
  9.     }
  10.     /**
in vendor/doctrine/dbal/lib/Doctrine/DBAL/Connection.php -> handleExceptionDuringQuery (line 1313)
  1.             } else {
  2.                 $stmt $connection->query($sql);
  3.             }
  4.         } catch (Throwable $e) {
  5.             $this->handleExceptionDuringQuery(
  6.                 $e,
  7.                 $sql,
  8.                 $params,
  9.                 $types
  10.             );
  11.         }
  1.     /**
  2.      * {@inheritDoc}
  3.      */
  4.     public function execute(Connection $conn, array $params, array $types)
  5.     {
  6.         return $conn->executeQuery($this->_sqlStatements$params$types$this->queryCacheProfile);
  7.     }
  8. }
  1.             $sqlParams,
  2.             $types,
  3.             $this->_em->getConnection()->getParams()
  4.         );
  5.         return $executor->execute($this->_em->getConnection(), $sqlParams$types);
  6.     }
  7.     private function evictResultSetCache(
  8.         AbstractSqlExecutor $executor,
  9.         array $sqlParams,
  1.                 $cache->save($cacheKey$result$queryCacheProfile->getLifetime());
  2.             };
  3.         }
  4.         $stmt $this->_doExecute();
  5.         if (is_numeric($stmt)) {
  6.             $setCacheEntry($stmt);
  7.             return $stmt;
in vendor/doctrine/orm/lib/Doctrine/ORM/AbstractQuery.php -> executeIgnoreQueryCache (line 954)
  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 getResult($hydrationMode self::HYDRATE_OBJECT)
  5.     {
  6.         return $this->execute(null$hydrationMode);
  7.     }
  8.     /**
  9.      * Gets the array of results for the query.
  10.      *
AbstractQuery->getResult() in src/OceanExpertBundle/Controller/ProfileController.php (line 1417)
  1.             ->select('a.name')
  2.             ->where('a.idRegion in (:codeArr)')
  3.             ->setParameter('codeArr'$codeArr)
  4.             ->getQuery();
  5.         $regions $query->getResult();
  6.         $regionsList array_column($regions'name');
  7.         return implode(', '$regionsList);
  8.     }
  9.     /**
ProfileController->getResearchAreaByCodes() in src/OceanExpertBundle/Controller/ProfileController.php (line 461)
  1.             if (isset($expert['expertInfo']['studyregion'])) {
  2.                 $expert['studyregion'] = $this->getResearchAreaByCodes(
  3.                     explode(
  4.                         ',',
  5.                         $expert['expertInfo']['studyregion']
  6.                     )
  7.                 );
  8.             }
  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);
  9.             $this->dispatcher->dispatch($eventKernelEvents::VIEW);
  1.     {
  2.         $request->headers->set('X-Php-Ob-Level', (string) ob_get_level());
  3.         $this->requestStack->push($request);
  4.         try {
  5.             return $this->handleRaw($request$type);
  6.         } catch (\Exception $e) {
  7.             if ($e instanceof RequestExceptionInterface) {
  8.                 $e = new BadRequestHttpException($e->getMessage(), $e);
  9.             }
  10.             if (false === $catch) {
  1.         $this->boot();
  2.         ++$this->requestStackSize;
  3.         $this->resetServices true;
  4.         try {
  5.             return $this->getHttpKernel()->handle($request$type$catch);
  6.         } finally {
  7.             --$this->requestStackSize;
  8.         }
  9.     }
Kernel->handle() in web/index.php (line 25)
  1.     Request::setTrustedHosts([$trustedHosts]);
  2. }
  3. $kernel = new AppKernel($_SERVER['APP_ENV'], (bool) $_SERVER['APP_DEBUG']);
  4. $request Request::createFromGlobals();
  5. $response $kernel->handle($request);
  6. $response->send();
  7. $kernel->terminate($request$response);
include('/var/www/html/oceanexpert_dev/web/index.php') in web/app.php (line 3)
  1. <?php
  2. include './index.php';

Doctrine\DBAL\Driver\PDO\ Exception

SQLSTATE[42S02]: Base table or view not found: 1146 Table 'oceanexpert_dev.regions' doesn't exist

  1.  */
  2. final class Exception extends PDOException
  3. {
  4.     public static function new(\PDOException $exception): self
  5.     {
  6.         return new self($exception);
  7.     }
  8. }
  1.     public function execute($params null)
  2.     {
  3.         try {
  4.             return parent::execute($params);
  5.         } catch (PDOException $exception) {
  6.             throw Exception::new($exception);
  7.         }
  8.     }
  9.     /**
  10.      * {@inheritdoc}
  1.                 [$sql$params$types] = SQLParserUtils::expandListParameters($sql$params$types);
  2.                 $stmt $connection->prepare($sql);
  3.                 if ($types) {
  4.                     $this->_bindTypedValues($stmt$params$types);
  5.                     $stmt->execute();
  6.                 } else {
  7.                     $stmt->execute($params);
  8.                 }
  9.             } else {
  10.                 $stmt $connection->query($sql);
  1.     /**
  2.      * {@inheritDoc}
  3.      */
  4.     public function execute(Connection $conn, array $params, array $types)
  5.     {
  6.         return $conn->executeQuery($this->_sqlStatements$params$types$this->queryCacheProfile);
  7.     }
  8. }
  1.             $sqlParams,
  2.             $types,
  3.             $this->_em->getConnection()->getParams()
  4.         );
  5.         return $executor->execute($this->_em->getConnection(), $sqlParams$types);
  6.     }
  7.     private function evictResultSetCache(
  8.         AbstractSqlExecutor $executor,
  9.         array $sqlParams,
  1.                 $cache->save($cacheKey$result$queryCacheProfile->getLifetime());
  2.             };
  3.         }
  4.         $stmt $this->_doExecute();
  5.         if (is_numeric($stmt)) {
  6.             $setCacheEntry($stmt);
  7.             return $stmt;
in vendor/doctrine/orm/lib/Doctrine/ORM/AbstractQuery.php -> executeIgnoreQueryCache (line 954)
  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 getResult($hydrationMode self::HYDRATE_OBJECT)
  5.     {
  6.         return $this->execute(null$hydrationMode);
  7.     }
  8.     /**
  9.      * Gets the array of results for the query.
  10.      *
AbstractQuery->getResult() in src/OceanExpertBundle/Controller/ProfileController.php (line 1417)
  1.             ->select('a.name')
  2.             ->where('a.idRegion in (:codeArr)')
  3.             ->setParameter('codeArr'$codeArr)
  4.             ->getQuery();
  5.         $regions $query->getResult();
  6.         $regionsList array_column($regions'name');
  7.         return implode(', '$regionsList);
  8.     }
  9.     /**
ProfileController->getResearchAreaByCodes() in src/OceanExpertBundle/Controller/ProfileController.php (line 461)
  1.             if (isset($expert['expertInfo']['studyregion'])) {
  2.                 $expert['studyregion'] = $this->getResearchAreaByCodes(
  3.                     explode(
  4.                         ',',
  5.                         $expert['expertInfo']['studyregion']
  6.                     )
  7.                 );
  8.             }
  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);
  9.             $this->dispatcher->dispatch($eventKernelEvents::VIEW);
  1.     {
  2.         $request->headers->set('X-Php-Ob-Level', (string) ob_get_level());
  3.         $this->requestStack->push($request);
  4.         try {
  5.             return $this->handleRaw($request$type);
  6.         } catch (\Exception $e) {
  7.             if ($e instanceof RequestExceptionInterface) {
  8.                 $e = new BadRequestHttpException($e->getMessage(), $e);
  9.             }
  10.             if (false === $catch) {
  1.         $this->boot();
  2.         ++$this->requestStackSize;
  3.         $this->resetServices true;
  4.         try {
  5.             return $this->getHttpKernel()->handle($request$type$catch);
  6.         } finally {
  7.             --$this->requestStackSize;
  8.         }
  9.     }
Kernel->handle() in web/index.php (line 25)
  1.     Request::setTrustedHosts([$trustedHosts]);
  2. }
  3. $kernel = new AppKernel($_SERVER['APP_ENV'], (bool) $_SERVER['APP_DEBUG']);
  4. $request Request::createFromGlobals();
  5. $response $kernel->handle($request);
  6. $response->send();
  7. $kernel->terminate($request$response);
include('/var/www/html/oceanexpert_dev/web/index.php') in web/app.php (line 3)
  1. <?php
  2. include './index.php';

PDOException

SQLSTATE[42S02]: Base table or view not found: 1146 Table 'oceanexpert_dev.regions' doesn't exist

  1.      */
  2.     #[ReturnTypeWillChange]
  3.     public function execute($params null)
  4.     {
  5.         try {
  6.             return parent::execute($params);
  7.         } catch (PDOException $exception) {
  8.             throw Exception::new($exception);
  9.         }
  10.     }
  1.      */
  2.     #[ReturnTypeWillChange]
  3.     public function execute($params null)
  4.     {
  5.         try {
  6.             return parent::execute($params);
  7.         } catch (PDOException $exception) {
  8.             throw Exception::new($exception);
  9.         }
  10.     }
  1.                 [$sql$params$types] = SQLParserUtils::expandListParameters($sql$params$types);
  2.                 $stmt $connection->prepare($sql);
  3.                 if ($types) {
  4.                     $this->_bindTypedValues($stmt$params$types);
  5.                     $stmt->execute();
  6.                 } else {
  7.                     $stmt->execute($params);
  8.                 }
  9.             } else {
  10.                 $stmt $connection->query($sql);
  1.     /**
  2.      * {@inheritDoc}
  3.      */
  4.     public function execute(Connection $conn, array $params, array $types)
  5.     {
  6.         return $conn->executeQuery($this->_sqlStatements$params$types$this->queryCacheProfile);
  7.     }
  8. }
  1.             $sqlParams,
  2.             $types,
  3.             $this->_em->getConnection()->getParams()
  4.         );
  5.         return $executor->execute($this->_em->getConnection(), $sqlParams$types);
  6.     }
  7.     private function evictResultSetCache(
  8.         AbstractSqlExecutor $executor,
  9.         array $sqlParams,
  1.                 $cache->save($cacheKey$result$queryCacheProfile->getLifetime());
  2.             };
  3.         }
  4.         $stmt $this->_doExecute();
  5.         if (is_numeric($stmt)) {
  6.             $setCacheEntry($stmt);
  7.             return $stmt;
in vendor/doctrine/orm/lib/Doctrine/ORM/AbstractQuery.php -> executeIgnoreQueryCache (line 954)
  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 getResult($hydrationMode self::HYDRATE_OBJECT)
  5.     {
  6.         return $this->execute(null$hydrationMode);
  7.     }
  8.     /**
  9.      * Gets the array of results for the query.
  10.      *
AbstractQuery->getResult() in src/OceanExpertBundle/Controller/ProfileController.php (line 1417)
  1.             ->select('a.name')
  2.             ->where('a.idRegion in (:codeArr)')
  3.             ->setParameter('codeArr'$codeArr)
  4.             ->getQuery();
  5.         $regions $query->getResult();
  6.         $regionsList array_column($regions'name');
  7.         return implode(', '$regionsList);
  8.     }
  9.     /**
ProfileController->getResearchAreaByCodes() in src/OceanExpertBundle/Controller/ProfileController.php (line 461)
  1.             if (isset($expert['expertInfo']['studyregion'])) {
  2.                 $expert['studyregion'] = $this->getResearchAreaByCodes(
  3.                     explode(
  4.                         ',',
  5.                         $expert['expertInfo']['studyregion']
  6.                     )
  7.                 );
  8.             }
  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);
  9.             $this->dispatcher->dispatch($eventKernelEvents::VIEW);
  1.     {
  2.         $request->headers->set('X-Php-Ob-Level', (string) ob_get_level());
  3.         $this->requestStack->push($request);
  4.         try {
  5.             return $this->handleRaw($request$type);
  6.         } catch (\Exception $e) {
  7.             if ($e instanceof RequestExceptionInterface) {
  8.                 $e = new BadRequestHttpException($e->getMessage(), $e);
  9.             }
  10.             if (false === $catch) {
  1.         $this->boot();
  2.         ++$this->requestStackSize;
  3.         $this->resetServices true;
  4.         try {
  5.             return $this->getHttpKernel()->handle($request$type$catch);
  6.         } finally {
  7.             --$this->requestStackSize;
  8.         }
  9.     }
Kernel->handle() in web/index.php (line 25)
  1.     Request::setTrustedHosts([$trustedHosts]);
  2. }
  3. $kernel = new AppKernel($_SERVER['APP_ENV'], (bool) $_SERVER['APP_DEBUG']);
  4. $request Request::createFromGlobals();
  5. $response $kernel->handle($request);
  6. $response->send();
  7. $kernel->terminate($request$response);
include('/var/www/html/oceanexpert_dev/web/index.php') in web/app.php (line 3)
  1. <?php
  2. include './index.php';