Exceptions
RuntimeException
HTTP 500 Internal Server Error
Stack Trace
$queryBuilder = $this->createIndexQueryBuilder($context->getSearch(), $context->getEntity(), new FieldCollection([]), new FilterCollection());$autocompleteContext = $context->getRequest()->query->all(AssociationField::PARAM_AUTOCOMPLETE_CONTEXT);if (!isset($autocompleteContext['originatingPage'], $autocompleteContext['propertyName'])) { throw new \RuntimeException('Invalid autocomplete context: missing required parameters "originatingPage" or "propertyName".');}$crudControllerFqcn = $autocompleteContext[EA::CRUD_CONTROLLER_FQCN] ?? $context->getRequest()->attributes->get(EA::CRUD_CONTROLLER_FQCN) ?? $context->getRequest()->query->get(EA::CRUD_CONTROLLER_FQCN);/** @var CrudControllerInterface $controller */$controller = $this->container->get(ControllerFactory::class)->getCrudControllerInstance($crudControllerFqcn, Action::INDEX, $context->getRequest());$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, $controllerMetadata); $this->dispatcher->dispatch($event, KernelEvents::VIEW);$request->headers->set('X-Php-Ob-Level', (string) ob_get_level());$this->requestStack->push($request);$response = null;try { return $response = $this->handleRaw($request, $type, $controllerMetadata);} catch (\Throwable $e) { if ($e instanceof \Error && !$this->handleAllThrowables) { throw $e; } if (!$this->handlingHttpCache) { $this->resetServices = true; } try { return $this->getHttpKernel()->handle($request, $type, $catch); } finally { --$this->requestStackSize; }}) {}public function run(): int{ $response = $this->kernel->handle($this->request); $response->send(false); if (\function_exists('fastcgi_finish_request') && !$this->debug) { fastcgi_finish_request();$app = $app(...$args);exit( $runtime ->getRunner($app) ->run());<?phpuse App\Kernel;require_once dirname(__DIR__).'/vendor/autoload_runtime.php';return static function (array $context) { return new Kernel($context['APP_ENV'], (bool) $context['APP_DEBUG']);};
RuntimeException:
Invalid autocomplete context: missing required parameters "originatingPage" or "propertyName".
at vendor/easycorp/easyadmin-bundle/src/Controller/AbstractCrudController.php:537
at EasyCorp\Bundle\EasyAdminBundle\Controller\AbstractCrudController->autocomplete()
(vendor/symfony/http-kernel/HttpKernel.php:200)
at Symfony\Component\HttpKernel\HttpKernel->handleRaw()
(vendor/symfony/http-kernel/HttpKernel.php:80)
at Symfony\Component\HttpKernel\HttpKernel->handle()
(vendor/symfony/http-kernel/Kernel.php:156)
at Symfony\Component\HttpKernel\Kernel->handle()
(vendor/symfony/runtime/Runner/Symfony/HttpKernelRunner.php:34)
at Symfony\Component\Runtime\Runner\Symfony\HttpKernelRunner->run()
(vendor/autoload_runtime.php:32)
at require_once('/var/www/html/webapp/vendor/autoload_runtime.php')
(public/index.php:5)