Exceptions
Exception
RuntimeException
try {
$response = $cache->handle($subRequest, HttpKernelInterface::SUB_REQUEST, true);
if (!$response->isSuccessful() && Response::HTTP_NOT_MODIFIED !== $response->getStatusCode()) {
throw new \RuntimeException(sprintf('Error when rendering "%s" (Status code is %d).', $subRequest->getUri(), $response->getStatusCode()));
}
return $response->getContent();
} catch (\Exception $e) {
if ($alt) {
in
vendor/symfony/http-kernel/HttpCache/HttpCache.php(615) : eval()'d code
->
handle
(line 528)
in
vendor/symfony/http-kernel/HttpCache/HttpCache.php
eval
(line 615)
ob_start();
if ($response->headers->has('X-Body-File')) {
include $response->headers->get('X-Body-File');
} else {
eval('; ?>'.$response->getContent().'<?php ;');
}
$response->setContent(ob_get_clean());
$response->headers->remove('X-Body-Eval');
if (!$response->headers->has('Transfer-Encoding')) {
in
vendor/symfony/http-kernel/HttpCache/HttpCache.php
->
restoreResponseBody
(line 215)
$response = $this->fetch($request, $catch);
} else {
$response = $this->lookup($request, $catch);
}
$this->restoreResponseBody($request, $response);
if (HttpKernelInterface::MAIN_REQUEST === $type) {
$this->addTraces($response);
}
in
vendor/symfony/http-kernel/Kernel.php
->
handle
(line 193)
{
if (!$this->booted) {
$container = $this->container ?? $this->preBoot();
if ($container->has('http_cache')) {
return $container->get('http_cache')->handle($request, $type, $catch);
}
}
$this->boot();
++$this->requestStackSize;
in
vendor/symfony/runtime/Runner/Symfony/HttpKernelRunner.php
->
handle
(line 35)
$this->request = $request;
}
public function run(): int
{
$response = $this->kernel->handle($this->request);
$response->send();
if ($this->kernel instanceof TerminableInterface) {
$this->kernel->terminate($this->request, $response);
}
in
vendor/autoload_runtime.php
->
run
(line 29)
$app = $app(...$args);
exit(
$runtime
->getRunner($app)
->run()
);
require_once('/home/test.dombusin.com/public_html/vendor/autoload_runtime.php')
in
public/index.php
(line 5)
<?php
use App\Kernel;
require_once dirname(__DIR__).'/vendor/autoload_runtime.php';
return function (array $context) {
return new Kernel('dev', true);
};
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) |