Exceptions
Exception
TypeError
{/*** @param array<mixed> $entityIds* @param class-string<TEntity> $entityFqcn*/public function __construct(private string $name,private array $entityIds,private string $entityFqcn,private string $csrfToken,) {
in
vendor/easycorp/easyadmin-bundle/src/ArgumentResolver/BatchActionDtoResolver.php
->
__construct
(line 31)
if (null === $context = $this->adminContextProvider->getContext()) {throw new \RuntimeException(sprintf('Some of your controller actions have type-hinted an argument with the "%s" class but that\'s only available for actions run to serve EasyAdmin requests. Remove the type-hint or make sure the action is part of an EasyAdmin request.', BatchActionDto::class));}yield new BatchActionDto($context->getRequest()->request->get(EA::BATCH_ACTION_NAME),$context->getRequest()->request->all()[EA::BATCH_ACTION_ENTITY_IDS] ?? [],$context->getRequest()->request->get(EA::ENTITY_FQCN),$context->getRequest()->request->get(EA::BATCH_ACTION_CSRF_TOKEN));
in
vendor/symfony/http-kernel/Controller/ArgumentResolver/TraceableValueResolver.php
->
resolve
(line 37)
public function resolve(Request $request, ArgumentMetadata $argument): iterable{$method = $this->inner::class.'::'.__FUNCTION__;$this->stopwatch->start($method, 'controller.argument_value_resolver');yield from $this->inner->resolve($request, $argument);$this->stopwatch->stop($method);}}
in
vendor/symfony/http-kernel/Controller/ArgumentResolver.php
->
resolve
(line 91)
continue;}try {$count = 0;foreach ($resolver->resolve($request, $metadata) as $argument) {++$count;$arguments[] = $argument;}} catch (NearMissValueResolverException $e) {$valueResolverExceptions[] = $e;
in
vendor/symfony/http-kernel/Controller/TraceableArgumentResolver.php
->
getArguments
(line 33)
public function getArguments(Request $request, callable $controller, ?\ReflectionFunctionAbstract $reflector = null): array{$e = $this->stopwatch->start('controller.get_arguments');try {return $this->resolver->getArguments($request, $controller, $reflector);} finally {$e->stop();}}}
in
vendor/symfony/http-kernel/HttpKernel.php
->
getArguments
(line 175)
$event = new ControllerEvent($this, $controller, $request, $type);$this->dispatcher->dispatch($event, KernelEvents::CONTROLLER);$controller = $event->getController();// controller arguments$arguments = $this->argumentResolver->getArguments($request, $controller, $event->getControllerReflector());$event = new ControllerArgumentsEvent($this, $event, $arguments, $request, $type);$this->dispatcher->dispatch($event, KernelEvents::CONTROLLER_ARGUMENTS);$controller = $event->getController();$arguments = $event->getArguments();
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;}}
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/html/admin.webuni.com/vendor/autoload_runtime.php')
in
public/index.php
(line 5)
<?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']);};
Logs
| Level | Channel | Message |
|---|---|---|
| INFO 23:21:32 | request |
Matched route "_profiler". {
"route": "_profiler",
"route_parameters": {
"_route": "_profiler",
"_controller": "web_profiler.controller.profiler::panelAction",
"token": "1e1418"
},
"request_uri": "https://admin.webuni.com/_profiler/1e1418?panel=exception&type=request",
"method": "GET"
}
|
Stack Trace
|
TypeError
|
|---|
TypeError:
EasyCorp\Bundle\EasyAdminBundle\Dto\BatchActionDto::__construct(): Argument #1 ($name) must be of type string, null given, called in /var/www/html/admin.webuni.com/vendor/easycorp/easyadmin-bundle/src/ArgumentResolver/BatchActionDtoResolver.php on line 31
at vendor/easycorp/easyadmin-bundle/src/Dto/BatchActionDto.php:16
at EasyCorp\Bundle\EasyAdminBundle\Dto\BatchActionDto->__construct()
(vendor/easycorp/easyadmin-bundle/src/ArgumentResolver/BatchActionDtoResolver.php:31)
at EasyCorp\Bundle\EasyAdminBundle\ArgumentResolver\BatchActionDtoResolver->resolve()
(vendor/symfony/http-kernel/Controller/ArgumentResolver/TraceableValueResolver.php:37)
at Symfony\Component\HttpKernel\Controller\ArgumentResolver\TraceableValueResolver->resolve()
(vendor/symfony/http-kernel/Controller/ArgumentResolver.php:91)
at Symfony\Component\HttpKernel\Controller\ArgumentResolver->getArguments()
(vendor/symfony/http-kernel/Controller/TraceableArgumentResolver.php:33)
at Symfony\Component\HttpKernel\Controller\TraceableArgumentResolver->getArguments()
(vendor/symfony/http-kernel/HttpKernel.php:175)
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()
(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/html/admin.webuni.com/vendor/autoload_runtime.php')
(public/index.php:5)
|