Exceptions
Exception
Symfony\Component\HttpKernel\Exception\ NotFoundHttpException
in
vendor/sensio/framework-extra-bundle/src/Request/ParamConverter/DoctrineParamConverter.php
(line 107)
if (null === $object && false === $configuration->isOptional()) {$message = sprintf('%s object not found by the @%s annotation.', $class, $this->getAnnotationName($configuration));if ($errorMessage) {$message .= ' '.$errorMessage;}throw new NotFoundHttpException($message);}$request->attributes->set($name, $object);return true;
in
vendor/sensio/framework-extra-bundle/src/Request/ParamConverter/ParamConverterManager.php
->
apply
(line 84)
return;}foreach ($this->all() as $converter) {if ($converter->supports($configuration)) {if ($converter->apply($request, $configuration)) {return;}}}}
in
vendor/sensio/framework-extra-bundle/src/Request/ParamConverter/ParamConverterManager.php
->
applyConverter
(line 48)
if (\is_object($configurations)) {$configurations = [$configurations];}foreach ($configurations as $configuration) {$this->applyConverter($request, $configuration);}}/*** Applies converter on request based on the given configuration.
in
vendor/sensio/framework-extra-bundle/src/EventListener/ParamConverterListener.php
->
apply
(line 72)
}$configurations = $this->autoConfigure($r, $request, $configurations);}$this->manager->apply($request, $configurations);}private function autoConfigure(\ReflectionFunctionAbstract $r, Request $request, $configurations){foreach ($r->getParameters() as $param) {
in
vendor/symfony/event-dispatcher/Debug/WrappedListener.php
->
onKernelController
(line 115)
$this->called = true;$this->priority ??= $dispatcher->getListenerPriority($eventName, $this->listener);$e = $this->stopwatch->start($this->name, 'event_listener');($this->optimizedListener ?? $this->listener)($event, $eventName, $dispatcher);if ($e->isStarted()) {$e->stop();}
in
vendor/symfony/event-dispatcher/EventDispatcher.php
->
__invoke
(line 230)
foreach ($listeners as $listener) {if ($stoppable && $event->isPropagationStopped()) {break;}$listener($event, $eventName, $this);}}/*** Sorts the internal list of listeners for the given event by priority.
in
vendor/symfony/event-dispatcher/EventDispatcher.php
->
callListeners
(line 59)
} else {$listeners = $this->getListeners($eventName);}if ($listeners) {$this->callListeners($listeners, $eventName, $event);}return $event;}
in
vendor/symfony/event-dispatcher/Debug/TraceableEventDispatcher.php
->
dispatch
(line 153)
try {$this->beforeDispatch($eventName, $event);try {$e = $this->stopwatch->start($eventName, 'section');try {$this->dispatcher->dispatch($event, $eventName);} finally {if ($e->isStarted()) {$e->stop();}}
in
vendor/symfony/http-kernel/HttpKernel.php
->
dispatch
(line 151)
if (false === $controller = $this->resolver->getController($request)) {throw new NotFoundHttpException(sprintf('Unable to find the controller for path "%s". The route is wrongly configured.', $request->getPathInfo()));}$event = new ControllerEvent($this, $controller, $request, $type);$this->dispatcher->dispatch($event, KernelEvents::CONTROLLER);$controller = $event->getController();// controller arguments$arguments = $this->argumentResolver->getArguments($request, $controller);
in
vendor/symfony/http-kernel/HttpKernel.php
->
handleRaw
(line 75)
{$request->headers->set('X-Php-Ob-Level', (string) ob_get_level());$this->requestStack->push($request);try {return $this->handleRaw($request, $type);} catch (\Exception $e) {if ($e instanceof RequestExceptionInterface) {$e = new BadRequestHttpException($e->getMessage(), $e);}if (false === $catch) {
in
vendor/symfony/http-kernel/Kernel.php
->
handle
(line 202)
$this->boot();++$this->requestStackSize;$this->resetServices = true;try {return $this->getHttpKernel()->handle($request, $type, $catch);} finally {--$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());
<?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 | Channel | Message |
|---|---|---|
| INFO 14:48:47 | request |
Matched route "_profiler". {
"route": "_profiler",
"route_parameters": {
"_route": "_profiler",
"_controller": "web_profiler.controller.profiler::panelAction",
"token": "b3c58b"
},
"request_uri": "http://nvoyager.com/_profiler/b3c58b?panel=exception",
"method": "GET"
}
|
| INFO 14:48:47 | doctrine |
Connecting with parameters {params} {
"params": {
"driver": "pdo_mysql",
"host": "10.10.100.100",
"port": 3306,
"user": "nvoyager",
"password": "<redacted>",
"driverOptions": [],
"defaultTableOptions": [],
"dbname": "sf_db_nvoyager",
"serverVersion": "8.0.36 - Source distribution",
"charset": "utf8"
}
}
|
| DEBUG 14:48:47 | doctrine |
Executing statement: SELECT t0.id AS id_1, t0.name AS name_2, t0.address AS address_3, t0.phone AS phone_4, t0.active AS active_5, t0.currency AS currency_6, t0.isDefault AS isDefault_7, t0.latitude AS latitude_8, t0.longitude AS longitude_9, t0.city_id AS city_id_10 FROM Agency t0 WHERE t0.id = ? (parameters: {params}, types: {types}) {
"sql": "SELECT t0.id AS id_1, t0.name AS name_2, t0.address AS address_3, t0.phone AS phone_4, t0.active AS active_5, t0.currency AS currency_6, t0.isDefault AS isDefault_7, t0.latitude AS latitude_8, t0.longitude AS longitude_9, t0.city_id AS city_id_10 FROM Agency t0 WHERE t0.id = ?",
"params": {
"1": 1
},
"types": {
"1": 1
}
}
|
Stack Trace
|
NotFoundHttpException
|
|---|
Symfony\Component\HttpKernel\Exception\NotFoundHttpException:
App\Entity\FrontPage object not found by the @ParamConverter annotation.
at vendor/sensio/framework-extra-bundle/src/Request/ParamConverter/DoctrineParamConverter.php:107
at Sensio\Bundle\FrameworkExtraBundle\Request\ParamConverter\DoctrineParamConverter->apply()
(vendor/sensio/framework-extra-bundle/src/Request/ParamConverter/ParamConverterManager.php:84)
at Sensio\Bundle\FrameworkExtraBundle\Request\ParamConverter\ParamConverterManager->applyConverter()
(vendor/sensio/framework-extra-bundle/src/Request/ParamConverter/ParamConverterManager.php:48)
at Sensio\Bundle\FrameworkExtraBundle\Request\ParamConverter\ParamConverterManager->apply()
(vendor/sensio/framework-extra-bundle/src/EventListener/ParamConverterListener.php:72)
at Sensio\Bundle\FrameworkExtraBundle\EventListener\ParamConverterListener->onKernelController()
(vendor/symfony/event-dispatcher/Debug/WrappedListener.php:115)
at Symfony\Component\EventDispatcher\Debug\WrappedListener->__invoke()
(vendor/symfony/event-dispatcher/EventDispatcher.php:230)
at Symfony\Component\EventDispatcher\EventDispatcher->callListeners()
(vendor/symfony/event-dispatcher/EventDispatcher.php:59)
at Symfony\Component\EventDispatcher\EventDispatcher->dispatch()
(vendor/symfony/event-dispatcher/Debug/TraceableEventDispatcher.php:153)
at Symfony\Component\EventDispatcher\Debug\TraceableEventDispatcher->dispatch()
(vendor/symfony/http-kernel/HttpKernel.php:151)
at Symfony\Component\HttpKernel\HttpKernel->handleRaw()
(vendor/symfony/http-kernel/HttpKernel.php:75)
at Symfony\Component\HttpKernel\HttpKernel->handle()
(vendor/symfony/http-kernel/Kernel.php:202)
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/nvoyager/public_html/vendor/autoload_runtime.php')
(public/index.php:5)
|