http://test-all-in-one.999games.dev/zh_CN/blog/

Exceptions

An exception has been thrown during the rendering of a template ("An exception occurred in driver: SQLSTATE[HY000] [14] unable to open database file").

Exceptions 4

Twig_Error_Runtime

  1. {% extends 'base.html.twig' %}
  2. {% block body_id 'blog_index' %}
  3. {% block main %}
  4.     {% for post in posts %}
  5.         <article class="post">
  6.             <h2>
  7.                 <a href="{{ path('blog_post', {slug: post.slug}) }}">
  8.                     {{ post.title }}
  9.                 </a>
  1.         echo twig_include($this->env$context"default/_flash_messages.html.twig");
  2.         echo "
  3.                         ";
  4.         // line 96
  5.         $this->displayBlock('main'$context$blocks);
  6.         // line 97
  7.         echo "                    </div>
  8.                     <div id=\"sidebar\" class=\"col-sm-3\">
  9.                         ";
in vendor/twig/twig/lib/Twig/Template.php->block_body (line 189)
  1.             throw new LogicException('A block must be a method on a Twig_Template instance.');
  2.         }
  3.         if (null !== $template) {
  4.             try {
  5.                 $template->$block($context$blocks);
  6.             } catch (Twig_Error $e) {
  7.                 if (!$e->getSourceContext()) {
  8.                     $e->setSourceContext($template->getSourceContext());
  9.                 }
  1.         // line 89
  2.         echo "
  3.         <div class=\"container body-container\">
  4.             ";
  5.         // line 91
  6.         $this->displayBlock('body'$context$blocks);
  7.         // line 110
  8.         echo "        </div>
  9.         ";
  10.         // line 112
in vendor/twig/twig/lib/Twig/Template.php->doDisplay (line 386)
  1.     }
  2.     protected function displayWithErrorHandling(array $context, array $blocks = [])
  3.     {
  4.         try {
  5.             $this->doDisplay($context$blocks);
  6.         } catch (Twig_Error $e) {
  7.             if (!$e->getSourceContext()) {
  8.                 $e->setSourceContext($this->getSourceContext());
  9.             }
in vendor/twig/twig/lib/Twig/Template.php->displayWithErrorHandling (line 363)
  1.         return $this->blocks;
  2.     }
  3.     public function display(array $context, array $blocks = [])
  4.     {
  5.         $this->displayWithErrorHandling($this->env->mergeGlobals($context), array_merge($this->blocks$blocks));
  6.     }
  7.     public function render(array $context)
  8.     {
  9.         $level ob_get_level();
  1.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new Twig_Profiler_Profile($this->getTemplateName(), "template""blog/index.html.twig"));
  2.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  3.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new Twig_Profiler_Profile($this->getTemplateName(), "template""blog/index.html.twig"));
  4.         $this->parent->display($contextarray_merge($this->blocks$blocks));
  5.         
  6.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  7.         
  8.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
in vendor/twig/twig/lib/Twig/Template.php->doDisplay (line 386)
  1.     }
  2.     protected function displayWithErrorHandling(array $context, array $blocks = [])
  3.     {
  4.         try {
  5.             $this->doDisplay($context$blocks);
  6.         } catch (Twig_Error $e) {
  7.             if (!$e->getSourceContext()) {
  8.                 $e->setSourceContext($this->getSourceContext());
  9.             }
in vendor/twig/twig/lib/Twig/Template.php->displayWithErrorHandling (line 363)
  1.         return $this->blocks;
  2.     }
  3.     public function display(array $context, array $blocks = [])
  4.     {
  5.         $this->displayWithErrorHandling($this->env->mergeGlobals($context), array_merge($this->blocks$blocks));
  6.     }
  7.     public function render(array $context)
  8.     {
  9.         $level ob_get_level();
  1.     public function render(array $context)
  2.     {
  3.         $level ob_get_level();
  4.         ob_start();
  5.         try {
  6.             $this->display($context);
  7.         } catch (Throwable $e) {
  8.             while (ob_get_level() > $level) {
  9.                 ob_end_clean();
  10.             }
  1.      * @throws Twig_Error_Syntax  When an error occurred during compilation
  2.      * @throws Twig_Error_Runtime When an error occurred during rendering
  3.      */
  4.     public function render($name, array $context = [])
  5.     {
  6.         return $this->loadTemplate($name)->render($context);
  7.     }
  8.     /**
  9.      * Displays a template.
  10.      *
  1.     protected function render(string $view, array $parameters = array(), Response $response null): Response
  2.     {
  3.         if ($this->container->has('templating')) {
  4.             $content $this->container->get('templating')->render($view$parameters);
  5.         } elseif ($this->container->has('twig')) {
  6.             $content $this->container->get('twig')->render($view$parameters);
  7.         } else {
  8.             throw new \LogicException('You can not use the "render" method if the Templating Component or the Twig Bundle are not available. Try running "composer require symfony/twig-bundle".');
  9.         }
  10.         if (null === $response) {
AbstractController->render('blog/index.html.twig', array('posts' => object(Pagerfanta))) in src/Controller/BlogController.php (line 58)
  1.         $latestPosts $posts->findLatest($page);
  2.         // Every template name also has two extensions that specify the format and
  3.         // engine for that template.
  4.         // See https://symfony.com/doc/current/templating.html#template-suffix
  5.         return $this->render('blog/index.'.$_format.'.twig', ['posts' => $latestPosts]);
  6.     }
  7.     /**
  8.      * @Route("/posts/{slug}", name="blog_post")
  9.      * @Method("GET")
  1.         $this->dispatcher->dispatch(KernelEvents::CONTROLLER_ARGUMENTS$event);
  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 GetResponseForControllerResultEvent($this$request$type$response);
  9.             $this->dispatcher->dispatch(KernelEvents::VIEW$event);
  1.     public function handle(Request $request$type HttpKernelInterface::MASTER_REQUEST$catch true)
  2.     {
  3.         $request->headers->set('X-Php-Ob-Level'ob_get_level());
  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(object(Request)) in public/index.php (line 34)
  1. // Request::setTrustedProxies(['0.0.0.0/0'], Request::HEADER_FORWARDED);
  2. $kernel = new Kernel($_SERVER['APP_ENV'] ?? 'dev'$_SERVER['APP_DEBUG'] ?? ('prod' !== ($_SERVER['APP_ENV'] ?? 'dev')));
  3. $request Request::createFromGlobals();
  4. $response $kernel->handle($request);
  5. $response->send();
  6. $kernel->terminate($request$response);

Doctrine\DBAL\Exception\ ConnectionException

An exception occurred in driver: SQLSTATE[HY000] [14] unable to open database file

  1.         if (strpos($exception->getMessage(), 'attempt to write a readonly database') !== false) {
  2.             return new Exception\ReadOnlyException($message$exception);
  3.         }
  4.         if (strpos($exception->getMessage(), 'unable to open database file') !== false) {
  5.             return new Exception\ConnectionException($message$exception);
  6.         }
  7.         return new Exception\DriverException($message$exception);
  8.     }
  1.     {
  2.         if ($driverEx instanceof DriverException) {
  3.             return $driverEx;
  4.         }
  5.         if ($driver instanceof ExceptionConverterDriver && $driverEx instanceof DriverExceptionInterface) {
  6.             return $driver->convertException($msg$driverEx);
  7.         }
  8.         return new self($msg0$driverEx);
  9.     }
  1.      *
  2.      * @return \Doctrine\DBAL\DBALException
  3.      */
  4.     public static function driverException(Driver $driverThrowable $driverEx)
  5.     {
  6.         return static::wrapException($driver$driverEx'An exception occurred in driver: ' $driverEx->getMessage());
  7.     }
  8.     /**
  9.      * @param Exception $driverEx
  10.      *
  1.                 $username,
  2.                 $password,
  3.                 $driverOptions
  4.             );
  5.         } catch (PDOException $ex) {
  6.             throw DBALException::driverException($this$ex);
  7.         }
  8.         foreach ($this->_userDefinedFunctions as $fn => $data) {
  9.             $pdo->sqliteCreateFunction($fn$data['callback'], $data['numArgs']);
  10.         }
  1.         $driverOptions $this->params['driverOptions'] ?? [];
  2.         $user          $this->params['user'] ?? null;
  3.         $password      $this->params['password'] ?? null;
  4.         $this->_conn       $this->_driver->connect($this->params$user$password$driverOptions);
  5.         $this->isConnected true;
  6.         if ($this->autoCommit === false) {
  7.             $this->beginTransaction();
  8.         }
  1.     {
  2.         if ($qcp !== null) {
  3.             return $this->executeCacheQuery($query$params$types$qcp);
  4.         }
  5.         $this->connect();
  6.         $logger $this->_config->getSQLLogger();
  7.         if ($logger) {
  8.             $logger->startQuery($query$params$types);
  9.         }
  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 922)
  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 array
  3.      */
  4.     public function getScalarResult()
  5.     {
  6.         return $this->execute(nullself::HYDRATE_SCALAR);
  7.     }
  8.     /**
  9.      * Get exactly one result or null.
  10.      *
  1.      */
  2.     public function count()
  3.     {
  4.         if ($this->count === null) {
  5.             try {
  6.                 $this->count array_sum(array_map('current'$this->getCountQuery()->getScalarResult()));
  7.             } catch (NoResultException $e) {
  8.                 $this->count 0;
  9.             }
  10.         }
Paginator->count()
  1.     /**
  2.      * {@inheritdoc}
  3.      */
  4.     public function getNbResults()
  5.     {
  6.         return count($this->paginator);
  7.     }
  8.     /**
  9.      * {@inheritdoc}
  10.      */
  1.      * @return integer
  2.      */
  3.     public function getNbResults()
  4.     {
  5.         if ($this->notCachedNbResults()) {
  6.             $this->nbResults $this->getAdapter()->getNbResults();
  7.         }
  8.         return $this->nbResults;
  9.     }
  1.      *
  2.      * Return integer The number of results.
  3.      */
  4.     public function count()
  5.     {
  6.         return $this->getNbResults();
  7.     }
  8.     /**
  9.      * Implements the \IteratorAggregate interface.
  10.      *
  1.           'index0' => 0,
  2.           'index'  => 1,
  3.           'first'  => true,
  4.         ];
  5.         if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof Countable)) {
  6.             $length count($context['_seq']);
  7.             $context['loop']['revindex0'] = $length 1;
  8.             $context['loop']['revindex'] = $length;
  9.             $context['loop']['length'] = $length;
  10.             $context['loop']['last'] = === $length;
  11.         }
in vendor/twig/twig/lib/Twig/Template.php->block_main (line 189)
  1.             throw new LogicException('A block must be a method on a Twig_Template instance.');
  2.         }
  3.         if (null !== $template) {
  4.             try {
  5.                 $template->$block($context$blocks);
  6.             } catch (Twig_Error $e) {
  7.                 if (!$e->getSourceContext()) {
  8.                     $e->setSourceContext($template->getSourceContext());
  9.                 }
  1.         echo twig_include($this->env$context"default/_flash_messages.html.twig");
  2.         echo "
  3.                         ";
  4.         // line 96
  5.         $this->displayBlock('main'$context$blocks);
  6.         // line 97
  7.         echo "                    </div>
  8.                     <div id=\"sidebar\" class=\"col-sm-3\">
  9.                         ";
in vendor/twig/twig/lib/Twig/Template.php->block_body (line 189)
  1.             throw new LogicException('A block must be a method on a Twig_Template instance.');
  2.         }
  3.         if (null !== $template) {
  4.             try {
  5.                 $template->$block($context$blocks);
  6.             } catch (Twig_Error $e) {
  7.                 if (!$e->getSourceContext()) {
  8.                     $e->setSourceContext($template->getSourceContext());
  9.                 }
  1.         // line 89
  2.         echo "
  3.         <div class=\"container body-container\">
  4.             ";
  5.         // line 91
  6.         $this->displayBlock('body'$context$blocks);
  7.         // line 110
  8.         echo "        </div>
  9.         ";
  10.         // line 112
in vendor/twig/twig/lib/Twig/Template.php->doDisplay (line 386)
  1.     }
  2.     protected function displayWithErrorHandling(array $context, array $blocks = [])
  3.     {
  4.         try {
  5.             $this->doDisplay($context$blocks);
  6.         } catch (Twig_Error $e) {
  7.             if (!$e->getSourceContext()) {
  8.                 $e->setSourceContext($this->getSourceContext());
  9.             }
in vendor/twig/twig/lib/Twig/Template.php->displayWithErrorHandling (line 363)
  1.         return $this->blocks;
  2.     }
  3.     public function display(array $context, array $blocks = [])
  4.     {
  5.         $this->displayWithErrorHandling($this->env->mergeGlobals($context), array_merge($this->blocks$blocks));
  6.     }
  7.     public function render(array $context)
  8.     {
  9.         $level ob_get_level();
  1.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new Twig_Profiler_Profile($this->getTemplateName(), "template""blog/index.html.twig"));
  2.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  3.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new Twig_Profiler_Profile($this->getTemplateName(), "template""blog/index.html.twig"));
  4.         $this->parent->display($contextarray_merge($this->blocks$blocks));
  5.         
  6.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  7.         
  8.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
in vendor/twig/twig/lib/Twig/Template.php->doDisplay (line 386)
  1.     }
  2.     protected function displayWithErrorHandling(array $context, array $blocks = [])
  3.     {
  4.         try {
  5.             $this->doDisplay($context$blocks);
  6.         } catch (Twig_Error $e) {
  7.             if (!$e->getSourceContext()) {
  8.                 $e->setSourceContext($this->getSourceContext());
  9.             }
in vendor/twig/twig/lib/Twig/Template.php->displayWithErrorHandling (line 363)
  1.         return $this->blocks;
  2.     }
  3.     public function display(array $context, array $blocks = [])
  4.     {
  5.         $this->displayWithErrorHandling($this->env->mergeGlobals($context), array_merge($this->blocks$blocks));
  6.     }
  7.     public function render(array $context)
  8.     {
  9.         $level ob_get_level();
  1.     public function render(array $context)
  2.     {
  3.         $level ob_get_level();
  4.         ob_start();
  5.         try {
  6.             $this->display($context);
  7.         } catch (Throwable $e) {
  8.             while (ob_get_level() > $level) {
  9.                 ob_end_clean();
  10.             }
  1.      * @throws Twig_Error_Syntax  When an error occurred during compilation
  2.      * @throws Twig_Error_Runtime When an error occurred during rendering
  3.      */
  4.     public function render($name, array $context = [])
  5.     {
  6.         return $this->loadTemplate($name)->render($context);
  7.     }
  8.     /**
  9.      * Displays a template.
  10.      *
  1.     protected function render(string $view, array $parameters = array(), Response $response null): Response
  2.     {
  3.         if ($this->container->has('templating')) {
  4.             $content $this->container->get('templating')->render($view$parameters);
  5.         } elseif ($this->container->has('twig')) {
  6.             $content $this->container->get('twig')->render($view$parameters);
  7.         } else {
  8.             throw new \LogicException('You can not use the "render" method if the Templating Component or the Twig Bundle are not available. Try running "composer require symfony/twig-bundle".');
  9.         }
  10.         if (null === $response) {
AbstractController->render('blog/index.html.twig', array('posts' => object(Pagerfanta))) in src/Controller/BlogController.php (line 58)
  1.         $latestPosts $posts->findLatest($page);
  2.         // Every template name also has two extensions that specify the format and
  3.         // engine for that template.
  4.         // See https://symfony.com/doc/current/templating.html#template-suffix
  5.         return $this->render('blog/index.'.$_format.'.twig', ['posts' => $latestPosts]);
  6.     }
  7.     /**
  8.      * @Route("/posts/{slug}", name="blog_post")
  9.      * @Method("GET")
  1.         $this->dispatcher->dispatch(KernelEvents::CONTROLLER_ARGUMENTS$event);
  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 GetResponseForControllerResultEvent($this$request$type$response);
  9.             $this->dispatcher->dispatch(KernelEvents::VIEW$event);
  1.     public function handle(Request $request$type HttpKernelInterface::MASTER_REQUEST$catch true)
  2.     {
  3.         $request->headers->set('X-Php-Ob-Level'ob_get_level());
  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(object(Request)) in public/index.php (line 34)
  1. // Request::setTrustedProxies(['0.0.0.0/0'], Request::HEADER_FORWARDED);
  2. $kernel = new Kernel($_SERVER['APP_ENV'] ?? 'dev'$_SERVER['APP_DEBUG'] ?? ('prod' !== ($_SERVER['APP_ENV'] ?? 'dev')));
  3. $request Request::createFromGlobals();
  4. $response $kernel->handle($request);
  5. $response->send();
  6. $kernel->terminate($request$response);

Doctrine\DBAL\Driver\ PDOException

SQLSTATE[HY000] [14] unable to open database file

  1.         try {
  2.             parent::__construct($dsn$user$password$options);
  3.             $this->setAttribute(PDO::ATTR_STATEMENT_CLASS, [PDOStatement::class, []]);
  4.             $this->setAttribute(PDO::ATTR_ERRMODEPDO::ERRMODE_EXCEPTION);
  5.         } catch (\PDOException $exception) {
  6.             throw new PDOException($exception);
  7.         }
  8.     }
  9.     /**
  10.      * {@inheritdoc}
  1.         try {
  2.             $pdo = new PDOConnection(
  3.                 $this->_constructPdoDsn($params),
  4.                 $username,
  5.                 $password,
  6.                 $driverOptions
  7.             );
  8.         } catch (PDOException $ex) {
  9.             throw DBALException::driverException($this$ex);
  10.         }
  1.         $driverOptions $this->params['driverOptions'] ?? [];
  2.         $user          $this->params['user'] ?? null;
  3.         $password      $this->params['password'] ?? null;
  4.         $this->_conn       $this->_driver->connect($this->params$user$password$driverOptions);
  5.         $this->isConnected true;
  6.         if ($this->autoCommit === false) {
  7.             $this->beginTransaction();
  8.         }
  1.     {
  2.         if ($qcp !== null) {
  3.             return $this->executeCacheQuery($query$params$types$qcp);
  4.         }
  5.         $this->connect();
  6.         $logger $this->_config->getSQLLogger();
  7.         if ($logger) {
  8.             $logger->startQuery($query$params$types);
  9.         }
  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 922)
  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 array
  3.      */
  4.     public function getScalarResult()
  5.     {
  6.         return $this->execute(nullself::HYDRATE_SCALAR);
  7.     }
  8.     /**
  9.      * Get exactly one result or null.
  10.      *
  1.      */
  2.     public function count()
  3.     {
  4.         if ($this->count === null) {
  5.             try {
  6.                 $this->count array_sum(array_map('current'$this->getCountQuery()->getScalarResult()));
  7.             } catch (NoResultException $e) {
  8.                 $this->count 0;
  9.             }
  10.         }
Paginator->count()
  1.     /**
  2.      * {@inheritdoc}
  3.      */
  4.     public function getNbResults()
  5.     {
  6.         return count($this->paginator);
  7.     }
  8.     /**
  9.      * {@inheritdoc}
  10.      */
  1.      * @return integer
  2.      */
  3.     public function getNbResults()
  4.     {
  5.         if ($this->notCachedNbResults()) {
  6.             $this->nbResults $this->getAdapter()->getNbResults();
  7.         }
  8.         return $this->nbResults;
  9.     }
  1.      *
  2.      * Return integer The number of results.
  3.      */
  4.     public function count()
  5.     {
  6.         return $this->getNbResults();
  7.     }
  8.     /**
  9.      * Implements the \IteratorAggregate interface.
  10.      *
  1.           'index0' => 0,
  2.           'index'  => 1,
  3.           'first'  => true,
  4.         ];
  5.         if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof Countable)) {
  6.             $length count($context['_seq']);
  7.             $context['loop']['revindex0'] = $length 1;
  8.             $context['loop']['revindex'] = $length;
  9.             $context['loop']['length'] = $length;
  10.             $context['loop']['last'] = === $length;
  11.         }
in vendor/twig/twig/lib/Twig/Template.php->block_main (line 189)
  1.             throw new LogicException('A block must be a method on a Twig_Template instance.');
  2.         }
  3.         if (null !== $template) {
  4.             try {
  5.                 $template->$block($context$blocks);
  6.             } catch (Twig_Error $e) {
  7.                 if (!$e->getSourceContext()) {
  8.                     $e->setSourceContext($template->getSourceContext());
  9.                 }
  1.         echo twig_include($this->env$context"default/_flash_messages.html.twig");
  2.         echo "
  3.                         ";
  4.         // line 96
  5.         $this->displayBlock('main'$context$blocks);
  6.         // line 97
  7.         echo "                    </div>
  8.                     <div id=\"sidebar\" class=\"col-sm-3\">
  9.                         ";
in vendor/twig/twig/lib/Twig/Template.php->block_body (line 189)
  1.             throw new LogicException('A block must be a method on a Twig_Template instance.');
  2.         }
  3.         if (null !== $template) {
  4.             try {
  5.                 $template->$block($context$blocks);
  6.             } catch (Twig_Error $e) {
  7.                 if (!$e->getSourceContext()) {
  8.                     $e->setSourceContext($template->getSourceContext());
  9.                 }
  1.         // line 89
  2.         echo "
  3.         <div class=\"container body-container\">
  4.             ";
  5.         // line 91
  6.         $this->displayBlock('body'$context$blocks);
  7.         // line 110
  8.         echo "        </div>
  9.         ";
  10.         // line 112
in vendor/twig/twig/lib/Twig/Template.php->doDisplay (line 386)
  1.     }
  2.     protected function displayWithErrorHandling(array $context, array $blocks = [])
  3.     {
  4.         try {
  5.             $this->doDisplay($context$blocks);
  6.         } catch (Twig_Error $e) {
  7.             if (!$e->getSourceContext()) {
  8.                 $e->setSourceContext($this->getSourceContext());
  9.             }
in vendor/twig/twig/lib/Twig/Template.php->displayWithErrorHandling (line 363)
  1.         return $this->blocks;
  2.     }
  3.     public function display(array $context, array $blocks = [])
  4.     {
  5.         $this->displayWithErrorHandling($this->env->mergeGlobals($context), array_merge($this->blocks$blocks));
  6.     }
  7.     public function render(array $context)
  8.     {
  9.         $level ob_get_level();
  1.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new Twig_Profiler_Profile($this->getTemplateName(), "template""blog/index.html.twig"));
  2.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  3.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new Twig_Profiler_Profile($this->getTemplateName(), "template""blog/index.html.twig"));
  4.         $this->parent->display($contextarray_merge($this->blocks$blocks));
  5.         
  6.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  7.         
  8.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
in vendor/twig/twig/lib/Twig/Template.php->doDisplay (line 386)
  1.     }
  2.     protected function displayWithErrorHandling(array $context, array $blocks = [])
  3.     {
  4.         try {
  5.             $this->doDisplay($context$blocks);
  6.         } catch (Twig_Error $e) {
  7.             if (!$e->getSourceContext()) {
  8.                 $e->setSourceContext($this->getSourceContext());
  9.             }
in vendor/twig/twig/lib/Twig/Template.php->displayWithErrorHandling (line 363)
  1.         return $this->blocks;
  2.     }
  3.     public function display(array $context, array $blocks = [])
  4.     {
  5.         $this->displayWithErrorHandling($this->env->mergeGlobals($context), array_merge($this->blocks$blocks));
  6.     }
  7.     public function render(array $context)
  8.     {
  9.         $level ob_get_level();
  1.     public function render(array $context)
  2.     {
  3.         $level ob_get_level();
  4.         ob_start();
  5.         try {
  6.             $this->display($context);
  7.         } catch (Throwable $e) {
  8.             while (ob_get_level() > $level) {
  9.                 ob_end_clean();
  10.             }
  1.      * @throws Twig_Error_Syntax  When an error occurred during compilation
  2.      * @throws Twig_Error_Runtime When an error occurred during rendering
  3.      */
  4.     public function render($name, array $context = [])
  5.     {
  6.         return $this->loadTemplate($name)->render($context);
  7.     }
  8.     /**
  9.      * Displays a template.
  10.      *
  1.     protected function render(string $view, array $parameters = array(), Response $response null): Response
  2.     {
  3.         if ($this->container->has('templating')) {
  4.             $content $this->container->get('templating')->render($view$parameters);
  5.         } elseif ($this->container->has('twig')) {
  6.             $content $this->container->get('twig')->render($view$parameters);
  7.         } else {
  8.             throw new \LogicException('You can not use the "render" method if the Templating Component or the Twig Bundle are not available. Try running "composer require symfony/twig-bundle".');
  9.         }
  10.         if (null === $response) {
AbstractController->render('blog/index.html.twig', array('posts' => object(Pagerfanta))) in src/Controller/BlogController.php (line 58)
  1.         $latestPosts $posts->findLatest($page);
  2.         // Every template name also has two extensions that specify the format and
  3.         // engine for that template.
  4.         // See https://symfony.com/doc/current/templating.html#template-suffix
  5.         return $this->render('blog/index.'.$_format.'.twig', ['posts' => $latestPosts]);
  6.     }
  7.     /**
  8.      * @Route("/posts/{slug}", name="blog_post")
  9.      * @Method("GET")
  1.         $this->dispatcher->dispatch(KernelEvents::CONTROLLER_ARGUMENTS$event);
  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 GetResponseForControllerResultEvent($this$request$type$response);
  9.             $this->dispatcher->dispatch(KernelEvents::VIEW$event);
  1.     public function handle(Request $request$type HttpKernelInterface::MASTER_REQUEST$catch true)
  2.     {
  3.         $request->headers->set('X-Php-Ob-Level'ob_get_level());
  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(object(Request)) in public/index.php (line 34)
  1. // Request::setTrustedProxies(['0.0.0.0/0'], Request::HEADER_FORWARDED);
  2. $kernel = new Kernel($_SERVER['APP_ENV'] ?? 'dev'$_SERVER['APP_DEBUG'] ?? ('prod' !== ($_SERVER['APP_ENV'] ?? 'dev')));
  3. $request Request::createFromGlobals();
  4. $response $kernel->handle($request);
  5. $response->send();
  6. $kernel->terminate($request$response);

PDOException

SQLSTATE[HY000] [14] unable to open database file

  1.      * @throws PDOException In case of an error.
  2.      */
  3.     public function __construct($dsn$user null$password null, ?array $options null)
  4.     {
  5.         try {
  6.             parent::__construct($dsn$user$password$options);
  7.             $this->setAttribute(PDO::ATTR_STATEMENT_CLASS, [PDOStatement::class, []]);
  8.             $this->setAttribute(PDO::ATTR_ERRMODEPDO::ERRMODE_EXCEPTION);
  9.         } catch (\PDOException $exception) {
  10.             throw new PDOException($exception);
  11.         }
  1.      * @throws PDOException In case of an error.
  2.      */
  3.     public function __construct($dsn$user null$password null, ?array $options null)
  4.     {
  5.         try {
  6.             parent::__construct($dsn$user$password$options);
  7.             $this->setAttribute(PDO::ATTR_STATEMENT_CLASS, [PDOStatement::class, []]);
  8.             $this->setAttribute(PDO::ATTR_ERRMODEPDO::ERRMODE_EXCEPTION);
  9.         } catch (\PDOException $exception) {
  10.             throw new PDOException($exception);
  11.         }
  1.         try {
  2.             $pdo = new PDOConnection(
  3.                 $this->_constructPdoDsn($params),
  4.                 $username,
  5.                 $password,
  6.                 $driverOptions
  7.             );
  8.         } catch (PDOException $ex) {
  9.             throw DBALException::driverException($this$ex);
  10.         }
  1.         $driverOptions $this->params['driverOptions'] ?? [];
  2.         $user          $this->params['user'] ?? null;
  3.         $password      $this->params['password'] ?? null;
  4.         $this->_conn       $this->_driver->connect($this->params$user$password$driverOptions);
  5.         $this->isConnected true;
  6.         if ($this->autoCommit === false) {
  7.             $this->beginTransaction();
  8.         }
  1.     {
  2.         if ($qcp !== null) {
  3.             return $this->executeCacheQuery($query$params$types$qcp);
  4.         }
  5.         $this->connect();
  6.         $logger $this->_config->getSQLLogger();
  7.         if ($logger) {
  8.             $logger->startQuery($query$params$types);
  9.         }
  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 922)
  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 array
  3.      */
  4.     public function getScalarResult()
  5.     {
  6.         return $this->execute(nullself::HYDRATE_SCALAR);
  7.     }
  8.     /**
  9.      * Get exactly one result or null.
  10.      *
  1.      */
  2.     public function count()
  3.     {
  4.         if ($this->count === null) {
  5.             try {
  6.                 $this->count array_sum(array_map('current'$this->getCountQuery()->getScalarResult()));
  7.             } catch (NoResultException $e) {
  8.                 $this->count 0;
  9.             }
  10.         }
Paginator->count()
  1.     /**
  2.      * {@inheritdoc}
  3.      */
  4.     public function getNbResults()
  5.     {
  6.         return count($this->paginator);
  7.     }
  8.     /**
  9.      * {@inheritdoc}
  10.      */
  1.      * @return integer
  2.      */
  3.     public function getNbResults()
  4.     {
  5.         if ($this->notCachedNbResults()) {
  6.             $this->nbResults $this->getAdapter()->getNbResults();
  7.         }
  8.         return $this->nbResults;
  9.     }
  1.      *
  2.      * Return integer The number of results.
  3.      */
  4.     public function count()
  5.     {
  6.         return $this->getNbResults();
  7.     }
  8.     /**
  9.      * Implements the \IteratorAggregate interface.
  10.      *
  1.           'index0' => 0,
  2.           'index'  => 1,
  3.           'first'  => true,
  4.         ];
  5.         if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof Countable)) {
  6.             $length count($context['_seq']);
  7.             $context['loop']['revindex0'] = $length 1;
  8.             $context['loop']['revindex'] = $length;
  9.             $context['loop']['length'] = $length;
  10.             $context['loop']['last'] = === $length;
  11.         }
in vendor/twig/twig/lib/Twig/Template.php->block_main (line 189)
  1.             throw new LogicException('A block must be a method on a Twig_Template instance.');
  2.         }
  3.         if (null !== $template) {
  4.             try {
  5.                 $template->$block($context$blocks);
  6.             } catch (Twig_Error $e) {
  7.                 if (!$e->getSourceContext()) {
  8.                     $e->setSourceContext($template->getSourceContext());
  9.                 }
  1.         echo twig_include($this->env$context"default/_flash_messages.html.twig");
  2.         echo "
  3.                         ";
  4.         // line 96
  5.         $this->displayBlock('main'$context$blocks);
  6.         // line 97
  7.         echo "                    </div>
  8.                     <div id=\"sidebar\" class=\"col-sm-3\">
  9.                         ";
in vendor/twig/twig/lib/Twig/Template.php->block_body (line 189)
  1.             throw new LogicException('A block must be a method on a Twig_Template instance.');
  2.         }
  3.         if (null !== $template) {
  4.             try {
  5.                 $template->$block($context$blocks);
  6.             } catch (Twig_Error $e) {
  7.                 if (!$e->getSourceContext()) {
  8.                     $e->setSourceContext($template->getSourceContext());
  9.                 }
  1.         // line 89
  2.         echo "
  3.         <div class=\"container body-container\">
  4.             ";
  5.         // line 91
  6.         $this->displayBlock('body'$context$blocks);
  7.         // line 110
  8.         echo "        </div>
  9.         ";
  10.         // line 112
in vendor/twig/twig/lib/Twig/Template.php->doDisplay (line 386)
  1.     }
  2.     protected function displayWithErrorHandling(array $context, array $blocks = [])
  3.     {
  4.         try {
  5.             $this->doDisplay($context$blocks);
  6.         } catch (Twig_Error $e) {
  7.             if (!$e->getSourceContext()) {
  8.                 $e->setSourceContext($this->getSourceContext());
  9.             }
in vendor/twig/twig/lib/Twig/Template.php->displayWithErrorHandling (line 363)
  1.         return $this->blocks;
  2.     }
  3.     public function display(array $context, array $blocks = [])
  4.     {
  5.         $this->displayWithErrorHandling($this->env->mergeGlobals($context), array_merge($this->blocks$blocks));
  6.     }
  7.     public function render(array $context)
  8.     {
  9.         $level ob_get_level();
  1.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new Twig_Profiler_Profile($this->getTemplateName(), "template""blog/index.html.twig"));
  2.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  3.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new Twig_Profiler_Profile($this->getTemplateName(), "template""blog/index.html.twig"));
  4.         $this->parent->display($contextarray_merge($this->blocks$blocks));
  5.         
  6.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  7.         
  8.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
in vendor/twig/twig/lib/Twig/Template.php->doDisplay (line 386)
  1.     }
  2.     protected function displayWithErrorHandling(array $context, array $blocks = [])
  3.     {
  4.         try {
  5.             $this->doDisplay($context$blocks);
  6.         } catch (Twig_Error $e) {
  7.             if (!$e->getSourceContext()) {
  8.                 $e->setSourceContext($this->getSourceContext());
  9.             }
in vendor/twig/twig/lib/Twig/Template.php->displayWithErrorHandling (line 363)
  1.         return $this->blocks;
  2.     }
  3.     public function display(array $context, array $blocks = [])
  4.     {
  5.         $this->displayWithErrorHandling($this->env->mergeGlobals($context), array_merge($this->blocks$blocks));
  6.     }
  7.     public function render(array $context)
  8.     {
  9.         $level ob_get_level();
  1.     public function render(array $context)
  2.     {
  3.         $level ob_get_level();
  4.         ob_start();
  5.         try {
  6.             $this->display($context);
  7.         } catch (Throwable $e) {
  8.             while (ob_get_level() > $level) {
  9.                 ob_end_clean();
  10.             }
  1.      * @throws Twig_Error_Syntax  When an error occurred during compilation
  2.      * @throws Twig_Error_Runtime When an error occurred during rendering
  3.      */
  4.     public function render($name, array $context = [])
  5.     {
  6.         return $this->loadTemplate($name)->render($context);
  7.     }
  8.     /**
  9.      * Displays a template.
  10.      *
  1.     protected function render(string $view, array $parameters = array(), Response $response null): Response
  2.     {
  3.         if ($this->container->has('templating')) {
  4.             $content $this->container->get('templating')->render($view$parameters);
  5.         } elseif ($this->container->has('twig')) {
  6.             $content $this->container->get('twig')->render($view$parameters);
  7.         } else {
  8.             throw new \LogicException('You can not use the "render" method if the Templating Component or the Twig Bundle are not available. Try running "composer require symfony/twig-bundle".');
  9.         }
  10.         if (null === $response) {
AbstractController->render('blog/index.html.twig', array('posts' => object(Pagerfanta))) in src/Controller/BlogController.php (line 58)
  1.         $latestPosts $posts->findLatest($page);
  2.         // Every template name also has two extensions that specify the format and
  3.         // engine for that template.
  4.         // See https://symfony.com/doc/current/templating.html#template-suffix
  5.         return $this->render('blog/index.'.$_format.'.twig', ['posts' => $latestPosts]);
  6.     }
  7.     /**
  8.      * @Route("/posts/{slug}", name="blog_post")
  9.      * @Method("GET")
  1.         $this->dispatcher->dispatch(KernelEvents::CONTROLLER_ARGUMENTS$event);
  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 GetResponseForControllerResultEvent($this$request$type$response);
  9.             $this->dispatcher->dispatch(KernelEvents::VIEW$event);
  1.     public function handle(Request $request$type HttpKernelInterface::MASTER_REQUEST$catch true)
  2.     {
  3.         $request->headers->set('X-Php-Ob-Level'ob_get_level());
  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(object(Request)) in public/index.php (line 34)
  1. // Request::setTrustedProxies(['0.0.0.0/0'], Request::HEADER_FORWARDED);
  2. $kernel = new Kernel($_SERVER['APP_ENV'] ?? 'dev'$_SERVER['APP_DEBUG'] ?? ('prod' !== ($_SERVER['APP_ENV'] ?? 'dev')));
  3. $request Request::createFromGlobals();
  4. $response $kernel->handle($request);
  5. $response->send();
  6. $kernel->terminate($request$response);

Stack Traces 4

[4/4] Twig_Error_Runtime

Twig_Error_Runtime:
An exception has been thrown during the rendering of a template ("An exception occurred in driver: SQLSTATE[HY000] [14] unable to open database file").

  at templates/blog/index.html.twig:6
  at Twig_Template->displayBlock('main', array('posts' => object(Pagerfanta), 'app' => object(AppVariable)), array('title' => array(object(__TwigTemplate_b8f5e54054d424ab780b2a4f72237dccf047fbffbfcf51c37e502bd027815a64), 'block_title'), 'stylesheets' => array(object(__TwigTemplate_b8f5e54054d424ab780b2a4f72237dccf047fbffbfcf51c37e502bd027815a64), 'block_stylesheets'), 'body_id' => array(object(__TwigTemplate_271bd68b345e0cf5c130849147384ead603f51447752d1191e62d7f801270e9c), 'block_body_id'), 'header' => array(object(__TwigTemplate_b8f5e54054d424ab780b2a4f72237dccf047fbffbfcf51c37e502bd027815a64), 'block_header'), 'header_navigation_links' => array(object(__TwigTemplate_b8f5e54054d424ab780b2a4f72237dccf047fbffbfcf51c37e502bd027815a64), 'block_header_navigation_links'), 'body' => array(object(__TwigTemplate_b8f5e54054d424ab780b2a4f72237dccf047fbffbfcf51c37e502bd027815a64), 'block_body'), 'main' => array(object(__TwigTemplate_271bd68b345e0cf5c130849147384ead603f51447752d1191e62d7f801270e9c), 'block_main'), 'sidebar' => array(object(__TwigTemplate_271bd68b345e0cf5c130849147384ead603f51447752d1191e62d7f801270e9c), 'block_sidebar'), 'footer' => array(object(__TwigTemplate_b8f5e54054d424ab780b2a4f72237dccf047fbffbfcf51c37e502bd027815a64), 'block_footer'), 'javascripts' => array(object(__TwigTemplate_b8f5e54054d424ab780b2a4f72237dccf047fbffbfcf51c37e502bd027815a64), 'block_javascripts')))
     (var/cache/dev/twig/08/08e92ec678fa7aed2a82ef452737417594d4ed5400e0af84f3d9ef343a4a62d7.php:354)
  at __TwigTemplate_b8f5e54054d424ab780b2a4f72237dccf047fbffbfcf51c37e502bd027815a64->block_body(array('posts' => object(Pagerfanta), 'app' => object(AppVariable)), array('title' => array(object(__TwigTemplate_b8f5e54054d424ab780b2a4f72237dccf047fbffbfcf51c37e502bd027815a64), 'block_title'), 'stylesheets' => array(object(__TwigTemplate_b8f5e54054d424ab780b2a4f72237dccf047fbffbfcf51c37e502bd027815a64), 'block_stylesheets'), 'body_id' => array(object(__TwigTemplate_271bd68b345e0cf5c130849147384ead603f51447752d1191e62d7f801270e9c), 'block_body_id'), 'header' => array(object(__TwigTemplate_b8f5e54054d424ab780b2a4f72237dccf047fbffbfcf51c37e502bd027815a64), 'block_header'), 'header_navigation_links' => array(object(__TwigTemplate_b8f5e54054d424ab780b2a4f72237dccf047fbffbfcf51c37e502bd027815a64), 'block_header_navigation_links'), 'body' => array(object(__TwigTemplate_b8f5e54054d424ab780b2a4f72237dccf047fbffbfcf51c37e502bd027815a64), 'block_body'), 'main' => array(object(__TwigTemplate_271bd68b345e0cf5c130849147384ead603f51447752d1191e62d7f801270e9c), 'block_main'), 'sidebar' => array(object(__TwigTemplate_271bd68b345e0cf5c130849147384ead603f51447752d1191e62d7f801270e9c), 'block_sidebar'), 'footer' => array(object(__TwigTemplate_b8f5e54054d424ab780b2a4f72237dccf047fbffbfcf51c37e502bd027815a64), 'block_footer'), 'javascripts' => array(object(__TwigTemplate_b8f5e54054d424ab780b2a4f72237dccf047fbffbfcf51c37e502bd027815a64), 'block_javascripts')))
     (vendor/twig/twig/lib/Twig/Template.php:189)
  at Twig_Template->displayBlock('body', array('posts' => object(Pagerfanta), 'app' => object(AppVariable)), array('title' => array(object(__TwigTemplate_b8f5e54054d424ab780b2a4f72237dccf047fbffbfcf51c37e502bd027815a64), 'block_title'), 'stylesheets' => array(object(__TwigTemplate_b8f5e54054d424ab780b2a4f72237dccf047fbffbfcf51c37e502bd027815a64), 'block_stylesheets'), 'body_id' => array(object(__TwigTemplate_271bd68b345e0cf5c130849147384ead603f51447752d1191e62d7f801270e9c), 'block_body_id'), 'header' => array(object(__TwigTemplate_b8f5e54054d424ab780b2a4f72237dccf047fbffbfcf51c37e502bd027815a64), 'block_header'), 'header_navigation_links' => array(object(__TwigTemplate_b8f5e54054d424ab780b2a4f72237dccf047fbffbfcf51c37e502bd027815a64), 'block_header_navigation_links'), 'body' => array(object(__TwigTemplate_b8f5e54054d424ab780b2a4f72237dccf047fbffbfcf51c37e502bd027815a64), 'block_body'), 'main' => array(object(__TwigTemplate_271bd68b345e0cf5c130849147384ead603f51447752d1191e62d7f801270e9c), 'block_main'), 'sidebar' => array(object(__TwigTemplate_271bd68b345e0cf5c130849147384ead603f51447752d1191e62d7f801270e9c), 'block_sidebar'), 'footer' => array(object(__TwigTemplate_b8f5e54054d424ab780b2a4f72237dccf047fbffbfcf51c37e502bd027815a64), 'block_footer'), 'javascripts' => array(object(__TwigTemplate_b8f5e54054d424ab780b2a4f72237dccf047fbffbfcf51c37e502bd027815a64), 'block_javascripts')))
     (var/cache/dev/twig/08/08e92ec678fa7aed2a82ef452737417594d4ed5400e0af84f3d9ef343a4a62d7.php:81)
  at __TwigTemplate_b8f5e54054d424ab780b2a4f72237dccf047fbffbfcf51c37e502bd027815a64->doDisplay(array('posts' => object(Pagerfanta), 'app' => object(AppVariable)), array('title' => array(object(__TwigTemplate_b8f5e54054d424ab780b2a4f72237dccf047fbffbfcf51c37e502bd027815a64), 'block_title'), 'stylesheets' => array(object(__TwigTemplate_b8f5e54054d424ab780b2a4f72237dccf047fbffbfcf51c37e502bd027815a64), 'block_stylesheets'), 'body_id' => array(object(__TwigTemplate_271bd68b345e0cf5c130849147384ead603f51447752d1191e62d7f801270e9c), 'block_body_id'), 'header' => array(object(__TwigTemplate_b8f5e54054d424ab780b2a4f72237dccf047fbffbfcf51c37e502bd027815a64), 'block_header'), 'header_navigation_links' => array(object(__TwigTemplate_b8f5e54054d424ab780b2a4f72237dccf047fbffbfcf51c37e502bd027815a64), 'block_header_navigation_links'), 'body' => array(object(__TwigTemplate_b8f5e54054d424ab780b2a4f72237dccf047fbffbfcf51c37e502bd027815a64), 'block_body'), 'main' => array(object(__TwigTemplate_271bd68b345e0cf5c130849147384ead603f51447752d1191e62d7f801270e9c), 'block_main'), 'sidebar' => array(object(__TwigTemplate_271bd68b345e0cf5c130849147384ead603f51447752d1191e62d7f801270e9c), 'block_sidebar'), 'footer' => array(object(__TwigTemplate_b8f5e54054d424ab780b2a4f72237dccf047fbffbfcf51c37e502bd027815a64), 'block_footer'), 'javascripts' => array(object(__TwigTemplate_b8f5e54054d424ab780b2a4f72237dccf047fbffbfcf51c37e502bd027815a64), 'block_javascripts')))
     (vendor/twig/twig/lib/Twig/Template.php:386)
  at Twig_Template->displayWithErrorHandling(array('posts' => object(Pagerfanta), 'app' => object(AppVariable)), array('title' => array(object(__TwigTemplate_b8f5e54054d424ab780b2a4f72237dccf047fbffbfcf51c37e502bd027815a64), 'block_title'), 'stylesheets' => array(object(__TwigTemplate_b8f5e54054d424ab780b2a4f72237dccf047fbffbfcf51c37e502bd027815a64), 'block_stylesheets'), 'body_id' => array(object(__TwigTemplate_271bd68b345e0cf5c130849147384ead603f51447752d1191e62d7f801270e9c), 'block_body_id'), 'header' => array(object(__TwigTemplate_b8f5e54054d424ab780b2a4f72237dccf047fbffbfcf51c37e502bd027815a64), 'block_header'), 'header_navigation_links' => array(object(__TwigTemplate_b8f5e54054d424ab780b2a4f72237dccf047fbffbfcf51c37e502bd027815a64), 'block_header_navigation_links'), 'body' => array(object(__TwigTemplate_b8f5e54054d424ab780b2a4f72237dccf047fbffbfcf51c37e502bd027815a64), 'block_body'), 'main' => array(object(__TwigTemplate_271bd68b345e0cf5c130849147384ead603f51447752d1191e62d7f801270e9c), 'block_main'), 'sidebar' => array(object(__TwigTemplate_271bd68b345e0cf5c130849147384ead603f51447752d1191e62d7f801270e9c), 'block_sidebar'), 'footer' => array(object(__TwigTemplate_b8f5e54054d424ab780b2a4f72237dccf047fbffbfcf51c37e502bd027815a64), 'block_footer'), 'javascripts' => array(object(__TwigTemplate_b8f5e54054d424ab780b2a4f72237dccf047fbffbfcf51c37e502bd027815a64), 'block_javascripts')))
     (vendor/twig/twig/lib/Twig/Template.php:363)
  at Twig_Template->display(array('posts' => object(Pagerfanta), 'app' => object(AppVariable)), array('body_id' => array(object(__TwigTemplate_271bd68b345e0cf5c130849147384ead603f51447752d1191e62d7f801270e9c), 'block_body_id'), 'main' => array(object(__TwigTemplate_271bd68b345e0cf5c130849147384ead603f51447752d1191e62d7f801270e9c), 'block_main'), 'sidebar' => array(object(__TwigTemplate_271bd68b345e0cf5c130849147384ead603f51447752d1191e62d7f801270e9c), 'block_sidebar')))
     (var/cache/dev/twig/50/50f4593efdd0d38bc9395f5e57977575994863c979ee646f6765316aef8e7130.php:36)
  at __TwigTemplate_271bd68b345e0cf5c130849147384ead603f51447752d1191e62d7f801270e9c->doDisplay(array('posts' => object(Pagerfanta), 'app' => object(AppVariable)), array('body_id' => array(object(__TwigTemplate_271bd68b345e0cf5c130849147384ead603f51447752d1191e62d7f801270e9c), 'block_body_id'), 'main' => array(object(__TwigTemplate_271bd68b345e0cf5c130849147384ead603f51447752d1191e62d7f801270e9c), 'block_main'), 'sidebar' => array(object(__TwigTemplate_271bd68b345e0cf5c130849147384ead603f51447752d1191e62d7f801270e9c), 'block_sidebar')))
     (vendor/twig/twig/lib/Twig/Template.php:386)
  at Twig_Template->displayWithErrorHandling(array('posts' => object(Pagerfanta), 'app' => object(AppVariable)), array('body_id' => array(object(__TwigTemplate_271bd68b345e0cf5c130849147384ead603f51447752d1191e62d7f801270e9c), 'block_body_id'), 'main' => array(object(__TwigTemplate_271bd68b345e0cf5c130849147384ead603f51447752d1191e62d7f801270e9c), 'block_main'), 'sidebar' => array(object(__TwigTemplate_271bd68b345e0cf5c130849147384ead603f51447752d1191e62d7f801270e9c), 'block_sidebar')))
     (vendor/twig/twig/lib/Twig/Template.php:363)
  at Twig_Template->display(array('posts' => object(Pagerfanta)))
     (vendor/twig/twig/lib/Twig/Template.php:371)
  at Twig_Template->render(array('posts' => object(Pagerfanta)))
     (vendor/twig/twig/lib/Twig/Environment.php:289)
  at Twig_Environment->render('blog/index.html.twig', array('posts' => object(Pagerfanta)))
     (vendor/symfony/framework-bundle/Controller/ControllerTrait.php:229)
  at Symfony\Bundle\FrameworkBundle\Controller\AbstractController->render('blog/index.html.twig', array('posts' => object(Pagerfanta)))
     (src/Controller/BlogController.php:58)
  at App\Controller\BlogController->index(1, 'html', object(PostRepository))
     (vendor/symfony/http-kernel/HttpKernel.php:150)
  at Symfony\Component\HttpKernel\HttpKernel->handleRaw(object(Request), 1)
     (vendor/symfony/http-kernel/HttpKernel.php:67)
  at Symfony\Component\HttpKernel\HttpKernel->handle(object(Request), 1, true)
     (vendor/symfony/http-kernel/Kernel.php:198)
  at Symfony\Component\HttpKernel\Kernel->handle(object(Request))
     (public/index.php:34)

[3/4] ConnectionException

Doctrine\DBAL\Exception\ConnectionException:
An exception occurred in driver: SQLSTATE[HY000] [14] unable to open database file

  at vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/AbstractSQLiteDriver.php:67
  at Doctrine\DBAL\Driver\AbstractSQLiteDriver->convertException('An exception occurred in driver: SQLSTATE[HY000] [14] unable to open database file', object(PDOException))
     (vendor/doctrine/dbal/lib/Doctrine/DBAL/DBALException.php:169)
  at Doctrine\DBAL\DBALException::wrapException(object(Driver), object(PDOException), 'An exception occurred in driver: SQLSTATE[HY000] [14] unable to open database file')
     (vendor/doctrine/dbal/lib/Doctrine/DBAL/DBALException.php:155)
  at Doctrine\DBAL\DBALException::driverException(object(Driver), object(PDOException))
     (vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOSqlite/Driver.php:45)
  at Doctrine\DBAL\Driver\PDOSqlite\Driver->connect(array('driver' => 'pdo_sqlite', 'charset' => 'utf8mb4', 'url' => 'sqlite:////var/www/html/var/data/blog.sqlite', 'host' => 'localhost', 'port' => null, 'user' => 'root', 'password' => null, 'driverOptions' => array(), 'serverVersion' => '3.15', 'defaultTableOptions' => array(), 'path' => '/var/www/html/var/data/blog.sqlite'), 'root', null, array())
     (vendor/doctrine/dbal/lib/Doctrine/DBAL/Connection.php:356)
  at Doctrine\DBAL\Connection->connect()
     (vendor/doctrine/dbal/lib/Doctrine/DBAL/Connection.php:889)
  at Doctrine\DBAL\Connection->executeQuery('SELECT COUNT(*) AS dctrn_count FROM (SELECT DISTINCT id_0 FROM (SELECT s0_.id AS id_0, s0_.title AS title_1, s0_.slug AS slug_2, s0_.summary AS summary_3, s0_.content AS content_4, s0_.published_at AS published_at_5, s1_.id AS id_6, s1_.full_name AS full_name_7, s1_.username AS username_8, s1_.email AS email_9, s1_.password AS password_10, s1_.roles AS roles_11, s2_.id AS id_12, s2_.name AS name_13 FROM symfony_demo_post s0_ INNER JOIN symfony_demo_user s1_ ON s0_.author_id = s1_.id LEFT JOIN symfony_demo_post_tag s3_ ON s0_.id = s3_.post_id LEFT JOIN symfony_demo_tag s2_ ON s2_.id = s3_.tag_id WHERE s0_.published_at &lt;= ? ORDER BY s0_.published_at DESC, s2_.name ASC) dctrn_result) dctrn_table', array(object(DateTime)), array('datetime'), null)
     (vendor/doctrine/orm/lib/Doctrine/ORM/Query/Exec/SingleSelectExecutor.php:50)
  at Doctrine\ORM\Query\Exec\SingleSelectExecutor->execute(object(Connection), array(object(DateTime)), array('datetime'))
     (vendor/doctrine/orm/lib/Doctrine/ORM/Query.php:334)
  at Doctrine\ORM\Query->_doExecute()
     (vendor/doctrine/orm/lib/Doctrine/ORM/AbstractQuery.php:967)
  at Doctrine\ORM\AbstractQuery->executeIgnoreQueryCache(null, 3)
     (vendor/doctrine/orm/lib/Doctrine/ORM/AbstractQuery.php:922)
  at Doctrine\ORM\AbstractQuery->execute(null, 3)
     (vendor/doctrine/orm/lib/Doctrine/ORM/AbstractQuery.php:750)
  at Doctrine\ORM\AbstractQuery->getScalarResult()
     (vendor/doctrine/orm/lib/Doctrine/ORM/Tools/Pagination/Paginator.php:124)
  at Doctrine\ORM\Tools\Pagination\Paginator->count()
  at count(object(Paginator))
     (vendor/pagerfanta/pagerfanta/src/Pagerfanta/Adapter/DoctrineORMAdapter.php:66)
  at Pagerfanta\Adapter\DoctrineORMAdapter->getNbResults()
     (vendor/pagerfanta/pagerfanta/src/Pagerfanta/Pagerfanta.php:361)
  at Pagerfanta\Pagerfanta->getNbResults()
     (vendor/pagerfanta/pagerfanta/src/Pagerfanta/Pagerfanta.php:467)
  at Pagerfanta\Pagerfanta->count()
     (var/cache/dev/twig/50/50f4593efdd0d38bc9395f5e57977575994863c979ee646f6765316aef8e7130.php:84)
  at __TwigTemplate_271bd68b345e0cf5c130849147384ead603f51447752d1191e62d7f801270e9c->block_main(array('posts' => object(Pagerfanta), 'app' => object(AppVariable), '_parent' => array('posts' => object(Pagerfanta), 'app' => object(AppVariable)), '_seq' => object(Pagerfanta), '_iterated' => false, 'loop' => array('parent' => array('posts' => object(Pagerfanta), 'app' => object(AppVariable)), 'index0' => 0, 'index' => 1, 'first' => true)), array('title' => array(object(__TwigTemplate_b8f5e54054d424ab780b2a4f72237dccf047fbffbfcf51c37e502bd027815a64), 'block_title'), 'stylesheets' => array(object(__TwigTemplate_b8f5e54054d424ab780b2a4f72237dccf047fbffbfcf51c37e502bd027815a64), 'block_stylesheets'), 'body_id' => array(object(__TwigTemplate_271bd68b345e0cf5c130849147384ead603f51447752d1191e62d7f801270e9c), 'block_body_id'), 'header' => array(object(__TwigTemplate_b8f5e54054d424ab780b2a4f72237dccf047fbffbfcf51c37e502bd027815a64), 'block_header'), 'header_navigation_links' => array(object(__TwigTemplate_b8f5e54054d424ab780b2a4f72237dccf047fbffbfcf51c37e502bd027815a64), 'block_header_navigation_links'), 'body' => array(object(__TwigTemplate_b8f5e54054d424ab780b2a4f72237dccf047fbffbfcf51c37e502bd027815a64), 'block_body'), 'main' => array(object(__TwigTemplate_271bd68b345e0cf5c130849147384ead603f51447752d1191e62d7f801270e9c), 'block_main'), 'sidebar' => array(object(__TwigTemplate_271bd68b345e0cf5c130849147384ead603f51447752d1191e62d7f801270e9c), 'block_sidebar'), 'footer' => array(object(__TwigTemplate_b8f5e54054d424ab780b2a4f72237dccf047fbffbfcf51c37e502bd027815a64), 'block_footer'), 'javascripts' => array(object(__TwigTemplate_b8f5e54054d424ab780b2a4f72237dccf047fbffbfcf51c37e502bd027815a64), 'block_javascripts')))
     (vendor/twig/twig/lib/Twig/Template.php:189)
  at Twig_Template->displayBlock('main', array('posts' => object(Pagerfanta), 'app' => object(AppVariable)), array('title' => array(object(__TwigTemplate_b8f5e54054d424ab780b2a4f72237dccf047fbffbfcf51c37e502bd027815a64), 'block_title'), 'stylesheets' => array(object(__TwigTemplate_b8f5e54054d424ab780b2a4f72237dccf047fbffbfcf51c37e502bd027815a64), 'block_stylesheets'), 'body_id' => array(object(__TwigTemplate_271bd68b345e0cf5c130849147384ead603f51447752d1191e62d7f801270e9c), 'block_body_id'), 'header' => array(object(__TwigTemplate_b8f5e54054d424ab780b2a4f72237dccf047fbffbfcf51c37e502bd027815a64), 'block_header'), 'header_navigation_links' => array(object(__TwigTemplate_b8f5e54054d424ab780b2a4f72237dccf047fbffbfcf51c37e502bd027815a64), 'block_header_navigation_links'), 'body' => array(object(__TwigTemplate_b8f5e54054d424ab780b2a4f72237dccf047fbffbfcf51c37e502bd027815a64), 'block_body'), 'main' => array(object(__TwigTemplate_271bd68b345e0cf5c130849147384ead603f51447752d1191e62d7f801270e9c), 'block_main'), 'sidebar' => array(object(__TwigTemplate_271bd68b345e0cf5c130849147384ead603f51447752d1191e62d7f801270e9c), 'block_sidebar'), 'footer' => array(object(__TwigTemplate_b8f5e54054d424ab780b2a4f72237dccf047fbffbfcf51c37e502bd027815a64), 'block_footer'), 'javascripts' => array(object(__TwigTemplate_b8f5e54054d424ab780b2a4f72237dccf047fbffbfcf51c37e502bd027815a64), 'block_javascripts')))
     (var/cache/dev/twig/08/08e92ec678fa7aed2a82ef452737417594d4ed5400e0af84f3d9ef343a4a62d7.php:354)
  at __TwigTemplate_b8f5e54054d424ab780b2a4f72237dccf047fbffbfcf51c37e502bd027815a64->block_body(array('posts' => object(Pagerfanta), 'app' => object(AppVariable)), array('title' => array(object(__TwigTemplate_b8f5e54054d424ab780b2a4f72237dccf047fbffbfcf51c37e502bd027815a64), 'block_title'), 'stylesheets' => array(object(__TwigTemplate_b8f5e54054d424ab780b2a4f72237dccf047fbffbfcf51c37e502bd027815a64), 'block_stylesheets'), 'body_id' => array(object(__TwigTemplate_271bd68b345e0cf5c130849147384ead603f51447752d1191e62d7f801270e9c), 'block_body_id'), 'header' => array(object(__TwigTemplate_b8f5e54054d424ab780b2a4f72237dccf047fbffbfcf51c37e502bd027815a64), 'block_header'), 'header_navigation_links' => array(object(__TwigTemplate_b8f5e54054d424ab780b2a4f72237dccf047fbffbfcf51c37e502bd027815a64), 'block_header_navigation_links'), 'body' => array(object(__TwigTemplate_b8f5e54054d424ab780b2a4f72237dccf047fbffbfcf51c37e502bd027815a64), 'block_body'), 'main' => array(object(__TwigTemplate_271bd68b345e0cf5c130849147384ead603f51447752d1191e62d7f801270e9c), 'block_main'), 'sidebar' => array(object(__TwigTemplate_271bd68b345e0cf5c130849147384ead603f51447752d1191e62d7f801270e9c), 'block_sidebar'), 'footer' => array(object(__TwigTemplate_b8f5e54054d424ab780b2a4f72237dccf047fbffbfcf51c37e502bd027815a64), 'block_footer'), 'javascripts' => array(object(__TwigTemplate_b8f5e54054d424ab780b2a4f72237dccf047fbffbfcf51c37e502bd027815a64), 'block_javascripts')))
     (vendor/twig/twig/lib/Twig/Template.php:189)
  at Twig_Template->displayBlock('body', array('posts' => object(Pagerfanta), 'app' => object(AppVariable)), array('title' => array(object(__TwigTemplate_b8f5e54054d424ab780b2a4f72237dccf047fbffbfcf51c37e502bd027815a64), 'block_title'), 'stylesheets' => array(object(__TwigTemplate_b8f5e54054d424ab780b2a4f72237dccf047fbffbfcf51c37e502bd027815a64), 'block_stylesheets'), 'body_id' => array(object(__TwigTemplate_271bd68b345e0cf5c130849147384ead603f51447752d1191e62d7f801270e9c), 'block_body_id'), 'header' => array(object(__TwigTemplate_b8f5e54054d424ab780b2a4f72237dccf047fbffbfcf51c37e502bd027815a64), 'block_header'), 'header_navigation_links' => array(object(__TwigTemplate_b8f5e54054d424ab780b2a4f72237dccf047fbffbfcf51c37e502bd027815a64), 'block_header_navigation_links'), 'body' => array(object(__TwigTemplate_b8f5e54054d424ab780b2a4f72237dccf047fbffbfcf51c37e502bd027815a64), 'block_body'), 'main' => array(object(__TwigTemplate_271bd68b345e0cf5c130849147384ead603f51447752d1191e62d7f801270e9c), 'block_main'), 'sidebar' => array(object(__TwigTemplate_271bd68b345e0cf5c130849147384ead603f51447752d1191e62d7f801270e9c), 'block_sidebar'), 'footer' => array(object(__TwigTemplate_b8f5e54054d424ab780b2a4f72237dccf047fbffbfcf51c37e502bd027815a64), 'block_footer'), 'javascripts' => array(object(__TwigTemplate_b8f5e54054d424ab780b2a4f72237dccf047fbffbfcf51c37e502bd027815a64), 'block_javascripts')))
     (var/cache/dev/twig/08/08e92ec678fa7aed2a82ef452737417594d4ed5400e0af84f3d9ef343a4a62d7.php:81)
  at __TwigTemplate_b8f5e54054d424ab780b2a4f72237dccf047fbffbfcf51c37e502bd027815a64->doDisplay(array('posts' => object(Pagerfanta), 'app' => object(AppVariable)), array('title' => array(object(__TwigTemplate_b8f5e54054d424ab780b2a4f72237dccf047fbffbfcf51c37e502bd027815a64), 'block_title'), 'stylesheets' => array(object(__TwigTemplate_b8f5e54054d424ab780b2a4f72237dccf047fbffbfcf51c37e502bd027815a64), 'block_stylesheets'), 'body_id' => array(object(__TwigTemplate_271bd68b345e0cf5c130849147384ead603f51447752d1191e62d7f801270e9c), 'block_body_id'), 'header' => array(object(__TwigTemplate_b8f5e54054d424ab780b2a4f72237dccf047fbffbfcf51c37e502bd027815a64), 'block_header'), 'header_navigation_links' => array(object(__TwigTemplate_b8f5e54054d424ab780b2a4f72237dccf047fbffbfcf51c37e502bd027815a64), 'block_header_navigation_links'), 'body' => array(object(__TwigTemplate_b8f5e54054d424ab780b2a4f72237dccf047fbffbfcf51c37e502bd027815a64), 'block_body'), 'main' => array(object(__TwigTemplate_271bd68b345e0cf5c130849147384ead603f51447752d1191e62d7f801270e9c), 'block_main'), 'sidebar' => array(object(__TwigTemplate_271bd68b345e0cf5c130849147384ead603f51447752d1191e62d7f801270e9c), 'block_sidebar'), 'footer' => array(object(__TwigTemplate_b8f5e54054d424ab780b2a4f72237dccf047fbffbfcf51c37e502bd027815a64), 'block_footer'), 'javascripts' => array(object(__TwigTemplate_b8f5e54054d424ab780b2a4f72237dccf047fbffbfcf51c37e502bd027815a64), 'block_javascripts')))
     (vendor/twig/twig/lib/Twig/Template.php:386)
  at Twig_Template->displayWithErrorHandling(array('posts' => object(Pagerfanta), 'app' => object(AppVariable)), array('title' => array(object(__TwigTemplate_b8f5e54054d424ab780b2a4f72237dccf047fbffbfcf51c37e502bd027815a64), 'block_title'), 'stylesheets' => array(object(__TwigTemplate_b8f5e54054d424ab780b2a4f72237dccf047fbffbfcf51c37e502bd027815a64), 'block_stylesheets'), 'body_id' => array(object(__TwigTemplate_271bd68b345e0cf5c130849147384ead603f51447752d1191e62d7f801270e9c), 'block_body_id'), 'header' => array(object(__TwigTemplate_b8f5e54054d424ab780b2a4f72237dccf047fbffbfcf51c37e502bd027815a64), 'block_header'), 'header_navigation_links' => array(object(__TwigTemplate_b8f5e54054d424ab780b2a4f72237dccf047fbffbfcf51c37e502bd027815a64), 'block_header_navigation_links'), 'body' => array(object(__TwigTemplate_b8f5e54054d424ab780b2a4f72237dccf047fbffbfcf51c37e502bd027815a64), 'block_body'), 'main' => array(object(__TwigTemplate_271bd68b345e0cf5c130849147384ead603f51447752d1191e62d7f801270e9c), 'block_main'), 'sidebar' => array(object(__TwigTemplate_271bd68b345e0cf5c130849147384ead603f51447752d1191e62d7f801270e9c), 'block_sidebar'), 'footer' => array(object(__TwigTemplate_b8f5e54054d424ab780b2a4f72237dccf047fbffbfcf51c37e502bd027815a64), 'block_footer'), 'javascripts' => array(object(__TwigTemplate_b8f5e54054d424ab780b2a4f72237dccf047fbffbfcf51c37e502bd027815a64), 'block_javascripts')))
     (vendor/twig/twig/lib/Twig/Template.php:363)
  at Twig_Template->display(array('posts' => object(Pagerfanta), 'app' => object(AppVariable)), array('body_id' => array(object(__TwigTemplate_271bd68b345e0cf5c130849147384ead603f51447752d1191e62d7f801270e9c), 'block_body_id'), 'main' => array(object(__TwigTemplate_271bd68b345e0cf5c130849147384ead603f51447752d1191e62d7f801270e9c), 'block_main'), 'sidebar' => array(object(__TwigTemplate_271bd68b345e0cf5c130849147384ead603f51447752d1191e62d7f801270e9c), 'block_sidebar')))
     (var/cache/dev/twig/50/50f4593efdd0d38bc9395f5e57977575994863c979ee646f6765316aef8e7130.php:36)
  at __TwigTemplate_271bd68b345e0cf5c130849147384ead603f51447752d1191e62d7f801270e9c->doDisplay(array('posts' => object(Pagerfanta), 'app' => object(AppVariable)), array('body_id' => array(object(__TwigTemplate_271bd68b345e0cf5c130849147384ead603f51447752d1191e62d7f801270e9c), 'block_body_id'), 'main' => array(object(__TwigTemplate_271bd68b345e0cf5c130849147384ead603f51447752d1191e62d7f801270e9c), 'block_main'), 'sidebar' => array(object(__TwigTemplate_271bd68b345e0cf5c130849147384ead603f51447752d1191e62d7f801270e9c), 'block_sidebar')))
     (vendor/twig/twig/lib/Twig/Template.php:386)
  at Twig_Template->displayWithErrorHandling(array('posts' => object(Pagerfanta), 'app' => object(AppVariable)), array('body_id' => array(object(__TwigTemplate_271bd68b345e0cf5c130849147384ead603f51447752d1191e62d7f801270e9c), 'block_body_id'), 'main' => array(object(__TwigTemplate_271bd68b345e0cf5c130849147384ead603f51447752d1191e62d7f801270e9c), 'block_main'), 'sidebar' => array(object(__TwigTemplate_271bd68b345e0cf5c130849147384ead603f51447752d1191e62d7f801270e9c), 'block_sidebar')))
     (vendor/twig/twig/lib/Twig/Template.php:363)
  at Twig_Template->display(array('posts' => object(Pagerfanta)))
     (vendor/twig/twig/lib/Twig/Template.php:371)
  at Twig_Template->render(array('posts' => object(Pagerfanta)))
     (vendor/twig/twig/lib/Twig/Environment.php:289)
  at Twig_Environment->render('blog/index.html.twig', array('posts' => object(Pagerfanta)))
     (vendor/symfony/framework-bundle/Controller/ControllerTrait.php:229)
  at Symfony\Bundle\FrameworkBundle\Controller\AbstractController->render('blog/index.html.twig', array('posts' => object(Pagerfanta)))
     (src/Controller/BlogController.php:58)
  at App\Controller\BlogController->index(1, 'html', object(PostRepository))
     (vendor/symfony/http-kernel/HttpKernel.php:150)
  at Symfony\Component\HttpKernel\HttpKernel->handleRaw(object(Request), 1)
     (vendor/symfony/http-kernel/HttpKernel.php:67)
  at Symfony\Component\HttpKernel\HttpKernel->handle(object(Request), 1, true)
     (vendor/symfony/http-kernel/Kernel.php:198)
  at Symfony\Component\HttpKernel\Kernel->handle(object(Request))
     (public/index.php:34)

[2/4] PDOException

Doctrine\DBAL\Driver\PDOException:
SQLSTATE[HY000] [14] unable to open database file

  at vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOConnection.php:31
  at Doctrine\DBAL\Driver\PDOConnection->__construct('sqlite:/var/www/html/var/data/blog.sqlite', 'root', null, array())
     (vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOSqlite/Driver.php:42)
  at Doctrine\DBAL\Driver\PDOSqlite\Driver->connect(array('driver' => 'pdo_sqlite', 'charset' => 'utf8mb4', 'url' => 'sqlite:////var/www/html/var/data/blog.sqlite', 'host' => 'localhost', 'port' => null, 'user' => 'root', 'password' => null, 'driverOptions' => array(), 'serverVersion' => '3.15', 'defaultTableOptions' => array(), 'path' => '/var/www/html/var/data/blog.sqlite'), 'root', null, array())
     (vendor/doctrine/dbal/lib/Doctrine/DBAL/Connection.php:356)
  at Doctrine\DBAL\Connection->connect()
     (vendor/doctrine/dbal/lib/Doctrine/DBAL/Connection.php:889)
  at Doctrine\DBAL\Connection->executeQuery('SELECT COUNT(*) AS dctrn_count FROM (SELECT DISTINCT id_0 FROM (SELECT s0_.id AS id_0, s0_.title AS title_1, s0_.slug AS slug_2, s0_.summary AS summary_3, s0_.content AS content_4, s0_.published_at AS published_at_5, s1_.id AS id_6, s1_.full_name AS full_name_7, s1_.username AS username_8, s1_.email AS email_9, s1_.password AS password_10, s1_.roles AS roles_11, s2_.id AS id_12, s2_.name AS name_13 FROM symfony_demo_post s0_ INNER JOIN symfony_demo_user s1_ ON s0_.author_id = s1_.id LEFT JOIN symfony_demo_post_tag s3_ ON s0_.id = s3_.post_id LEFT JOIN symfony_demo_tag s2_ ON s2_.id = s3_.tag_id WHERE s0_.published_at &lt;= ? ORDER BY s0_.published_at DESC, s2_.name ASC) dctrn_result) dctrn_table', array(object(DateTime)), array('datetime'), null)
     (vendor/doctrine/orm/lib/Doctrine/ORM/Query/Exec/SingleSelectExecutor.php:50)
  at Doctrine\ORM\Query\Exec\SingleSelectExecutor->execute(object(Connection), array(object(DateTime)), array('datetime'))
     (vendor/doctrine/orm/lib/Doctrine/ORM/Query.php:334)
  at Doctrine\ORM\Query->_doExecute()
     (vendor/doctrine/orm/lib/Doctrine/ORM/AbstractQuery.php:967)
  at Doctrine\ORM\AbstractQuery->executeIgnoreQueryCache(null, 3)
     (vendor/doctrine/orm/lib/Doctrine/ORM/AbstractQuery.php:922)
  at Doctrine\ORM\AbstractQuery->execute(null, 3)
     (vendor/doctrine/orm/lib/Doctrine/ORM/AbstractQuery.php:750)
  at Doctrine\ORM\AbstractQuery->getScalarResult()
     (vendor/doctrine/orm/lib/Doctrine/ORM/Tools/Pagination/Paginator.php:124)
  at Doctrine\ORM\Tools\Pagination\Paginator->count()
  at count(object(Paginator))
     (vendor/pagerfanta/pagerfanta/src/Pagerfanta/Adapter/DoctrineORMAdapter.php:66)
  at Pagerfanta\Adapter\DoctrineORMAdapter->getNbResults()
     (vendor/pagerfanta/pagerfanta/src/Pagerfanta/Pagerfanta.php:361)
  at Pagerfanta\Pagerfanta->getNbResults()
     (vendor/pagerfanta/pagerfanta/src/Pagerfanta/Pagerfanta.php:467)
  at Pagerfanta\Pagerfanta->count()
     (var/cache/dev/twig/50/50f4593efdd0d38bc9395f5e57977575994863c979ee646f6765316aef8e7130.php:84)
  at __TwigTemplate_271bd68b345e0cf5c130849147384ead603f51447752d1191e62d7f801270e9c->block_main(array('posts' => object(Pagerfanta), 'app' => object(AppVariable), '_parent' => array('posts' => object(Pagerfanta), 'app' => object(AppVariable)), '_seq' => object(Pagerfanta), '_iterated' => false, 'loop' => array('parent' => array('posts' => object(Pagerfanta), 'app' => object(AppVariable)), 'index0' => 0, 'index' => 1, 'first' => true)), array('title' => array(object(__TwigTemplate_b8f5e54054d424ab780b2a4f72237dccf047fbffbfcf51c37e502bd027815a64), 'block_title'), 'stylesheets' => array(object(__TwigTemplate_b8f5e54054d424ab780b2a4f72237dccf047fbffbfcf51c37e502bd027815a64), 'block_stylesheets'), 'body_id' => array(object(__TwigTemplate_271bd68b345e0cf5c130849147384ead603f51447752d1191e62d7f801270e9c), 'block_body_id'), 'header' => array(object(__TwigTemplate_b8f5e54054d424ab780b2a4f72237dccf047fbffbfcf51c37e502bd027815a64), 'block_header'), 'header_navigation_links' => array(object(__TwigTemplate_b8f5e54054d424ab780b2a4f72237dccf047fbffbfcf51c37e502bd027815a64), 'block_header_navigation_links'), 'body' => array(object(__TwigTemplate_b8f5e54054d424ab780b2a4f72237dccf047fbffbfcf51c37e502bd027815a64), 'block_body'), 'main' => array(object(__TwigTemplate_271bd68b345e0cf5c130849147384ead603f51447752d1191e62d7f801270e9c), 'block_main'), 'sidebar' => array(object(__TwigTemplate_271bd68b345e0cf5c130849147384ead603f51447752d1191e62d7f801270e9c), 'block_sidebar'), 'footer' => array(object(__TwigTemplate_b8f5e54054d424ab780b2a4f72237dccf047fbffbfcf51c37e502bd027815a64), 'block_footer'), 'javascripts' => array(object(__TwigTemplate_b8f5e54054d424ab780b2a4f72237dccf047fbffbfcf51c37e502bd027815a64), 'block_javascripts')))
     (vendor/twig/twig/lib/Twig/Template.php:189)
  at Twig_Template->displayBlock('main', array('posts' => object(Pagerfanta), 'app' => object(AppVariable)), array('title' => array(object(__TwigTemplate_b8f5e54054d424ab780b2a4f72237dccf047fbffbfcf51c37e502bd027815a64), 'block_title'), 'stylesheets' => array(object(__TwigTemplate_b8f5e54054d424ab780b2a4f72237dccf047fbffbfcf51c37e502bd027815a64), 'block_stylesheets'), 'body_id' => array(object(__TwigTemplate_271bd68b345e0cf5c130849147384ead603f51447752d1191e62d7f801270e9c), 'block_body_id'), 'header' => array(object(__TwigTemplate_b8f5e54054d424ab780b2a4f72237dccf047fbffbfcf51c37e502bd027815a64), 'block_header'), 'header_navigation_links' => array(object(__TwigTemplate_b8f5e54054d424ab780b2a4f72237dccf047fbffbfcf51c37e502bd027815a64), 'block_header_navigation_links'), 'body' => array(object(__TwigTemplate_b8f5e54054d424ab780b2a4f72237dccf047fbffbfcf51c37e502bd027815a64), 'block_body'), 'main' => array(object(__TwigTemplate_271bd68b345e0cf5c130849147384ead603f51447752d1191e62d7f801270e9c), 'block_main'), 'sidebar' => array(object(__TwigTemplate_271bd68b345e0cf5c130849147384ead603f51447752d1191e62d7f801270e9c), 'block_sidebar'), 'footer' => array(object(__TwigTemplate_b8f5e54054d424ab780b2a4f72237dccf047fbffbfcf51c37e502bd027815a64), 'block_footer'), 'javascripts' => array(object(__TwigTemplate_b8f5e54054d424ab780b2a4f72237dccf047fbffbfcf51c37e502bd027815a64), 'block_javascripts')))
     (var/cache/dev/twig/08/08e92ec678fa7aed2a82ef452737417594d4ed5400e0af84f3d9ef343a4a62d7.php:354)
  at __TwigTemplate_b8f5e54054d424ab780b2a4f72237dccf047fbffbfcf51c37e502bd027815a64->block_body(array('posts' => object(Pagerfanta), 'app' => object(AppVariable)), array('title' => array(object(__TwigTemplate_b8f5e54054d424ab780b2a4f72237dccf047fbffbfcf51c37e502bd027815a64), 'block_title'), 'stylesheets' => array(object(__TwigTemplate_b8f5e54054d424ab780b2a4f72237dccf047fbffbfcf51c37e502bd027815a64), 'block_stylesheets'), 'body_id' => array(object(__TwigTemplate_271bd68b345e0cf5c130849147384ead603f51447752d1191e62d7f801270e9c), 'block_body_id'), 'header' => array(object(__TwigTemplate_b8f5e54054d424ab780b2a4f72237dccf047fbffbfcf51c37e502bd027815a64), 'block_header'), 'header_navigation_links' => array(object(__TwigTemplate_b8f5e54054d424ab780b2a4f72237dccf047fbffbfcf51c37e502bd027815a64), 'block_header_navigation_links'), 'body' => array(object(__TwigTemplate_b8f5e54054d424ab780b2a4f72237dccf047fbffbfcf51c37e502bd027815a64), 'block_body'), 'main' => array(object(__TwigTemplate_271bd68b345e0cf5c130849147384ead603f51447752d1191e62d7f801270e9c), 'block_main'), 'sidebar' => array(object(__TwigTemplate_271bd68b345e0cf5c130849147384ead603f51447752d1191e62d7f801270e9c), 'block_sidebar'), 'footer' => array(object(__TwigTemplate_b8f5e54054d424ab780b2a4f72237dccf047fbffbfcf51c37e502bd027815a64), 'block_footer'), 'javascripts' => array(object(__TwigTemplate_b8f5e54054d424ab780b2a4f72237dccf047fbffbfcf51c37e502bd027815a64), 'block_javascripts')))
     (vendor/twig/twig/lib/Twig/Template.php:189)
  at Twig_Template->displayBlock('body', array('posts' => object(Pagerfanta), 'app' => object(AppVariable)), array('title' => array(object(__TwigTemplate_b8f5e54054d424ab780b2a4f72237dccf047fbffbfcf51c37e502bd027815a64), 'block_title'), 'stylesheets' => array(object(__TwigTemplate_b8f5e54054d424ab780b2a4f72237dccf047fbffbfcf51c37e502bd027815a64), 'block_stylesheets'), 'body_id' => array(object(__TwigTemplate_271bd68b345e0cf5c130849147384ead603f51447752d1191e62d7f801270e9c), 'block_body_id'), 'header' => array(object(__TwigTemplate_b8f5e54054d424ab780b2a4f72237dccf047fbffbfcf51c37e502bd027815a64), 'block_header'), 'header_navigation_links' => array(object(__TwigTemplate_b8f5e54054d424ab780b2a4f72237dccf047fbffbfcf51c37e502bd027815a64), 'block_header_navigation_links'), 'body' => array(object(__TwigTemplate_b8f5e54054d424ab780b2a4f72237dccf047fbffbfcf51c37e502bd027815a64), 'block_body'), 'main' => array(object(__TwigTemplate_271bd68b345e0cf5c130849147384ead603f51447752d1191e62d7f801270e9c), 'block_main'), 'sidebar' => array(object(__TwigTemplate_271bd68b345e0cf5c130849147384ead603f51447752d1191e62d7f801270e9c), 'block_sidebar'), 'footer' => array(object(__TwigTemplate_b8f5e54054d424ab780b2a4f72237dccf047fbffbfcf51c37e502bd027815a64), 'block_footer'), 'javascripts' => array(object(__TwigTemplate_b8f5e54054d424ab780b2a4f72237dccf047fbffbfcf51c37e502bd027815a64), 'block_javascripts')))
     (var/cache/dev/twig/08/08e92ec678fa7aed2a82ef452737417594d4ed5400e0af84f3d9ef343a4a62d7.php:81)
  at __TwigTemplate_b8f5e54054d424ab780b2a4f72237dccf047fbffbfcf51c37e502bd027815a64->doDisplay(array('posts' => object(Pagerfanta), 'app' => object(AppVariable)), array('title' => array(object(__TwigTemplate_b8f5e54054d424ab780b2a4f72237dccf047fbffbfcf51c37e502bd027815a64), 'block_title'), 'stylesheets' => array(object(__TwigTemplate_b8f5e54054d424ab780b2a4f72237dccf047fbffbfcf51c37e502bd027815a64), 'block_stylesheets'), 'body_id' => array(object(__TwigTemplate_271bd68b345e0cf5c130849147384ead603f51447752d1191e62d7f801270e9c), 'block_body_id'), 'header' => array(object(__TwigTemplate_b8f5e54054d424ab780b2a4f72237dccf047fbffbfcf51c37e502bd027815a64), 'block_header'), 'header_navigation_links' => array(object(__TwigTemplate_b8f5e54054d424ab780b2a4f72237dccf047fbffbfcf51c37e502bd027815a64), 'block_header_navigation_links'), 'body' => array(object(__TwigTemplate_b8f5e54054d424ab780b2a4f72237dccf047fbffbfcf51c37e502bd027815a64), 'block_body'), 'main' => array(object(__TwigTemplate_271bd68b345e0cf5c130849147384ead603f51447752d1191e62d7f801270e9c), 'block_main'), 'sidebar' => array(object(__TwigTemplate_271bd68b345e0cf5c130849147384ead603f51447752d1191e62d7f801270e9c), 'block_sidebar'), 'footer' => array(object(__TwigTemplate_b8f5e54054d424ab780b2a4f72237dccf047fbffbfcf51c37e502bd027815a64), 'block_footer'), 'javascripts' => array(object(__TwigTemplate_b8f5e54054d424ab780b2a4f72237dccf047fbffbfcf51c37e502bd027815a64), 'block_javascripts')))
     (vendor/twig/twig/lib/Twig/Template.php:386)
  at Twig_Template->displayWithErrorHandling(array('posts' => object(Pagerfanta), 'app' => object(AppVariable)), array('title' => array(object(__TwigTemplate_b8f5e54054d424ab780b2a4f72237dccf047fbffbfcf51c37e502bd027815a64), 'block_title'), 'stylesheets' => array(object(__TwigTemplate_b8f5e54054d424ab780b2a4f72237dccf047fbffbfcf51c37e502bd027815a64), 'block_stylesheets'), 'body_id' => array(object(__TwigTemplate_271bd68b345e0cf5c130849147384ead603f51447752d1191e62d7f801270e9c), 'block_body_id'), 'header' => array(object(__TwigTemplate_b8f5e54054d424ab780b2a4f72237dccf047fbffbfcf51c37e502bd027815a64), 'block_header'), 'header_navigation_links' => array(object(__TwigTemplate_b8f5e54054d424ab780b2a4f72237dccf047fbffbfcf51c37e502bd027815a64), 'block_header_navigation_links'), 'body' => array(object(__TwigTemplate_b8f5e54054d424ab780b2a4f72237dccf047fbffbfcf51c37e502bd027815a64), 'block_body'), 'main' => array(object(__TwigTemplate_271bd68b345e0cf5c130849147384ead603f51447752d1191e62d7f801270e9c), 'block_main'), 'sidebar' => array(object(__TwigTemplate_271bd68b345e0cf5c130849147384ead603f51447752d1191e62d7f801270e9c), 'block_sidebar'), 'footer' => array(object(__TwigTemplate_b8f5e54054d424ab780b2a4f72237dccf047fbffbfcf51c37e502bd027815a64), 'block_footer'), 'javascripts' => array(object(__TwigTemplate_b8f5e54054d424ab780b2a4f72237dccf047fbffbfcf51c37e502bd027815a64), 'block_javascripts')))
     (vendor/twig/twig/lib/Twig/Template.php:363)
  at Twig_Template->display(array('posts' => object(Pagerfanta), 'app' => object(AppVariable)), array('body_id' => array(object(__TwigTemplate_271bd68b345e0cf5c130849147384ead603f51447752d1191e62d7f801270e9c), 'block_body_id'), 'main' => array(object(__TwigTemplate_271bd68b345e0cf5c130849147384ead603f51447752d1191e62d7f801270e9c), 'block_main'), 'sidebar' => array(object(__TwigTemplate_271bd68b345e0cf5c130849147384ead603f51447752d1191e62d7f801270e9c), 'block_sidebar')))
     (var/cache/dev/twig/50/50f4593efdd0d38bc9395f5e57977575994863c979ee646f6765316aef8e7130.php:36)
  at __TwigTemplate_271bd68b345e0cf5c130849147384ead603f51447752d1191e62d7f801270e9c->doDisplay(array('posts' => object(Pagerfanta), 'app' => object(AppVariable)), array('body_id' => array(object(__TwigTemplate_271bd68b345e0cf5c130849147384ead603f51447752d1191e62d7f801270e9c), 'block_body_id'), 'main' => array(object(__TwigTemplate_271bd68b345e0cf5c130849147384ead603f51447752d1191e62d7f801270e9c), 'block_main'), 'sidebar' => array(object(__TwigTemplate_271bd68b345e0cf5c130849147384ead603f51447752d1191e62d7f801270e9c), 'block_sidebar')))
     (vendor/twig/twig/lib/Twig/Template.php:386)
  at Twig_Template->displayWithErrorHandling(array('posts' => object(Pagerfanta), 'app' => object(AppVariable)), array('body_id' => array(object(__TwigTemplate_271bd68b345e0cf5c130849147384ead603f51447752d1191e62d7f801270e9c), 'block_body_id'), 'main' => array(object(__TwigTemplate_271bd68b345e0cf5c130849147384ead603f51447752d1191e62d7f801270e9c), 'block_main'), 'sidebar' => array(object(__TwigTemplate_271bd68b345e0cf5c130849147384ead603f51447752d1191e62d7f801270e9c), 'block_sidebar')))
     (vendor/twig/twig/lib/Twig/Template.php:363)
  at Twig_Template->display(array('posts' => object(Pagerfanta)))
     (vendor/twig/twig/lib/Twig/Template.php:371)
  at Twig_Template->render(array('posts' => object(Pagerfanta)))
     (vendor/twig/twig/lib/Twig/Environment.php:289)
  at Twig_Environment->render('blog/index.html.twig', array('posts' => object(Pagerfanta)))
     (vendor/symfony/framework-bundle/Controller/ControllerTrait.php:229)
  at Symfony\Bundle\FrameworkBundle\Controller\AbstractController->render('blog/index.html.twig', array('posts' => object(Pagerfanta)))
     (src/Controller/BlogController.php:58)
  at App\Controller\BlogController->index(1, 'html', object(PostRepository))
     (vendor/symfony/http-kernel/HttpKernel.php:150)
  at Symfony\Component\HttpKernel\HttpKernel->handleRaw(object(Request), 1)
     (vendor/symfony/http-kernel/HttpKernel.php:67)
  at Symfony\Component\HttpKernel\HttpKernel->handle(object(Request), 1, true)
     (vendor/symfony/http-kernel/Kernel.php:198)
  at Symfony\Component\HttpKernel\Kernel->handle(object(Request))
     (public/index.php:34)

[1/4] PDOException

PDOException:
SQLSTATE[HY000] [14] unable to open database file

  at vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOConnection.php:27
  at PDO->__construct('sqlite:/var/www/html/var/data/blog.sqlite', 'root', null, array())
     (vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOConnection.php:27)
  at Doctrine\DBAL\Driver\PDOConnection->__construct('sqlite:/var/www/html/var/data/blog.sqlite', 'root', null, array())
     (vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOSqlite/Driver.php:42)
  at Doctrine\DBAL\Driver\PDOSqlite\Driver->connect(array('driver' => 'pdo_sqlite', 'charset' => 'utf8mb4', 'url' => 'sqlite:////var/www/html/var/data/blog.sqlite', 'host' => 'localhost', 'port' => null, 'user' => 'root', 'password' => null, 'driverOptions' => array(), 'serverVersion' => '3.15', 'defaultTableOptions' => array(), 'path' => '/var/www/html/var/data/blog.sqlite'), 'root', null, array())
     (vendor/doctrine/dbal/lib/Doctrine/DBAL/Connection.php:356)
  at Doctrine\DBAL\Connection->connect()
     (vendor/doctrine/dbal/lib/Doctrine/DBAL/Connection.php:889)
  at Doctrine\DBAL\Connection->executeQuery('SELECT COUNT(*) AS dctrn_count FROM (SELECT DISTINCT id_0 FROM (SELECT s0_.id AS id_0, s0_.title AS title_1, s0_.slug AS slug_2, s0_.summary AS summary_3, s0_.content AS content_4, s0_.published_at AS published_at_5, s1_.id AS id_6, s1_.full_name AS full_name_7, s1_.username AS username_8, s1_.email AS email_9, s1_.password AS password_10, s1_.roles AS roles_11, s2_.id AS id_12, s2_.name AS name_13 FROM symfony_demo_post s0_ INNER JOIN symfony_demo_user s1_ ON s0_.author_id = s1_.id LEFT JOIN symfony_demo_post_tag s3_ ON s0_.id = s3_.post_id LEFT JOIN symfony_demo_tag s2_ ON s2_.id = s3_.tag_id WHERE s0_.published_at &lt;= ? ORDER BY s0_.published_at DESC, s2_.name ASC) dctrn_result) dctrn_table', array(object(DateTime)), array('datetime'), null)
     (vendor/doctrine/orm/lib/Doctrine/ORM/Query/Exec/SingleSelectExecutor.php:50)
  at Doctrine\ORM\Query\Exec\SingleSelectExecutor->execute(object(Connection), array(object(DateTime)), array('datetime'))
     (vendor/doctrine/orm/lib/Doctrine/ORM/Query.php:334)
  at Doctrine\ORM\Query->_doExecute()
     (vendor/doctrine/orm/lib/Doctrine/ORM/AbstractQuery.php:967)
  at Doctrine\ORM\AbstractQuery->executeIgnoreQueryCache(null, 3)
     (vendor/doctrine/orm/lib/Doctrine/ORM/AbstractQuery.php:922)
  at Doctrine\ORM\AbstractQuery->execute(null, 3)
     (vendor/doctrine/orm/lib/Doctrine/ORM/AbstractQuery.php:750)
  at Doctrine\ORM\AbstractQuery->getScalarResult()
     (vendor/doctrine/orm/lib/Doctrine/ORM/Tools/Pagination/Paginator.php:124)
  at Doctrine\ORM\Tools\Pagination\Paginator->count()
  at count(object(Paginator))
     (vendor/pagerfanta/pagerfanta/src/Pagerfanta/Adapter/DoctrineORMAdapter.php:66)
  at Pagerfanta\Adapter\DoctrineORMAdapter->getNbResults()
     (vendor/pagerfanta/pagerfanta/src/Pagerfanta/Pagerfanta.php:361)
  at Pagerfanta\Pagerfanta->getNbResults()
     (vendor/pagerfanta/pagerfanta/src/Pagerfanta/Pagerfanta.php:467)
  at Pagerfanta\Pagerfanta->count()
     (var/cache/dev/twig/50/50f4593efdd0d38bc9395f5e57977575994863c979ee646f6765316aef8e7130.php:84)
  at __TwigTemplate_271bd68b345e0cf5c130849147384ead603f51447752d1191e62d7f801270e9c->block_main(array('posts' => object(Pagerfanta), 'app' => object(AppVariable), '_parent' => array('posts' => object(Pagerfanta), 'app' => object(AppVariable)), '_seq' => object(Pagerfanta), '_iterated' => false, 'loop' => array('parent' => array('posts' => object(Pagerfanta), 'app' => object(AppVariable)), 'index0' => 0, 'index' => 1, 'first' => true)), array('title' => array(object(__TwigTemplate_b8f5e54054d424ab780b2a4f72237dccf047fbffbfcf51c37e502bd027815a64), 'block_title'), 'stylesheets' => array(object(__TwigTemplate_b8f5e54054d424ab780b2a4f72237dccf047fbffbfcf51c37e502bd027815a64), 'block_stylesheets'), 'body_id' => array(object(__TwigTemplate_271bd68b345e0cf5c130849147384ead603f51447752d1191e62d7f801270e9c), 'block_body_id'), 'header' => array(object(__TwigTemplate_b8f5e54054d424ab780b2a4f72237dccf047fbffbfcf51c37e502bd027815a64), 'block_header'), 'header_navigation_links' => array(object(__TwigTemplate_b8f5e54054d424ab780b2a4f72237dccf047fbffbfcf51c37e502bd027815a64), 'block_header_navigation_links'), 'body' => array(object(__TwigTemplate_b8f5e54054d424ab780b2a4f72237dccf047fbffbfcf51c37e502bd027815a64), 'block_body'), 'main' => array(object(__TwigTemplate_271bd68b345e0cf5c130849147384ead603f51447752d1191e62d7f801270e9c), 'block_main'), 'sidebar' => array(object(__TwigTemplate_271bd68b345e0cf5c130849147384ead603f51447752d1191e62d7f801270e9c), 'block_sidebar'), 'footer' => array(object(__TwigTemplate_b8f5e54054d424ab780b2a4f72237dccf047fbffbfcf51c37e502bd027815a64), 'block_footer'), 'javascripts' => array(object(__TwigTemplate_b8f5e54054d424ab780b2a4f72237dccf047fbffbfcf51c37e502bd027815a64), 'block_javascripts')))
     (vendor/twig/twig/lib/Twig/Template.php:189)
  at Twig_Template->displayBlock('main', array('posts' => object(Pagerfanta), 'app' => object(AppVariable)), array('title' => array(object(__TwigTemplate_b8f5e54054d424ab780b2a4f72237dccf047fbffbfcf51c37e502bd027815a64), 'block_title'), 'stylesheets' => array(object(__TwigTemplate_b8f5e54054d424ab780b2a4f72237dccf047fbffbfcf51c37e502bd027815a64), 'block_stylesheets'), 'body_id' => array(object(__TwigTemplate_271bd68b345e0cf5c130849147384ead603f51447752d1191e62d7f801270e9c), 'block_body_id'), 'header' => array(object(__TwigTemplate_b8f5e54054d424ab780b2a4f72237dccf047fbffbfcf51c37e502bd027815a64), 'block_header'), 'header_navigation_links' => array(object(__TwigTemplate_b8f5e54054d424ab780b2a4f72237dccf047fbffbfcf51c37e502bd027815a64), 'block_header_navigation_links'), 'body' => array(object(__TwigTemplate_b8f5e54054d424ab780b2a4f72237dccf047fbffbfcf51c37e502bd027815a64), 'block_body'), 'main' => array(object(__TwigTemplate_271bd68b345e0cf5c130849147384ead603f51447752d1191e62d7f801270e9c), 'block_main'), 'sidebar' => array(object(__TwigTemplate_271bd68b345e0cf5c130849147384ead603f51447752d1191e62d7f801270e9c), 'block_sidebar'), 'footer' => array(object(__TwigTemplate_b8f5e54054d424ab780b2a4f72237dccf047fbffbfcf51c37e502bd027815a64), 'block_footer'), 'javascripts' => array(object(__TwigTemplate_b8f5e54054d424ab780b2a4f72237dccf047fbffbfcf51c37e502bd027815a64), 'block_javascripts')))
     (var/cache/dev/twig/08/08e92ec678fa7aed2a82ef452737417594d4ed5400e0af84f3d9ef343a4a62d7.php:354)
  at __TwigTemplate_b8f5e54054d424ab780b2a4f72237dccf047fbffbfcf51c37e502bd027815a64->block_body(array('posts' => object(Pagerfanta), 'app' => object(AppVariable)), array('title' => array(object(__TwigTemplate_b8f5e54054d424ab780b2a4f72237dccf047fbffbfcf51c37e502bd027815a64), 'block_title'), 'stylesheets' => array(object(__TwigTemplate_b8f5e54054d424ab780b2a4f72237dccf047fbffbfcf51c37e502bd027815a64), 'block_stylesheets'), 'body_id' => array(object(__TwigTemplate_271bd68b345e0cf5c130849147384ead603f51447752d1191e62d7f801270e9c), 'block_body_id'), 'header' => array(object(__TwigTemplate_b8f5e54054d424ab780b2a4f72237dccf047fbffbfcf51c37e502bd027815a64), 'block_header'), 'header_navigation_links' => array(object(__TwigTemplate_b8f5e54054d424ab780b2a4f72237dccf047fbffbfcf51c37e502bd027815a64), 'block_header_navigation_links'), 'body' => array(object(__TwigTemplate_b8f5e54054d424ab780b2a4f72237dccf047fbffbfcf51c37e502bd027815a64), 'block_body'), 'main' => array(object(__TwigTemplate_271bd68b345e0cf5c130849147384ead603f51447752d1191e62d7f801270e9c), 'block_main'), 'sidebar' => array(object(__TwigTemplate_271bd68b345e0cf5c130849147384ead603f51447752d1191e62d7f801270e9c), 'block_sidebar'), 'footer' => array(object(__TwigTemplate_b8f5e54054d424ab780b2a4f72237dccf047fbffbfcf51c37e502bd027815a64), 'block_footer'), 'javascripts' => array(object(__TwigTemplate_b8f5e54054d424ab780b2a4f72237dccf047fbffbfcf51c37e502bd027815a64), 'block_javascripts')))
     (vendor/twig/twig/lib/Twig/Template.php:189)
  at Twig_Template->displayBlock('body', array('posts' => object(Pagerfanta), 'app' => object(AppVariable)), array('title' => array(object(__TwigTemplate_b8f5e54054d424ab780b2a4f72237dccf047fbffbfcf51c37e502bd027815a64), 'block_title'), 'stylesheets' => array(object(__TwigTemplate_b8f5e54054d424ab780b2a4f72237dccf047fbffbfcf51c37e502bd027815a64), 'block_stylesheets'), 'body_id' => array(object(__TwigTemplate_271bd68b345e0cf5c130849147384ead603f51447752d1191e62d7f801270e9c), 'block_body_id'), 'header' => array(object(__TwigTemplate_b8f5e54054d424ab780b2a4f72237dccf047fbffbfcf51c37e502bd027815a64), 'block_header'), 'header_navigation_links' => array(object(__TwigTemplate_b8f5e54054d424ab780b2a4f72237dccf047fbffbfcf51c37e502bd027815a64), 'block_header_navigation_links'), 'body' => array(object(__TwigTemplate_b8f5e54054d424ab780b2a4f72237dccf047fbffbfcf51c37e502bd027815a64), 'block_body'), 'main' => array(object(__TwigTemplate_271bd68b345e0cf5c130849147384ead603f51447752d1191e62d7f801270e9c), 'block_main'), 'sidebar' => array(object(__TwigTemplate_271bd68b345e0cf5c130849147384ead603f51447752d1191e62d7f801270e9c), 'block_sidebar'), 'footer' => array(object(__TwigTemplate_b8f5e54054d424ab780b2a4f72237dccf047fbffbfcf51c37e502bd027815a64), 'block_footer'), 'javascripts' => array(object(__TwigTemplate_b8f5e54054d424ab780b2a4f72237dccf047fbffbfcf51c37e502bd027815a64), 'block_javascripts')))
     (var/cache/dev/twig/08/08e92ec678fa7aed2a82ef452737417594d4ed5400e0af84f3d9ef343a4a62d7.php:81)
  at __TwigTemplate_b8f5e54054d424ab780b2a4f72237dccf047fbffbfcf51c37e502bd027815a64->doDisplay(array('posts' => object(Pagerfanta), 'app' => object(AppVariable)), array('title' => array(object(__TwigTemplate_b8f5e54054d424ab780b2a4f72237dccf047fbffbfcf51c37e502bd027815a64), 'block_title'), 'stylesheets' => array(object(__TwigTemplate_b8f5e54054d424ab780b2a4f72237dccf047fbffbfcf51c37e502bd027815a64), 'block_stylesheets'), 'body_id' => array(object(__TwigTemplate_271bd68b345e0cf5c130849147384ead603f51447752d1191e62d7f801270e9c), 'block_body_id'), 'header' => array(object(__TwigTemplate_b8f5e54054d424ab780b2a4f72237dccf047fbffbfcf51c37e502bd027815a64), 'block_header'), 'header_navigation_links' => array(object(__TwigTemplate_b8f5e54054d424ab780b2a4f72237dccf047fbffbfcf51c37e502bd027815a64), 'block_header_navigation_links'), 'body' => array(object(__TwigTemplate_b8f5e54054d424ab780b2a4f72237dccf047fbffbfcf51c37e502bd027815a64), 'block_body'), 'main' => array(object(__TwigTemplate_271bd68b345e0cf5c130849147384ead603f51447752d1191e62d7f801270e9c), 'block_main'), 'sidebar' => array(object(__TwigTemplate_271bd68b345e0cf5c130849147384ead603f51447752d1191e62d7f801270e9c), 'block_sidebar'), 'footer' => array(object(__TwigTemplate_b8f5e54054d424ab780b2a4f72237dccf047fbffbfcf51c37e502bd027815a64), 'block_footer'), 'javascripts' => array(object(__TwigTemplate_b8f5e54054d424ab780b2a4f72237dccf047fbffbfcf51c37e502bd027815a64), 'block_javascripts')))
     (vendor/twig/twig/lib/Twig/Template.php:386)
  at Twig_Template->displayWithErrorHandling(array('posts' => object(Pagerfanta), 'app' => object(AppVariable)), array('title' => array(object(__TwigTemplate_b8f5e54054d424ab780b2a4f72237dccf047fbffbfcf51c37e502bd027815a64), 'block_title'), 'stylesheets' => array(object(__TwigTemplate_b8f5e54054d424ab780b2a4f72237dccf047fbffbfcf51c37e502bd027815a64), 'block_stylesheets'), 'body_id' => array(object(__TwigTemplate_271bd68b345e0cf5c130849147384ead603f51447752d1191e62d7f801270e9c), 'block_body_id'), 'header' => array(object(__TwigTemplate_b8f5e54054d424ab780b2a4f72237dccf047fbffbfcf51c37e502bd027815a64), 'block_header'), 'header_navigation_links' => array(object(__TwigTemplate_b8f5e54054d424ab780b2a4f72237dccf047fbffbfcf51c37e502bd027815a64), 'block_header_navigation_links'), 'body' => array(object(__TwigTemplate_b8f5e54054d424ab780b2a4f72237dccf047fbffbfcf51c37e502bd027815a64), 'block_body'), 'main' => array(object(__TwigTemplate_271bd68b345e0cf5c130849147384ead603f51447752d1191e62d7f801270e9c), 'block_main'), 'sidebar' => array(object(__TwigTemplate_271bd68b345e0cf5c130849147384ead603f51447752d1191e62d7f801270e9c), 'block_sidebar'), 'footer' => array(object(__TwigTemplate_b8f5e54054d424ab780b2a4f72237dccf047fbffbfcf51c37e502bd027815a64), 'block_footer'), 'javascripts' => array(object(__TwigTemplate_b8f5e54054d424ab780b2a4f72237dccf047fbffbfcf51c37e502bd027815a64), 'block_javascripts')))
     (vendor/twig/twig/lib/Twig/Template.php:363)
  at Twig_Template->display(array('posts' => object(Pagerfanta), 'app' => object(AppVariable)), array('body_id' => array(object(__TwigTemplate_271bd68b345e0cf5c130849147384ead603f51447752d1191e62d7f801270e9c), 'block_body_id'), 'main' => array(object(__TwigTemplate_271bd68b345e0cf5c130849147384ead603f51447752d1191e62d7f801270e9c), 'block_main'), 'sidebar' => array(object(__TwigTemplate_271bd68b345e0cf5c130849147384ead603f51447752d1191e62d7f801270e9c), 'block_sidebar')))
     (var/cache/dev/twig/50/50f4593efdd0d38bc9395f5e57977575994863c979ee646f6765316aef8e7130.php:36)
  at __TwigTemplate_271bd68b345e0cf5c130849147384ead603f51447752d1191e62d7f801270e9c->doDisplay(array('posts' => object(Pagerfanta), 'app' => object(AppVariable)), array('body_id' => array(object(__TwigTemplate_271bd68b345e0cf5c130849147384ead603f51447752d1191e62d7f801270e9c), 'block_body_id'), 'main' => array(object(__TwigTemplate_271bd68b345e0cf5c130849147384ead603f51447752d1191e62d7f801270e9c), 'block_main'), 'sidebar' => array(object(__TwigTemplate_271bd68b345e0cf5c130849147384ead603f51447752d1191e62d7f801270e9c), 'block_sidebar')))
     (vendor/twig/twig/lib/Twig/Template.php:386)
  at Twig_Template->displayWithErrorHandling(array('posts' => object(Pagerfanta), 'app' => object(AppVariable)), array('body_id' => array(object(__TwigTemplate_271bd68b345e0cf5c130849147384ead603f51447752d1191e62d7f801270e9c), 'block_body_id'), 'main' => array(object(__TwigTemplate_271bd68b345e0cf5c130849147384ead603f51447752d1191e62d7f801270e9c), 'block_main'), 'sidebar' => array(object(__TwigTemplate_271bd68b345e0cf5c130849147384ead603f51447752d1191e62d7f801270e9c), 'block_sidebar')))
     (vendor/twig/twig/lib/Twig/Template.php:363)
  at Twig_Template->display(array('posts' => object(Pagerfanta)))
     (vendor/twig/twig/lib/Twig/Template.php:371)
  at Twig_Template->render(array('posts' => object(Pagerfanta)))
     (vendor/twig/twig/lib/Twig/Environment.php:289)
  at Twig_Environment->render('blog/index.html.twig', array('posts' => object(Pagerfanta)))
     (vendor/symfony/framework-bundle/Controller/ControllerTrait.php:229)
  at Symfony\Bundle\FrameworkBundle\Controller\AbstractController->render('blog/index.html.twig', array('posts' => object(Pagerfanta)))
     (src/Controller/BlogController.php:58)
  at App\Controller\BlogController->index(1, 'html', object(PostRepository))
     (vendor/symfony/http-kernel/HttpKernel.php:150)
  at Symfony\Component\HttpKernel\HttpKernel->handleRaw(object(Request), 1)
     (vendor/symfony/http-kernel/HttpKernel.php:67)
  at Symfony\Component\HttpKernel\HttpKernel->handle(object(Request), 1, true)
     (vendor/symfony/http-kernel/Kernel.php:198)
  at Symfony\Component\HttpKernel\Kernel->handle(object(Request))
     (public/index.php:34)