Exceptions
Exception
Doctrine\ORM\ EntityNotFoundException
in
vendor/doctrine/orm/src/EntityNotFoundException.php
(line 31)
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 225)
$identifierFlattener,$classMetadata,): void {$original = $entityPersister->loadById($identifier, $object);if ($original === null) {throw EntityNotFoundException::fromClassNameAndIdentifier($classMetadata->getName(),$identifierFlattener->flattenIdentifier($classMetadata, $identifier),);}}, ReflectionClass::SKIP_INITIALIZATION_ON_SERIALIZE);
ProxyFactory::{closure:Doctrine\ORM\Proxy\ProxyFactory::getProxy():217}()
in
src/Entity/Typesite.php
(line 293)
return $this;}public function getPaginationmathmuse(): ?int{return $this->paginationmathmuse;}public function setPaginationmathmuse(?int $paginationmathmuse): self{$this->paginationmathmuse = $paginationmathmuse;
}$listeNiveaux = $nr->myFindTriNiveaux();$niveau = $nr->findOneById($idniveau);$parametres = $em->getRepository('App\Entity\Parametres')->findOneByActif(true);$page = $parametre;$nbPerPage = $parametres->getTheme()->getTypesite()->getPaginationmathmuse();$deltapage = $parametres->getTheme()->getTypesite()->getDeltapagemathmuse();//dump($listeNiveaux);die;$nonactif = strpos($vues, 'not');if ($nonactif !== false and $userid < 4) {
in
vendor/symfony/http-kernel/HttpKernel.php
->
enigmelistAction
(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 191)
if (!$this->handlingHttpCache) {$this->resetServices = true;}try {return $this->getHttpKernel()->handle($request, $type, $catch);} finally {--$this->requestStackSize;}}
Request::setTrustedHosts(explode(',', $trustedHosts));}$kernel = new Kernel($env, $debug);$request = Request::createFromGlobals();$response = $kernel->handle($request);$response->send();$kernel->terminate($request, $response);
Logs
| Level | Channel | Message |
|---|---|---|
| INFO 09:16:24 | request |
Matched route "_profiler". {
"route": "_profiler",
"route_parameters": {
"_route": "_profiler",
"_controller": "web_profiler.controller.profiler::panelAction",
"token": "2ddec1"
},
"request_uri": "https://base.aproximite.fr/_profiler/2ddec1?panel=exception&type=request",
"method": "GET"
}
|
Stack Trace
|
EntityNotFoundException
|
|---|
Doctrine\ORM\EntityNotFoundException:
Entity of type 'App\Entity\Typesite' for IDs id(4) was not found
at vendor/doctrine/orm/src/EntityNotFoundException.php:31
at Doctrine\ORM\EntityNotFoundException::fromClassNameAndIdentifier()
(vendor/doctrine/orm/src/Proxy/ProxyFactory.php:225)
at Doctrine\ORM\Proxy\ProxyFactory::{closure:Doctrine\ORM\Proxy\ProxyFactory::getProxy():217}()
(src/Entity/Typesite.php:293)
at App\Entity\Typesite->getPaginationmathmuse()
(src/Controller/MathmuseController.php:62)
at App\Controller\MathmuseController->enigmelistAction()
(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:191)
at Symfony\Component\HttpKernel\Kernel->handle()
(public/index.php:37)
|