Exceptions
Exceptions 2
Twig\Error\ RuntimeError
Show exception properties
Twig\Error\RuntimeError {#6131 -lineno: 4 -name: "web/listings/_image_component.html.twig" -rawMessage: "An exception has been thrown during the rendering of a template ("Entity of type 'App\Entity\Album' for IDs id(61) was not found")." -sourcePath: "/var/www/affiniaAgency/affiniaAgencyPlus/templates/web/listings/_image_component.html.twig" -sourceCode: """ \n <div>\n {% if listing.property.album %}\n <div {{ react_component('ListingPhotoController', {\n 'images': listing.property.album.getImagesSerialized|json_encode,\n 'slug': listing.property.album.slug|json_encode,\n 'lat': listing.property.lat|json_encode,\n 'lng': listing.property.lng|json_encode,\n 'name': listing.property.googleStreetLink|json_encode,\n 'googleStreetLink': listing.property.googleStreetLink|json_encode,\n }) }}>\n <img src="{{ asset('uploads/properties/' ~ listing.thumb) }}" alt="{{ listing.property.name }}" class="img-fluid card-img-top" />\n </div>\n {% else %}\n <img src="{{ asset('uploads/properties/' ~ listing.thumb) }}" alt="{{ listing.property.name }}" class="img-fluid card-img-top" />\n {% endif %}\n </div> """ }
<div>
{% if listing.property.album %}
<div {{ react_component('ListingPhotoController', {
'images': listing.property.album.getImagesSerialized|json_encode,
'slug': listing.property.album.slug|json_encode,
'lat': listing.property.lat|json_encode,
'lng': listing.property.lng|json_encode,
'name': listing.property.googleStreetLink|json_encode,
in
var/cache/dev/twig/f3/f3513b73664001b8fcc681a6afd99e1c.php
->
yield
(line 139)
yield "</p>
<div class=\"col-md-8\">
";
// line 43
yield from $this->loadTemplate("web/listings/_image_component.html.twig", "web/listings/listings_page.html.twig", 43)->unwrap()->yield($context);
// line 44
yield " <div class=\"card mb-4 mt-2\">
<!-- Main Image -->
<!-- Listing Information -->
in
vendor/twig/twig/src/Template.php
->
block_body
(line 437)
throw new \LogicException('A block must be a method on a \Twig\Template instance.');
}
if (null !== $template) {
try {
yield from $template->$block($context, $blocks);
} catch (Error $e) {
if (!$e->getSourceContext()) {
$e->setSourceContext($template->getSourceContext());
}
in
var/cache/dev/twig/c3/c3f8e2a5369ef3f31ae6d01ffb2e5689.php
->
yieldBlock
(line 114)
yield from $this->unwrap()->yieldBlock('dashboard', $context, $blocks);
// line 76
yield "<div class=\"\">
";
// line 77
yield from $this->unwrap()->yieldBlock('body', $context, $blocks);
// line 79
yield "</div>
";
// line 81
in
vendor/twig/twig/src/Template.php
->
doDisplay
(line 393)
{
$context += $this->env->getGlobals();
$blocks = array_merge($this->blocks, $blocks);
try {
yield from $this->doDisplay($context, $blocks);
} catch (Error $e) {
if (!$e->getSourceContext()) {
$e->setSourceContext($this->getSourceContext());
}
in
var/cache/dev/twig/f3/f3513b73664001b8fcc681a6afd99e1c.php
->
yield
(line 54)
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "web/listings/listings_page.html.twig"));
$this->parent = $this->loadTemplate("/web/base_web.html.twig", "web/listings/listings_page.html.twig", 1);
yield from $this->parent->unwrap()->yield($context, array_merge($this->blocks, $blocks));
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
in
vendor/twig/twig/src/Template.php
->
doDisplay
(line 393)
{
$context += $this->env->getGlobals();
$blocks = array_merge($this->blocks, $blocks);
try {
yield from $this->doDisplay($context, $blocks);
} catch (Error $e) {
if (!$e->getSourceContext()) {
$e->setSourceContext($this->getSourceContext());
}
in
vendor/twig/twig/src/Template.php
->
yield
(line 349)
return $this->blocks;
}
public function display(array $context, array $blocks = []): void
{
foreach ($this->yield($context, $blocks) as $data) {
echo $data;
}
}
public function render(array $context): string
in
vendor/twig/twig/src/Template.php
->
display
(line 364)
ob_start();
} else {
ob_start(function () { return ''; });
}
try {
$this->display($context);
} catch (\Throwable $e) {
while (ob_get_level() > $level) {
ob_end_clean();
}
in
vendor/twig/twig/src/TemplateWrapper.php
->
render
(line 35)
) {
}
public function render(array $context = []): string
{
return $this->template->render($context);
}
public function display(array $context = [])
{
// using func_get_args() allows to not expose the blocks argument
in
vendor/twig/twig/src/Environment.php
->
render
(line 306)
* @throws SyntaxError When an error occurred during compilation
* @throws RuntimeError When an error occurred during rendering
*/
public function render($name, array $context = []): string
{
return $this->load($name)->render($context);
}
/**
* Displays a template.
*
in
vendor/symfony/framework-bundle/Controller/AbstractController.php
->
render
(line 431)
if (null !== $block) {
return $this->container->get('twig')->load($view)->renderBlock($block, $parameters);
}
return $this->container->get('twig')->render($view, $parameters);
}
private function doRender(string $view, ?string $block, array $parameters, ?Response $response, string $method): Response
{
$content = $this->doRenderView($view, $block, $parameters, $method);
in
vendor/symfony/framework-bundle/Controller/AbstractController.php
->
doRenderView
(line 436)
return $this->container->get('twig')->render($view, $parameters);
}
private function doRender(string $view, ?string $block, array $parameters, ?Response $response, string $method): Response
{
$content = $this->doRenderView($view, $block, $parameters, $method);
$response ??= new Response();
if (200 === $response->getStatusCode()) {
foreach ($parameters as $v) {
if ($v instanceof FormInterface && $v->isSubmitted() && !$v->isValid()) {
in
vendor/symfony/framework-bundle/Controller/AbstractController.php
->
doRender
(line 250)
* If an invalid form is found in the list of parameters, a 422 status code is returned.
* Forms found in parameters are auto-cast to form views.
*/
protected function render(string $view, array $parameters = [], ?Response $response = null): Response
{
return $this->doRender($view, null, $parameters, $response, __FUNCTION__);
}
/**
* Renders a block in a view.
*
return $this->redirectToRoute('app_web_custom_thankyou', ['slug' => $listing->getSlug()]);
}else{
$this->addFlash('danger', $this->translator->trans('app.web.listings.lead_not_created'));
}
}
return $this->render('web/listings/listings_page.html.twig', [
'controller_name' => 'Listings',
'listing' => $listing,
'form' => $form->createView()
]);
}
in
vendor/symfony/http-kernel/HttpKernel.php
->
page
(line 183)
$this->dispatcher->dispatch($event, KernelEvents::CONTROLLER_ARGUMENTS);
$controller = $event->getController();
$arguments = $event->getArguments();
// call controller
$response = $controller(...$arguments);
// view
if (!$response instanceof Response) {
$event = new ViewEvent($this, $request, $type, $response, $event);
$this->dispatcher->dispatch($event, KernelEvents::VIEW);
in
vendor/symfony/http-kernel/HttpKernel.php
->
handleRaw
(line 76)
$request->headers->set('X-Php-Ob-Level', (string) ob_get_level());
$this->requestStack->push($request);
$response = null;
try {
return $response = $this->handleRaw($request, $type);
} catch (\Throwable $e) {
if ($e instanceof \Error && !$this->handleAllThrowables) {
throw $e;
}
in
vendor/symfony/http-kernel/Kernel.php
->
handle
(line 182)
$this->boot();
++$this->requestStackSize;
$this->resetServices = true;
try {
return $this->getHttpKernel()->handle($request, $type, $catch);
} finally {
--$this->requestStackSize;
}
}
in
vendor/symfony/http-kernel/HttpCache/SubRequestHandler.php
->
handle
(line 86)
if (!IpUtils::checkIp('127.0.0.1', $trustedProxies)) {
Request::setTrustedProxies(array_merge($trustedProxies, ['127.0.0.1']), Request::getTrustedHeaderSet());
}
try {
return $kernel->handle($request, $type, $catch);
} finally {
// restore global state
Request::setTrustedProxies($trustedProxies, $trustedHeaderSet);
}
}
in
vendor/symfony/http-kernel/HttpCache/HttpCache.php
::
handle
(line 460)
protected function forward(Request $request, bool $catch = false, ?Response $entry = null): Response
{
$this->surrogate?->addSurrogateCapability($request);
// always a "master" request (as the real master request can be in cache)
$response = SubRequestHandler::handle($this->kernel, $request, HttpKernelInterface::MAIN_REQUEST, $catch);
/*
* Support stale-if-error given on Responses or as a config option.
* RFC 7234 summarizes in Section 4.2.4 (but also mentions with the individual
* Cache-Control directives) that
in
vendor/symfony/framework-bundle/HttpCache/HttpCache.php
->
forward
(line 68)
protected function forward(Request $request, bool $catch = false, ?Response $entry = null): Response
{
$this->getKernel()->boot();
$this->getKernel()->getContainer()->set('cache', $this);
return parent::forward($request, $catch, $entry);
}
/**
* Returns an array of options to customize the Cache configuration.
*/
in
vendor/symfony/http-kernel/HttpCache/HttpCache.php
->
forward
(line 437)
// avoid that the backend sends no content
$subRequest->headers->remove('If-Modified-Since');
$subRequest->headers->remove('If-None-Match');
$response = $this->forward($subRequest, $catch);
if ($response->isCacheable()) {
$this->store($request, $response);
}
in
vendor/symfony/http-kernel/HttpCache/HttpCache.php
->
fetch
(line 335)
}
if (null === $entry) {
$this->record($request, 'miss');
return $this->fetch($request, $catch);
}
if (!$this->isFreshEnough($request, $entry)) {
$this->record($request, 'stale');
in
vendor/symfony/http-kernel/HttpCache/HttpCache.php
->
lookup
(line 213)
reload the cache by fetching a fresh response and caching it (if possible).
*/
$this->record($request, 'reload');
$response = $this->fetch($request, $catch);
} else {
$response = $this->lookup($request, $catch);
}
$this->restoreResponseBody($request, $response);
if (HttpKernelInterface::MAIN_REQUEST === $type) {
in
vendor/symfony/http-kernel/Kernel.php
->
handle
(line 173)
{
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)
) {
}
public function run(): int
{
$response = $this->kernel->handle($this->request);
if (Kernel::VERSION_ID >= 60400) {
$response->send(false);
if (\function_exists('fastcgi_finish_request') && !$this->debug) {
in
vendor/autoload_runtime.php
->
run
(line 29)
$app = $app(...$args);
exit(
$runtime
->getRunner($app)
->run()
);
require_once('/var/www/affiniaAgency/affiniaAgencyPlus/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($context['APP_ENV'], (bool) $context['APP_DEBUG']);
};
Doctrine\ORM\ EntityNotFoundException
in
vendor/doctrine/orm/src/EntityNotFoundException.php
(line 33)
foreach ($id as $key => $value) {
$ids[] = $key . '(' . $value . ')';
}
return new self(
'Entity of type \'' . $className . '\'' . ($ids ? ' for IDs ' . implode(', ', $ids) : '') . ' was not found'
);
}
/**
in
vendor/doctrine/orm/src/Proxy/ProxyFactory.php
::
fromClassNameAndIdentifier
(line 367)
{
return static function (InternalProxy $proxy, array $identifier) use ($entityPersister, $classMetadata, $identifierFlattener): void {
$original = $entityPersister->loadById($identifier);
if ($original === null) {
throw EntityNotFoundException::fromClassNameAndIdentifier(
$classMetadata->getName(),
$identifierFlattener->flattenIdentifier($classMetadata, $identifier)
);
}
in
vendor/doctrine/orm/src/Proxy/ProxyFactory.php
::
Doctrine\ORM\Proxy\{closure}
(line 471)
$proxyClassName = $this->loadProxyClass($class);
$identifierFields = array_intersect_key($class->getReflectionProperties(), $identifiers);
$proxyFactory = Closure::bind(static function (array $identifier) use ($initializer, $skippedProperties, $identifierFields, $className): InternalProxy {
$proxy = self::createLazyGhost(static function (InternalProxy $object) use ($initializer, $identifier): void {
$initializer($object, $identifier);
}, $skippedProperties);
foreach ($identifierFields as $idField => $reflector) {
if (! isset($identifier[$idField])) {
throw ORMInvalidArgumentException::missingPrimaryKeyValue($className, $idField);
in
vendor/symfony/var-exporter/Internal/LazyObjectState.php
::
Doctrine\ORM\Proxy\{closure}
(line 59)
try {
if ($defaultProperties = array_diff_key(LazyObjectRegistry::$defaultProperties[$instance::class], $this->skippedProperties)) {
PublicHydrator::hydrate($instance, $defaultProperties);
}
($this->initializer)($instance);
} catch (\Throwable $e) {
$this->status = self::STATUS_UNINITIALIZED_FULL;
$this->reset($instance);
throw $e;
in
vendor/symfony/var-exporter/LazyGhostTrait.php
->
initialize
(line 129)
?? Hydrator::$propertyScopes[$this::class][$property][3] = new \ReflectionProperty($scope ?? $class, $name);
} else {
$property = null;
}
if ($property?->isInitialized($this) ?? LazyObjectState::STATUS_UNINITIALIZED_PARTIAL !== $state->initialize($this, $name, $readonlyScope ?? $scope)) {
goto get_in_scope;
}
}
}
return $this;
}
public function getAlbumImages(): Collection
{
return $this->albumImages;
}
public function addAlbumImage(AlbumImage $albumImage): static
{
if (!$this->albumImages->contains($albumImage)) {
return $this;
}
public function getImagesSerialized(): string
{
$images = [];
foreach ($this->getAlbumImages() as $image) {
$images[] = [
'id' => $image->getId(),
'url' => $image->getImage(),
];
in
vendor/twig/twig/src/Extension/CoreExtension.php
->
getImagesSerialized
(line 1754)
}
// Some objects throw exceptions when they have __call, and the method we try
// to call is not supported. If ignoreStrictCheck is true, we should return null.
try {
$ret = $object->$method(...$arguments);
} catch (\BadMethodCallException $e) {
if ($call && ($ignoreStrictCheck || !$env->isStrictVariables())) {
return;
}
throw $e;
in
var/cache/dev/twig/21/210729381dfc8537837397e2c0915908.php
::
getAttribute
(line 55)
";
// line 3
if (CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["listing"]) || array_key_exists("listing", $context) ? $context["listing"] : (function () { throw new RuntimeError('Variable "listing" does not exist.', 3, $this->source); })()), "property", [], "any", false, false, false, 3), "album", [], "any", false, false, false, 3)) {
// line 4
yield " <div ";
yield $this->extensions['Symfony\UX\React\Twig\ReactComponentExtension']->renderReactComponent("ListingPhotoController", ["images" => json_encode(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, // line 5
(isset($context["listing"]) || array_key_exists("listing", $context) ? $context["listing"] : (function () { throw new RuntimeError('Variable "listing" does not exist.', 5, $this->source); })()), "property", [], "any", false, false, false, 5), "album", [], "any", false, false, false, 5), "getImagesSerialized", [], "any", false, false, false, 5)), "slug" => json_encode(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, // line 6
(isset($context["listing"]) || array_key_exists("listing", $context) ? $context["listing"] : (function () { throw new RuntimeError('Variable "listing" does not exist.', 6, $this->source); })()), "property", [], "any", false, false, false, 6), "album", [], "any", false, false, false, 6), "slug", [], "any", false, false, false, 6)), "lat" => json_encode(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, // line 7
(isset($context["listing"]) || array_key_exists("listing", $context) ? $context["listing"] : (function () { throw new RuntimeError('Variable "listing" does not exist.', 7, $this->source); })()), "property", [], "any", false, false, false, 7), "lat", [], "any", false, false, false, 7)), "lng" => json_encode(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, // line 8
(isset($context["listing"]) || array_key_exists("listing", $context) ? $context["listing"] : (function () { throw new RuntimeError('Variable "listing" does not exist.', 8, $this->source); })()), "property", [], "any", false, false, false, 8), "lng", [], "any", false, false, false, 8)), "name" => json_encode(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, // line 9
(isset($context["listing"]) || array_key_exists("listing", $context) ? $context["listing"] : (function () { throw new RuntimeError('Variable "listing" does not exist.', 9, $this->source); })()), "property", [], "any", false, false, false, 9), "googleStreetLink", [], "any", false, false, false, 9)), "googleStreetLink" => json_encode(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, // line 10
in
vendor/twig/twig/src/Template.php
->
doDisplay
(line 393)
{
$context += $this->env->getGlobals();
$blocks = array_merge($this->blocks, $blocks);
try {
yield from $this->doDisplay($context, $blocks);
} catch (Error $e) {
if (!$e->getSourceContext()) {
$e->setSourceContext($this->getSourceContext());
}
in
var/cache/dev/twig/f3/f3513b73664001b8fcc681a6afd99e1c.php
->
yield
(line 139)
yield "</p>
<div class=\"col-md-8\">
";
// line 43
yield from $this->loadTemplate("web/listings/_image_component.html.twig", "web/listings/listings_page.html.twig", 43)->unwrap()->yield($context);
// line 44
yield " <div class=\"card mb-4 mt-2\">
<!-- Main Image -->
<!-- Listing Information -->
in
vendor/twig/twig/src/Template.php
->
block_body
(line 437)
throw new \LogicException('A block must be a method on a \Twig\Template instance.');
}
if (null !== $template) {
try {
yield from $template->$block($context, $blocks);
} catch (Error $e) {
if (!$e->getSourceContext()) {
$e->setSourceContext($template->getSourceContext());
}
in
var/cache/dev/twig/c3/c3f8e2a5369ef3f31ae6d01ffb2e5689.php
->
yieldBlock
(line 114)
yield from $this->unwrap()->yieldBlock('dashboard', $context, $blocks);
// line 76
yield "<div class=\"\">
";
// line 77
yield from $this->unwrap()->yieldBlock('body', $context, $blocks);
// line 79
yield "</div>
";
// line 81
in
vendor/twig/twig/src/Template.php
->
doDisplay
(line 393)
{
$context += $this->env->getGlobals();
$blocks = array_merge($this->blocks, $blocks);
try {
yield from $this->doDisplay($context, $blocks);
} catch (Error $e) {
if (!$e->getSourceContext()) {
$e->setSourceContext($this->getSourceContext());
}
in
var/cache/dev/twig/f3/f3513b73664001b8fcc681a6afd99e1c.php
->
yield
(line 54)
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "web/listings/listings_page.html.twig"));
$this->parent = $this->loadTemplate("/web/base_web.html.twig", "web/listings/listings_page.html.twig", 1);
yield from $this->parent->unwrap()->yield($context, array_merge($this->blocks, $blocks));
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
in
vendor/twig/twig/src/Template.php
->
doDisplay
(line 393)
{
$context += $this->env->getGlobals();
$blocks = array_merge($this->blocks, $blocks);
try {
yield from $this->doDisplay($context, $blocks);
} catch (Error $e) {
if (!$e->getSourceContext()) {
$e->setSourceContext($this->getSourceContext());
}
in
vendor/twig/twig/src/Template.php
->
yield
(line 349)
return $this->blocks;
}
public function display(array $context, array $blocks = []): void
{
foreach ($this->yield($context, $blocks) as $data) {
echo $data;
}
}
public function render(array $context): string
in
vendor/twig/twig/src/Template.php
->
display
(line 364)
ob_start();
} else {
ob_start(function () { return ''; });
}
try {
$this->display($context);
} catch (\Throwable $e) {
while (ob_get_level() > $level) {
ob_end_clean();
}
in
vendor/twig/twig/src/TemplateWrapper.php
->
render
(line 35)
) {
}
public function render(array $context = []): string
{
return $this->template->render($context);
}
public function display(array $context = [])
{
// using func_get_args() allows to not expose the blocks argument
in
vendor/twig/twig/src/Environment.php
->
render
(line 306)
* @throws SyntaxError When an error occurred during compilation
* @throws RuntimeError When an error occurred during rendering
*/
public function render($name, array $context = []): string
{
return $this->load($name)->render($context);
}
/**
* Displays a template.
*
in
vendor/symfony/framework-bundle/Controller/AbstractController.php
->
render
(line 431)
if (null !== $block) {
return $this->container->get('twig')->load($view)->renderBlock($block, $parameters);
}
return $this->container->get('twig')->render($view, $parameters);
}
private function doRender(string $view, ?string $block, array $parameters, ?Response $response, string $method): Response
{
$content = $this->doRenderView($view, $block, $parameters, $method);
in
vendor/symfony/framework-bundle/Controller/AbstractController.php
->
doRenderView
(line 436)
return $this->container->get('twig')->render($view, $parameters);
}
private function doRender(string $view, ?string $block, array $parameters, ?Response $response, string $method): Response
{
$content = $this->doRenderView($view, $block, $parameters, $method);
$response ??= new Response();
if (200 === $response->getStatusCode()) {
foreach ($parameters as $v) {
if ($v instanceof FormInterface && $v->isSubmitted() && !$v->isValid()) {
in
vendor/symfony/framework-bundle/Controller/AbstractController.php
->
doRender
(line 250)
* If an invalid form is found in the list of parameters, a 422 status code is returned.
* Forms found in parameters are auto-cast to form views.
*/
protected function render(string $view, array $parameters = [], ?Response $response = null): Response
{
return $this->doRender($view, null, $parameters, $response, __FUNCTION__);
}
/**
* Renders a block in a view.
*
return $this->redirectToRoute('app_web_custom_thankyou', ['slug' => $listing->getSlug()]);
}else{
$this->addFlash('danger', $this->translator->trans('app.web.listings.lead_not_created'));
}
}
return $this->render('web/listings/listings_page.html.twig', [
'controller_name' => 'Listings',
'listing' => $listing,
'form' => $form->createView()
]);
}
in
vendor/symfony/http-kernel/HttpKernel.php
->
page
(line 183)
$this->dispatcher->dispatch($event, KernelEvents::CONTROLLER_ARGUMENTS);
$controller = $event->getController();
$arguments = $event->getArguments();
// call controller
$response = $controller(...$arguments);
// view
if (!$response instanceof Response) {
$event = new ViewEvent($this, $request, $type, $response, $event);
$this->dispatcher->dispatch($event, KernelEvents::VIEW);
in
vendor/symfony/http-kernel/HttpKernel.php
->
handleRaw
(line 76)
$request->headers->set('X-Php-Ob-Level', (string) ob_get_level());
$this->requestStack->push($request);
$response = null;
try {
return $response = $this->handleRaw($request, $type);
} catch (\Throwable $e) {
if ($e instanceof \Error && !$this->handleAllThrowables) {
throw $e;
}
in
vendor/symfony/http-kernel/Kernel.php
->
handle
(line 182)
$this->boot();
++$this->requestStackSize;
$this->resetServices = true;
try {
return $this->getHttpKernel()->handle($request, $type, $catch);
} finally {
--$this->requestStackSize;
}
}
in
vendor/symfony/http-kernel/HttpCache/SubRequestHandler.php
->
handle
(line 86)
if (!IpUtils::checkIp('127.0.0.1', $trustedProxies)) {
Request::setTrustedProxies(array_merge($trustedProxies, ['127.0.0.1']), Request::getTrustedHeaderSet());
}
try {
return $kernel->handle($request, $type, $catch);
} finally {
// restore global state
Request::setTrustedProxies($trustedProxies, $trustedHeaderSet);
}
}
in
vendor/symfony/http-kernel/HttpCache/HttpCache.php
::
handle
(line 460)
protected function forward(Request $request, bool $catch = false, ?Response $entry = null): Response
{
$this->surrogate?->addSurrogateCapability($request);
// always a "master" request (as the real master request can be in cache)
$response = SubRequestHandler::handle($this->kernel, $request, HttpKernelInterface::MAIN_REQUEST, $catch);
/*
* Support stale-if-error given on Responses or as a config option.
* RFC 7234 summarizes in Section 4.2.4 (but also mentions with the individual
* Cache-Control directives) that
in
vendor/symfony/framework-bundle/HttpCache/HttpCache.php
->
forward
(line 68)
protected function forward(Request $request, bool $catch = false, ?Response $entry = null): Response
{
$this->getKernel()->boot();
$this->getKernel()->getContainer()->set('cache', $this);
return parent::forward($request, $catch, $entry);
}
/**
* Returns an array of options to customize the Cache configuration.
*/
in
vendor/symfony/http-kernel/HttpCache/HttpCache.php
->
forward
(line 437)
// avoid that the backend sends no content
$subRequest->headers->remove('If-Modified-Since');
$subRequest->headers->remove('If-None-Match');
$response = $this->forward($subRequest, $catch);
if ($response->isCacheable()) {
$this->store($request, $response);
}
in
vendor/symfony/http-kernel/HttpCache/HttpCache.php
->
fetch
(line 335)
}
if (null === $entry) {
$this->record($request, 'miss');
return $this->fetch($request, $catch);
}
if (!$this->isFreshEnough($request, $entry)) {
$this->record($request, 'stale');
in
vendor/symfony/http-kernel/HttpCache/HttpCache.php
->
lookup
(line 213)
reload the cache by fetching a fresh response and caching it (if possible).
*/
$this->record($request, 'reload');
$response = $this->fetch($request, $catch);
} else {
$response = $this->lookup($request, $catch);
}
$this->restoreResponseBody($request, $response);
if (HttpKernelInterface::MAIN_REQUEST === $type) {
in
vendor/symfony/http-kernel/Kernel.php
->
handle
(line 173)
{
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)
) {
}
public function run(): int
{
$response = $this->kernel->handle($this->request);
if (Kernel::VERSION_ID >= 60400) {
$response->send(false);
if (\function_exists('fastcgi_finish_request') && !$this->debug) {
in
vendor/autoload_runtime.php
->
run
(line 29)
$app = $app(...$args);
exit(
$runtime
->getRunner($app)
->run()
);
require_once('/var/www/affiniaAgency/affiniaAgencyPlus/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($context['APP_ENV'], (bool) $context['APP_DEBUG']);
};
Logs
Level | Channel | Message |
---|---|---|
INFO 09:26:34 | request |
Matched route "_profiler". { "route": "_profiler", "route_parameters": { "_route": "_profiler", "_controller": "web_profiler.controller.profiler::panelAction", "token": "d51182" }, "request_uri": "https://affinia.online/_profiler/d51182?panel=exception&type=request", "method": "GET" } |
Stack Traces 2
[2/2]
RuntimeError
|
---|
Twig\Error\RuntimeError: An exception has been thrown during the rendering of a template ("Entity of type 'App\Entity\Album' for IDs id(61) was not found"). at templates/web/listings/_image_component.html.twig:4 at Twig\Template->yield() (var/cache/dev/twig/f3/f3513b73664001b8fcc681a6afd99e1c.php:139) at __TwigTemplate_0fd1331be4ab6a59f832a86e41e4f482->block_body() (vendor/twig/twig/src/Template.php:437) at Twig\Template->yieldBlock() (var/cache/dev/twig/c3/c3f8e2a5369ef3f31ae6d01ffb2e5689.php:114) at __TwigTemplate_56adef6eb9b8b8180a39c1c87a12bc2f->doDisplay() (vendor/twig/twig/src/Template.php:393) at Twig\Template->yield() (var/cache/dev/twig/f3/f3513b73664001b8fcc681a6afd99e1c.php:54) at __TwigTemplate_0fd1331be4ab6a59f832a86e41e4f482->doDisplay() (vendor/twig/twig/src/Template.php:393) at Twig\Template->yield() (vendor/twig/twig/src/Template.php:349) at Twig\Template->display() (vendor/twig/twig/src/Template.php:364) at Twig\Template->render() (vendor/twig/twig/src/TemplateWrapper.php:35) at Twig\TemplateWrapper->render() (vendor/twig/twig/src/Environment.php:306) at Twig\Environment->render() (vendor/symfony/framework-bundle/Controller/AbstractController.php:431) at Symfony\Bundle\FrameworkBundle\Controller\AbstractController->doRenderView() (vendor/symfony/framework-bundle/Controller/AbstractController.php:436) at Symfony\Bundle\FrameworkBundle\Controller\AbstractController->doRender() (vendor/symfony/framework-bundle/Controller/AbstractController.php:250) at Symfony\Bundle\FrameworkBundle\Controller\AbstractController->render() (src/Controller/Web/WebListingController.php:100) at App\Controller\Web\WebListingController->page() (vendor/symfony/http-kernel/HttpKernel.php:183) at Symfony\Component\HttpKernel\HttpKernel->handleRaw() (vendor/symfony/http-kernel/HttpKernel.php:76) at Symfony\Component\HttpKernel\HttpKernel->handle() (vendor/symfony/http-kernel/Kernel.php:182) at Symfony\Component\HttpKernel\Kernel->handle() (vendor/symfony/http-kernel/HttpCache/SubRequestHandler.php:86) at Symfony\Component\HttpKernel\HttpCache\SubRequestHandler::handle() (vendor/symfony/http-kernel/HttpCache/HttpCache.php:460) at Symfony\Component\HttpKernel\HttpCache\HttpCache->forward() (vendor/symfony/framework-bundle/HttpCache/HttpCache.php:68) at Symfony\Bundle\FrameworkBundle\HttpCache\HttpCache->forward() (vendor/symfony/http-kernel/HttpCache/HttpCache.php:437) at Symfony\Component\HttpKernel\HttpCache\HttpCache->fetch() (vendor/symfony/http-kernel/HttpCache/HttpCache.php:335) at Symfony\Component\HttpKernel\HttpCache\HttpCache->lookup() (vendor/symfony/http-kernel/HttpCache/HttpCache.php:213) at Symfony\Component\HttpKernel\HttpCache\HttpCache->handle() (vendor/symfony/http-kernel/Kernel.php:173) 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('/var/www/affiniaAgency/affiniaAgencyPlus/vendor/autoload_runtime.php') (public/index.php:5) |
[1/2]
EntityNotFoundException
|
---|
Doctrine\ORM\EntityNotFoundException: Entity of type 'App\Entity\Album' for IDs id(61) was not found at vendor/doctrine/orm/src/EntityNotFoundException.php:33 at Doctrine\ORM\EntityNotFoundException::fromClassNameAndIdentifier() (vendor/doctrine/orm/src/Proxy/ProxyFactory.php:367) at Doctrine\ORM\Proxy\ProxyFactory::Doctrine\ORM\Proxy\{closure}() (vendor/doctrine/orm/src/Proxy/ProxyFactory.php:471) at Proxies\__CG__\App\Entity\Album::Doctrine\ORM\Proxy\{closure}() (vendor/symfony/var-exporter/Internal/LazyObjectState.php:59) at Symfony\Component\VarExporter\Internal\LazyObjectState->initialize() (vendor/symfony/var-exporter/LazyGhostTrait.php:129) at Proxies\__CG__\App\Entity\Album->__get() (src/Entity/Album.php:75) at App\Entity\Album->getAlbumImages() (src/Entity/Album.php:161) at App\Entity\Album->getImagesSerialized() (vendor/twig/twig/src/Extension/CoreExtension.php:1754) at Twig\Extension\CoreExtension::getAttribute() (var/cache/dev/twig/21/210729381dfc8537837397e2c0915908.php:55) at __TwigTemplate_e5510dfa3801bb7614efdfda503a1365->doDisplay() (vendor/twig/twig/src/Template.php:393) at Twig\Template->yield() (var/cache/dev/twig/f3/f3513b73664001b8fcc681a6afd99e1c.php:139) at __TwigTemplate_0fd1331be4ab6a59f832a86e41e4f482->block_body() (vendor/twig/twig/src/Template.php:437) at Twig\Template->yieldBlock() (var/cache/dev/twig/c3/c3f8e2a5369ef3f31ae6d01ffb2e5689.php:114) at __TwigTemplate_56adef6eb9b8b8180a39c1c87a12bc2f->doDisplay() (vendor/twig/twig/src/Template.php:393) at Twig\Template->yield() (var/cache/dev/twig/f3/f3513b73664001b8fcc681a6afd99e1c.php:54) at __TwigTemplate_0fd1331be4ab6a59f832a86e41e4f482->doDisplay() (vendor/twig/twig/src/Template.php:393) at Twig\Template->yield() (vendor/twig/twig/src/Template.php:349) at Twig\Template->display() (vendor/twig/twig/src/Template.php:364) at Twig\Template->render() (vendor/twig/twig/src/TemplateWrapper.php:35) at Twig\TemplateWrapper->render() (vendor/twig/twig/src/Environment.php:306) at Twig\Environment->render() (vendor/symfony/framework-bundle/Controller/AbstractController.php:431) at Symfony\Bundle\FrameworkBundle\Controller\AbstractController->doRenderView() (vendor/symfony/framework-bundle/Controller/AbstractController.php:436) at Symfony\Bundle\FrameworkBundle\Controller\AbstractController->doRender() (vendor/symfony/framework-bundle/Controller/AbstractController.php:250) at Symfony\Bundle\FrameworkBundle\Controller\AbstractController->render() (src/Controller/Web/WebListingController.php:100) at App\Controller\Web\WebListingController->page() (vendor/symfony/http-kernel/HttpKernel.php:183) at Symfony\Component\HttpKernel\HttpKernel->handleRaw() (vendor/symfony/http-kernel/HttpKernel.php:76) at Symfony\Component\HttpKernel\HttpKernel->handle() (vendor/symfony/http-kernel/Kernel.php:182) at Symfony\Component\HttpKernel\Kernel->handle() (vendor/symfony/http-kernel/HttpCache/SubRequestHandler.php:86) at Symfony\Component\HttpKernel\HttpCache\SubRequestHandler::handle() (vendor/symfony/http-kernel/HttpCache/HttpCache.php:460) at Symfony\Component\HttpKernel\HttpCache\HttpCache->forward() (vendor/symfony/framework-bundle/HttpCache/HttpCache.php:68) at Symfony\Bundle\FrameworkBundle\HttpCache\HttpCache->forward() (vendor/symfony/http-kernel/HttpCache/HttpCache.php:437) at Symfony\Component\HttpKernel\HttpCache\HttpCache->fetch() (vendor/symfony/http-kernel/HttpCache/HttpCache.php:335) at Symfony\Component\HttpKernel\HttpCache\HttpCache->lookup() (vendor/symfony/http-kernel/HttpCache/HttpCache.php:213) at Symfony\Component\HttpKernel\HttpCache\HttpCache->handle() (vendor/symfony/http-kernel/Kernel.php:173) 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('/var/www/affiniaAgency/affiniaAgencyPlus/vendor/autoload_runtime.php') (public/index.php:5) |