Error 404 Not Found

GET http://suntravelsetservices.net/public/admin/pays/batch-delete?page=1&sort%5Bcode%5D=DESC

Exceptions

The "App\Entity\Pays" entity with "id = batch-delete" does not exist in the database. The entity may have been deleted by mistake or by a "cascade={"remove"}" operation executed by Doctrine.

Exception

EasyCorp\Bundle\EasyAdminBundle\Exception\ EntityNotFoundException

Show exception properties
EasyCorp\Bundle\EasyAdminBundle\Exception\EntityNotFoundException {#746
  -statusCode: 404
  -headers: []
  -context: EasyCorp\Bundle\EasyAdminBundle\Context\ExceptionContext {#744
    -publicMessage: "exception.entity_not_found"
    -debugMessage: "The "App\Entity\Pays" entity with "id = batch-delete" does not exist in the database. The entity may have been deleted by mistake or by a "cascade={"remove"}" operation executed by Doctrine."
    -parameters: array:3 [
      "entity_name" => "App\Entity\Pays"
      "entity_id_name" => "id"
      "entity_id_value" => "batch-delete"
    ]
    -statusCode: 404
  }
}
  1.     {
  2.         $entityManager $this->getEntityManager($entityFqcn);
  3.         if (null === $entityInstance $entityManager->getRepository($entityFqcn)->find($entityIdValue)) {
  4.             $entityIdName $entityManager->getClassMetadata($entityFqcn)->getIdentifierFieldNames()[0];
  5.             throw new EntityNotFoundException(['entity_name' => $entityFqcn'entity_id_name' => $entityIdName'entity_id_value' => $entityIdValue]);
  6.         }
  7.         return $entityInstance;
  8.     }
  1.      * @param class-string|null $entityFqcn
  2.      */
  3.     private function doCreate(?string $entityFqcn nullmixed $entityId nullstring|Expression|null $entityPermission null, ?object $entityInstance null): EntityDto
  4.     {
  5.         if (null === $entityInstance && null !== $entityFqcn) {
  6.             $entityInstance null === $entityId null $this->getEntityInstance($entityFqcn$entityId);
  7.         }
  8.         if (null !== $entityInstance && null === $entityFqcn) {
  9.             if ($entityInstance instanceof Proxy) {
  10.                 $entityInstance->__load();
  1.     /**
  2.      * @param class-string $entityFqcn
  3.      */
  4.     public function create(string $entityFqcnmixed $entityId nullstring|Expression|null $entityPermission null): EntityDto
  5.     {
  6.         return $this->doCreate($entityFqcn$entityId$entityPermission);
  7.     }
  8.     /**
  9.      * @param object $entityInstance
  10.      */
  1.         // when using pretty URLs, the entity ID is passed as a request attribute (it's part of the route path);
  2.         // in legacy URLs, the entity ID is passed as a regular query parameter
  3.         $entityId $request->attributes->get(EA::ENTITY_ID) ?? $request->query->get(EA::ENTITY_ID);
  4.         return $this->entityFactory->create($crudDto->getEntityFqcn(), $entityId$crudDto->getEntityPermission());
  5.     }
  6. }
  1.         $user $this->getUser($this->tokenStorage);
  2.         // build a first version of CrudDto without actions so we can create AdminContext, which is
  3.         // needed for action extensions; later, we'll update the CrudDto object with the full action config
  4.         $crudDto $this->getCrudDto($this->crudControllers$dashboardController$crudController, new ActionConfigDto(), $filters$crudAction$pageName);
  5.         $entityDto $this->getEntityDto($request$crudDto);
  6.         $searchDto $this->getSearchDto($request$crudDto);
  7.         $i18nDto $this->getI18nDto($request$dashboardDto$crudDto$entityDto);
  8.         $templateRegistry $this->getTemplateRegistry($dashboardController$crudDto);
  9.         $usePrettyUrls $this->adminRouteGenerator->usesPrettyUrls();
  1.         if (null === $adminContext $request->attributes->get(EA::CONTEXT_REQUEST_ATTRIBUTE)) {
  2.             $crudControllerFqcn $request->attributes->get(EA::CRUD_CONTROLLER_FQCN);
  3.             $actionName $request->attributes->get(EA::CRUD_ACTION);
  4.             $crudControllerInstance $this->controllerFactory->getCrudControllerInstance($crudControllerFqcn$actionName$request);
  5.             $adminContext $this->adminContextFactory->create($request$dashboardControllerInstance$crudControllerInstance$actionName);
  6.         }
  7.         $request->attributes->set(EA::CONTEXT_REQUEST_ATTRIBUTE$adminContext);
  8.         $this->requestAlreadyProcessedAsPrettyUrl true;
  9.     }
in vendor/symfony/event-dispatcher/Debug/WrappedListener.php -> onKernelRequestPrettyUrls (line 115)
  1.         $this->priority ??= $dispatcher->getListenerPriority($eventName$this->listener);
  2.         $e $this->stopwatch->start($this->name'event_listener');
  3.         try {
  4.             ($this->optimizedListener ?? $this->listener)($event$eventName$dispatcher);
  5.         } finally {
  6.             if ($e->isStarted()) {
  7.                 $e->stop();
  8.             }
  9.         }
  1.         foreach ($listeners as $listener) {
  2.             if ($stoppable && $event->isPropagationStopped()) {
  3.                 break;
  4.             }
  5.             $listener($event$eventName$this);
  6.         }
  7.     }
  8.     /**
  9.      * Sorts the internal list of listeners for the given event by priority.
  1.         } else {
  2.             $listeners $this->getListeners($eventName);
  3.         }
  4.         if ($listeners) {
  5.             $this->callListeners($listeners$eventName$event);
  6.         }
  7.         return $event;
  8.     }
  1.         try {
  2.             $this->beforeDispatch($eventName$event);
  3.             try {
  4.                 $e $this->stopwatch->start($eventName'section');
  5.                 try {
  6.                     $this->dispatcher->dispatch($event$eventName);
  7.                 } finally {
  8.                     if ($e->isStarted()) {
  9.                         $e->stop();
  10.                     }
  11.                 }
  1.      */
  2.     private function handleRaw(Request $requestint $type self::MAIN_REQUEST): Response
  3.     {
  4.         // request
  5.         $event = new RequestEvent($this$request$type);
  6.         $this->dispatcher->dispatch($eventKernelEvents::REQUEST);
  7.         if ($event->hasResponse()) {
  8.             return $this->filterResponse($event->getResponse(), $request$type);
  9.         }
  1.         $request->headers->set('X-Php-Ob-Level', (string) ob_get_level());
  2.         $this->requestStack->push($request);
  3.         $response null;
  4.         try {
  5.             return $response $this->handleRaw($request$type);
  6.         } catch (\Throwable $e) {
  7.             if ($e instanceof \Error && !$this->handleAllThrowables) {
  8.                 throw $e;
  9.             }
  1.         if (!$this->handlingHttpCache) {
  2.             $this->resetServices true;
  3.         }
  4.         try {
  5.             return $this->getHttpKernel()->handle($request$type$catch);
  6.         } finally {
  7.             --$this->requestStackSize;
  8.         }
  9.     }
  1.     ) {
  2.     }
  3.     public function run(): int
  4.     {
  5.         $response $this->kernel->handle($this->request);
  6.         if (Kernel::VERSION_ID >= 60400) {
  7.             $response->send(false);
  8.             if (\function_exists('fastcgi_finish_request') && !$this->debug) {
in vendor/autoload_runtime.php -> run (line 32)
  1. $app $app(...$args);
  2. exit(
  3.     $runtime
  4.         ->getRunner($app)
  5.         ->run()
  6. );
require_once('/home/suntrat/www/vendor/autoload_runtime.php') in public/index.php (line 5)
  1. <?php
  2. use App\Kernel;
  3. require_once dirname(__DIR__).'/vendor/autoload_runtime.php';
  4. return function (array $context) {
  5.     return new Kernel($context['APP_ENV'], (bool) $context['APP_DEBUG']);
  6. };

Logs

Level Channel Message
DEBUG 01:14:37 php Warning: Zend OPcache API is restricted by "restrict_api" configuration directive
{
    "exception": {
        "severity": 2,
        "file": "/home/suntrat/www/vendor/symfony/error-handler/DebugClassLoader.php",
        "line": 303,
        "trace": [
            {
                "file": "/home/suntrat/www/vendor/doctrine/doctrine-bundle/src/DoctrineBundle.php",
                "line": 136,
                "function": "loadClass",
                "class": "Symfony\\Component\\ErrorHandler\\DebugClassLoader",
                "type": "->"
            }
        ],
        "count": 45
    }
}
INFO 01:14:37 request Matched route "_profiler".
{
    "route": "_profiler",
    "route_parameters": {
        "_route": "_profiler",
        "_controller": "web_profiler.controller.profiler::panelAction",
        "token": "1c686d"
    },
    "request_uri": "http://suntravelsetservices.net/public/_profiler/1c686d",
    "method": "GET"
}

Stack Trace

EntityNotFoundException
EasyCorp\Bundle\EasyAdminBundle\Exception\EntityNotFoundException:
The "App\Entity\Pays" entity with "id = batch-delete" does not exist in the database. The entity may have been deleted by mistake or by a "cascade={"remove"}" operation executed by Doctrine.

  at vendor/easycorp/easyadmin-bundle/src/Factory/EntityFactory.php:196
  at EasyCorp\Bundle\EasyAdminBundle\Factory\EntityFactory->getEntityInstance('App\\Entity\\Pays', 'batch-delete')
     (vendor/easycorp/easyadmin-bundle/src/Factory/EntityFactory.php:152)
  at EasyCorp\Bundle\EasyAdminBundle\Factory\EntityFactory->doCreate('App\\Entity\\Pays', 'batch-delete', null)
     (vendor/easycorp/easyadmin-bundle/src/Factory/EntityFactory.php:86)
  at EasyCorp\Bundle\EasyAdminBundle\Factory\EntityFactory->create('App\\Entity\\Pays', 'batch-delete', null)
     (vendor/easycorp/easyadmin-bundle/src/Factory/AdminContextFactory.php:271)
  at EasyCorp\Bundle\EasyAdminBundle\Factory\AdminContextFactory->getEntityDto(object(Request), object(CrudDto))
     (vendor/easycorp/easyadmin-bundle/src/Factory/AdminContextFactory.php:66)
  at EasyCorp\Bundle\EasyAdminBundle\Factory\AdminContextFactory->create(object(Request), object(DashboardController), object(PaysCrudController), 'detail')
     (vendor/easycorp/easyadmin-bundle/src/EventListener/AdminRouterSubscriber.php:132)
  at EasyCorp\Bundle\EasyAdminBundle\EventListener\AdminRouterSubscriber->onKernelRequestPrettyUrls(object(RequestEvent), 'kernel.request', object(TraceableEventDispatcher))
     (vendor/symfony/event-dispatcher/Debug/WrappedListener.php:115)
  at Symfony\Component\EventDispatcher\Debug\WrappedListener->__invoke(object(RequestEvent), 'kernel.request', object(TraceableEventDispatcher))
     (vendor/symfony/event-dispatcher/EventDispatcher.php:206)
  at Symfony\Component\EventDispatcher\EventDispatcher->callListeners(array(object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener)), 'kernel.request', object(RequestEvent))
     (vendor/symfony/event-dispatcher/EventDispatcher.php:56)
  at Symfony\Component\EventDispatcher\EventDispatcher->dispatch(object(RequestEvent), 'kernel.request')
     (vendor/symfony/event-dispatcher/Debug/TraceableEventDispatcher.php:126)
  at Symfony\Component\EventDispatcher\Debug\TraceableEventDispatcher->dispatch(object(RequestEvent), 'kernel.request')
     (vendor/symfony/http-kernel/HttpKernel.php:159)
  at Symfony\Component\HttpKernel\HttpKernel->handleRaw(object(Request), 1)
     (vendor/symfony/http-kernel/HttpKernel.php:76)
  at Symfony\Component\HttpKernel\HttpKernel->handle(object(Request), 1, true)
     (vendor/symfony/http-kernel/Kernel.php:193)
  at Symfony\Component\HttpKernel\Kernel->handle(object(Request))
     (vendor/symfony/runtime/Runner/Symfony/HttpKernelRunner.php:35)
  at Symfony\Component\Runtime\Runner\Symfony\HttpKernelRunner->run()
     (vendor/autoload_runtime.php:32)
  at require_once('/home/suntrat/www/vendor/autoload_runtime.php')
     (public/index.php:5)