Error 500 Internal Server Error

GET https://www.auto-isr.net/auto/golf-people-1-5-tsi-6g-wvwzzzcd1rw502879

Exceptions

No result was found for query although at least one row was expected.

  • Exception
  • Logs
  • Stack Trace

Doctrine\ORM\ NoResultException

  1.     public function getSingleResult($hydrationMode null)
  2.     {
  3.         $result $this->execute(null$hydrationMode);
  4.         if ($this->_hydrationMode !== self::HYDRATE_SINGLE_SCALAR && ! $result) {
  5.             throw new NoResultException();
  6.         }
  7.         if (! is_array($result)) {
  8.             return $result;
  9.         }
AbstractQuery->getSingleResult() in src/Controller/Frontend/FrontendController.php (line 54)
  1.             ->where('c.slug = :slug AND c.status = :status')
  2.             ->setMaxResults(1)
  3.             ->setParameter('slug'$slug)
  4.             ->setParameter('status'CarStatus::Published->value);
  5.         $car $query->getQuery()->getSingleResult();
  6.         if(!$car) {
  7.             throw $this->createNotFoundException('Car does not exist');
  8.         }
  1.         $this->dispatcher->dispatch($eventKernelEvents::CONTROLLER_ARGUMENTS);
  2.         $controller $event->getController();
  3.         $arguments $event->getArguments();
  4.         // call controller
  5.         $response $controller(...$arguments);
  6.         // view
  7.         if (!$response instanceof Response) {
  8.             $event = new ViewEvent($this$request$type$response$event);
  9.             $this->dispatcher->dispatch($eventKernelEvents::VIEW);
  1.     {
  2.         $request->headers->set('X-Php-Ob-Level', (string) ob_get_level());
  3.         $this->requestStack->push($request);
  4.         try {
  5.             return $this->handleRaw($request$type);
  6.         } catch (\Throwable $e) {
  7.             if ($e instanceof \Error && !$this->handleAllThrowables) {
  8.                 throw $e;
  9.             }
  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.     }
  1.         $this->request $request;
  2.     }
  3.     public function run(): int
  4.     {
  5.         $response $this->kernel->handle($this->request);
  6.         $response->send();
  7.         if ($this->kernel instanceof TerminableInterface) {
  8.             $this->kernel->terminate($this->request$response);
  9.         }
in vendor/autoload_runtime.php -> run (line 29)
  1. $app $app(...$args);
  2. exit(
  3.     $runtime
  4.         ->getRunner($app)
  5.         ->run()
  6. );
require_once('/www/doc/www.auto-isr.cz/www/vendor/autoload_runtime.php') in public/index.php (line 8)
  1. use App\Kernel;
  2. putenv('APP_ENV=dev');
  3. putenv('APP_DEBUG=1');
  4. require_once dirname(__DIR__).'/vendor/autoload_runtime.php';
  5. return function(array $context) {
  6.     return new Kernel('dev'true);
  7. };