https://test.dombusin.com/uk/articles/wire-wrap-master-klass-dlya-nachinayushih

Exceptions

Error when rendering "https://test.dombusin.com/uk/block/speccatmenu/default/0/0/0" (Status code is 503).

Exception

RuntimeException

  1.         try {
  2.             $response $cache->handle($subRequestHttpKernelInterface::SUB_REQUESTtrue);
  3.             if (!$response->isSuccessful() && Response::HTTP_NOT_MODIFIED !== $response->getStatusCode()) {
  4.                 throw new \RuntimeException(sprintf('Error when rendering "%s" (Status code is %d).'$subRequest->getUri(), $response->getStatusCode()));
  5.             }
  6.             return $response->getContent();
  7.         } catch (\Exception $e) {
  8.             if ($alt) {
  1.             ob_start();
  2.             if ($response->headers->has('X-Body-File')) {
  3.                 include $response->headers->get('X-Body-File');
  4.             } else {
  5.                 eval('; ?>'.$response->getContent().'<?php ;');
  6.             }
  7.             $response->setContent(ob_get_clean());
  8.             $response->headers->remove('X-Body-Eval');
  9.             if (!$response->headers->has('Transfer-Encoding')) {
in vendor/symfony/http-kernel/HttpCache/HttpCache.php -> restoreResponseBody (line 215)
  1.             $response $this->fetch($request$catch);
  2.         } else {
  3.             $response $this->lookup($request$catch);
  4.         }
  5.         $this->restoreResponseBody($request$response);
  6.         if (HttpKernelInterface::MAIN_REQUEST === $type) {
  7.             $this->addTraces($response);
  8.         }
  1.     {
  2.         if (!$this->booted) {
  3.             $container $this->container ?? $this->preBoot();
  4.             if ($container->has('http_cache')) {
  5.                 return $container->get('http_cache')->handle($request$type$catch);
  6.             }
  7.         }
  8.         $this->boot();
  9.         ++$this->requestStackSize;
  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('/home/test.dombusin.com/public_html/vendor/autoload_runtime.php') in public/index.php (line 5)
  1. <?php
  2. use App\Kernel;
  3. require_once dirname(__DIR__).'/vendor/autoload_runtime.php';
  4. return function (array $context) {    
  5.     return new Kernel('dev'true);
  6. };

Stack Trace

RuntimeException
RuntimeException:
Error when rendering "https://test.dombusin.com/uk/block/speccatmenu/default/0/0/0" (Status code is 503).

  at vendor/symfony/http-kernel/HttpCache/AbstractSurrogate.php:97
  at Symfony\Component\HttpKernel\HttpCache\AbstractSurrogate->handle()
     (vendor/symfony/http-kernel/HttpCache/HttpCache.php(615) : eval()'d code:528)
  at eval()
     (vendor/symfony/http-kernel/HttpCache/HttpCache.php:615)
  at Symfony\Component\HttpKernel\HttpCache\HttpCache->restoreResponseBody()
     (vendor/symfony/http-kernel/HttpCache/HttpCache.php:215)
  at Symfony\Component\HttpKernel\HttpCache\HttpCache->handle()
     (vendor/symfony/http-kernel/Kernel.php:193)
  at Symfony\Component\HttpKernel\Kernel->handle()
     (vendor/symfony/runtime/Runner/Symfony/HttpKernelRunner.php:35)
  at Symfony\Component\Runtime\Runner\Symfony\HttpKernelRunner->run()
     (vendor/autoload_runtime.php:29)
  at require_once('/home/test.dombusin.com/public_html/vendor/autoload_runtime.php')
     (public/index.php:5)