Exceptions
Exception
Error
in
src/Controller/ShopController.php
(line 81)
{$product = $em->getRepository(Product::class)->find($id);return $this->render('shop/product.html.twig', ['controller_name' => 'ShopController',"product" => $product,"title" => $product->getName(),"backUrl" => $request->headers->get("referer")]);}#[Route('/product/{id}/agenda', name: 'product_agenda', options: ['expose' => true])]
in
vendor/symfony/http-kernel/HttpKernel.php
->
getProduct
(line 183)
$this->dispatcher->dispatch($event, KernelEvents::CONTROLLER_ARGUMENTS);$controller = $event->getController();$arguments = $event->getArguments();// call controller$response = $controller(...$arguments);// viewif (!$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 193)
if (!$this->handlingHttpCache) {$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 stateRequest::setTrustedProxies($trustedProxies, $trustedHeaderSet);}}
in
vendor/symfony/http-kernel/HttpCache/HttpCache.php
::
handle
(line 476)
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);$this->forwardedRequest = $request;/** 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
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 453)
// 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 351)
}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 220)
$response = $this->fetch($request, $catch);} else {$response = null;do {try {$response = $this->lookup($request, $catch);} catch (CacheWasLockedException) {}} while (null === $response);}
in
vendor/symfony/http-kernel/Kernel.php
->
handle
(line 179)
if (HttpKernelInterface::MAIN_REQUEST === $type && !$this->handlingHttpCache && $this->container->has('http_cache')) {$this->handlingHttpCache = true;try {return $this->container->get('http_cache')->handle($request, $type, $catch);} finally {$this->handlingHttpCache = false;$this->resetServices = true;}}
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 32)
$app = $app(...$args);exit($runtime->getRunner($app)->run());
require_once('/var/www/vhosts/kimevasion.com/httpdocs/vendor/autoload_runtime.php')
in
public/index.php
(line 5)
<?phpuse 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 | Message |
|---|---|
| info 23:39:31 |
Matched route "_profiler". {
"route": "_profiler",
"route_parameters": {
"_route": "_profiler",
"_controller": "web_profiler.controller.profiler::panelAction",
"token": "latest"
},
"request_uri": "https://kimevasion.com/_profiler/latest?ip=18.215.24.66&type=request",
"method": "GET"
}
|
| debug 23:39:31 |
Notified event "kernel.request" to listener "Symfony\Component\HttpKernel\EventListener\DebugHandlersListener::configure". {
"event": "kernel.request",
"listener": "Symfony\\Component\\HttpKernel\\EventListener\\DebugHandlersListener::configure"
}
|
| debug 23:39:31 |
Notified event "kernel.request" to listener "Symfony\Component\HttpKernel\EventListener\ValidateRequestListener::onKernelRequest". {
"event": "kernel.request",
"listener": "Symfony\\Component\\HttpKernel\\EventListener\\ValidateRequestListener::onKernelRequest"
}
|
| debug 23:39:31 |
Notified event "kernel.request" to listener "Symfony\Bridge\Doctrine\Middleware\IdleConnection\Listener::onKernelRequest". {
"event": "kernel.request",
"listener": "Symfony\\Bridge\\Doctrine\\Middleware\\IdleConnection\\Listener::onKernelRequest"
}
|
| debug 23:39:31 |
Notified event "kernel.request" to listener "Symfony\Component\HttpKernel\EventListener\SessionListener::onKernelRequest". {
"event": "kernel.request",
"listener": "Symfony\\Component\\HttpKernel\\EventListener\\SessionListener::onKernelRequest"
}
|
| debug 23:39:31 |
Notified event "kernel.request" to listener "Symfony\Component\HttpKernel\EventListener\LocaleListener::setDefaultLocale". {
"event": "kernel.request",
"listener": "Symfony\\Component\\HttpKernel\\EventListener\\LocaleListener::setDefaultLocale"
}
|
| debug 23:39:31 |
Notified event "kernel.request" to listener "Symfony\Component\HttpKernel\EventListener\RouterListener::onKernelRequest". {
"event": "kernel.request",
"listener": "Symfony\\Component\\HttpKernel\\EventListener\\RouterListener::onKernelRequest"
}
|
| debug 23:39:31 |
Notified event "kernel.request" to listener "Symfony\Component\HttpKernel\EventListener\LocaleListener::onKernelRequest". {
"event": "kernel.request",
"listener": "Symfony\\Component\\HttpKernel\\EventListener\\LocaleListener::onKernelRequest"
}
|
| debug 23:39:31 |
Notified event "kernel.request" to listener "Symfony\Component\HttpKernel\EventListener\LocaleAwareListener::onKernelRequest". {
"event": "kernel.request",
"listener": "Symfony\\Component\\HttpKernel\\EventListener\\LocaleAwareListener::onKernelRequest"
}
|
| debug 23:39:31 |
Notified event "kernel.request" to listener "Symfony\Bundle\SecurityBundle\Debug\TraceableFirewallListener::configureLogoutUrlGenerator". {
"event": "kernel.request",
"listener": "Symfony\\Bundle\\SecurityBundle\\Debug\\TraceableFirewallListener::configureLogoutUrlGenerator"
}
|
| debug 23:39:31 |
Notified event "kernel.request" to listener "Symfony\Bundle\SecurityBundle\Debug\TraceableFirewallListener::onKernelRequest". {
"event": "kernel.request",
"listener": "Symfony\\Bundle\\SecurityBundle\\Debug\\TraceableFirewallListener::onKernelRequest"
}
|
| debug 23:39:31 |
Notified event "kernel.request" to listener "MobileDetectBundle\EventListener\RequestResponseListener::handleRequest". {
"event": "kernel.request",
"listener": "MobileDetectBundle\\EventListener\\RequestResponseListener::handleRequest"
}
|
| debug 23:39:31 |
Notified event "kernel.controller" to listener "Symfony\Bundle\FrameworkBundle\DataCollector\RouterDataCollector::onKernelController". {
"event": "kernel.controller",
"listener": "Symfony\\Bundle\\FrameworkBundle\\DataCollector\\RouterDataCollector::onKernelController"
}
|
| debug 23:39:31 |
Notified event "kernel.controller" to listener "Symfony\Component\HttpKernel\DataCollector\RequestDataCollector::onKernelController". {
"event": "kernel.controller",
"listener": "Symfony\\Component\\HttpKernel\\DataCollector\\RequestDataCollector::onKernelController"
}
|
| debug 23:39:31 |
Notified event "kernel.controller_arguments" to listener "Symfony\Component\HttpKernel\EventListener\IsSignatureValidAttributeListener::onKernelControllerArguments". {
"event": "kernel.controller_arguments",
"listener": "Symfony\\Component\\HttpKernel\\EventListener\\IsSignatureValidAttributeListener::onKernelControllerArguments"
}
|
| debug 23:39:31 |
Notified event "kernel.controller_arguments" to listener "Symfony\Component\Security\Http\EventListener\IsCsrfTokenValidAttributeListener::onKernelControllerArguments". {
"event": "kernel.controller_arguments",
"listener": "Symfony\\Component\\Security\\Http\\EventListener\\IsCsrfTokenValidAttributeListener::onKernelControllerArguments"
}
|
| debug 23:39:31 |
Notified event "kernel.controller_arguments" to listener "Symfony\Component\Security\Http\EventListener\IsGrantedAttributeListener::onKernelControllerArguments". {
"event": "kernel.controller_arguments",
"listener": "Symfony\\Component\\Security\\Http\\EventListener\\IsGrantedAttributeListener::onKernelControllerArguments"
}
|
| debug 23:39:31 |
Notified event "kernel.controller_arguments" to listener "Symfony\Component\HttpKernel\EventListener\CacheAttributeListener::onKernelControllerArguments". {
"event": "kernel.controller_arguments",
"listener": "Symfony\\Component\\HttpKernel\\EventListener\\CacheAttributeListener::onKernelControllerArguments"
}
|
| debug 23:39:31 |
Notified event "kernel.controller_arguments" to listener "Symfony\Component\HttpKernel\Controller\ArgumentResolver\RequestPayloadValueResolver::onKernelControllerArguments". {
"event": "kernel.controller_arguments",
"listener": "Symfony\\Component\\HttpKernel\\Controller\\ArgumentResolver\\RequestPayloadValueResolver::onKernelControllerArguments"
}
|
| debug 23:39:31 |
Notified event "kernel.controller_arguments" to listener "Symfony\Component\HttpKernel\EventListener\ErrorListener::onControllerArguments". {
"event": "kernel.controller_arguments",
"listener": "Symfony\\Component\\HttpKernel\\EventListener\\ErrorListener::onControllerArguments"
}
|
Stack Trace
|
Error
|
|---|
Error:
Call to a member function getName() on null
at src/Controller/ShopController.php:81
at App\Controller\ShopController->getProduct()
(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:193)
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:476)
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:453)
at Symfony\Component\HttpKernel\HttpCache\HttpCache->fetch()
(vendor/symfony/http-kernel/HttpCache/HttpCache.php:351)
at Symfony\Component\HttpKernel\HttpCache\HttpCache->lookup()
(vendor/symfony/http-kernel/HttpCache/HttpCache.php:220)
at Symfony\Component\HttpKernel\HttpCache\HttpCache->handle()
(vendor/symfony/http-kernel/Kernel.php:179)
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:32)
at require_once('/var/www/vhosts/kimevasion.com/httpdocs/vendor/autoload_runtime.php')
(public/index.php:5)
|