Error 500 Internal Server Error

GET https://yackr.io/admin/message/batch-delete?page=1&sort%5BimageName%5D=DESC

Forwarded to ErrorController (43c234)

Exceptions

  1. Could not convert database value "batch-delete" to Doctrine Type "uuid".

    HTTP 500 Internal Server Error

  2. Invalid UUID.

Stack Trace

is_string($value) && strlen($value) > 32 ? substr($value, 0, 20) . '...' : $value,
$toType,
);
}
return new self($message, 0, $previous);
}
}
ValueNotConvertible::new() in vendor/symfony/doctrine-bridge/Types/AbstractUidType.php (line 103)
throw InvalidType::new($value, $this->getName(), ['null', 'string', AbstractUid::class]);
}
private function throwValueNotConvertible(mixed $value, \Throwable $previous): never
{
throw ValueNotConvertible::new($value, $this->getName(), null, $previous);
}
}
AbstractUidType->throwValueNotConvertible() in vendor/symfony/doctrine-bridge/Types/AbstractUidType.php (line 82)
}
try {
return $this->getUidClass()::fromString($value)->$toString();
} catch (\InvalidArgumentException $e) {
$this->throwValueNotConvertible($value, $e);
}
}
public function requiresSQLCommentHint(AbstractPlatform $platform): bool
{
AbstractUidType->convertToDatabaseValue() in vendor/doctrine/dbal/src/Connection.php (line 1361)
if (is_string($type)) {
$type = Type::getType($type);
}
if ($type instanceof Type) {
$value = $type->convertToDatabaseValue($value, $this->getDatabasePlatform());
$bindingType = $type->getBindingType();
} else {
$bindingType = $type;
}
Connection->getBindingInfo() in vendor/doctrine/dbal/src/Connection.php (line 1312)
$bindIndex = 1;
foreach ($params as $key => $value) {
if (array_key_exists($key, $types)) {
$type = $types[$key];
[$value, $bindingType] = $this->getBindingInfo($value, $type);
} else {
$bindingType = ParameterType::STRING;
}
try {
Connection->bindParameters() in vendor/doctrine/dbal/src/Connection.php (line 798)
if (count($params) > 0) {
[$sql, $params, $types] = $this->expandArrayParameters($sql, $params, $types);
$stmt = $connection->prepare($sql);
$this->bindParameters($stmt, $params, $types);
$result = $stmt->execute();
} else {
$result = $connection->query($sql);
}
): object|null {
$this->switchPersisterContext(null, $limit);
$sql = $this->getSelectSQL($criteria, $assoc, $lockMode, $limit, null, $orderBy);
[$params, $types] = $this->expandParameters($criteria);
$stmt = $this->conn->executeQuery($sql, $params, $types);
if ($entity !== null) {
$hints[Query::HINT_REFRESH] = true;
$hints[Query::HINT_REFRESH_ENTITY] = $entity;
}
/**
* {@inheritDoc}
*/
public function loadById(array $identifier, object|null $entity = null): object|null
{
return $this->load($identifier, $entity);
}
/**
* {@inheritDoc}
*/
BasicEntityPersister->loadById() in vendor/doctrine/orm/src/EntityManager.php (line 376)
case $lockMode === LockMode::PESSIMISTIC_READ:
case $lockMode === LockMode::PESSIMISTIC_WRITE:
return $persister->load($sortedId, null, null, [], $lockMode);
default:
return $persister->loadById($sortedId);
}
}
public function getReference(string $entityName, mixed $id): object|null
{
EntityManager->find() in vendor/doctrine/orm/src/EntityRepository.php (line 87)
* @return object|null The entity instance or NULL if the entity can not be found.
* @phpstan-return ?T
*/
public function find(mixed $id, LockMode|int|null $lockMode = LockMode::NONE, int|null $lockVersion = null): object|null
{
return $this->em->find($this->entityName, $id, $lockMode, $lockVersion);
}
/**
* Finds all entities in the repository.
*
public function find(mixed $id, LockMode|int|null $lockMode = LockMode::NONE, int|null $lockVersion = null): object|null
{
/** @psalm-suppress InvalidReturnStatement This proxy is used only in combination with newer parent class */
return ($this->repository ??= $this->resolveRepository())
->find($id, $lockMode ?? LockMode::NONE, $lockVersion);
}
/**
* {@inheritDoc}
*
ServiceEntityRepository->find() in vendor/easycorp/easyadmin-bundle/src/Factory/EntityFactory.php (line 131)
* @param class-string $entityFqcn
*/
private function getEntityInstance(string $entityFqcn, mixed $entityIdValue): object
{
$entityManager = $this->getEntityManager($entityFqcn);
if (null === $entityInstance = $entityManager->getRepository($entityFqcn)->find($entityIdValue)) {
$entityIdName = $entityManager->getClassMetadata($entityFqcn)->getIdentifierFieldNames()[0];
throw new EntityNotFoundException(['entity_name' => $entityFqcn, 'entity_id_name' => $entityIdName, 'entity_id_value' => $entityIdValue]);
}
EntityFactory->getEntityInstance() in vendor/easycorp/easyadmin-bundle/src/Factory/EntityFactory.php (line 90)
* @param class-string|null $entityFqcn
*/
private function doCreate(?string $entityFqcn = null, mixed $entityId = null, string|Expression|null $entityPermission = null, ?object $entityInstance = null): EntityDto
{
if (null === $entityInstance && null !== $entityFqcn) {
$entityInstance = null === $entityId ? null : $this->getEntityInstance($entityFqcn, $entityId);
}
if (null !== $entityInstance && null === $entityFqcn) {
if ($entityInstance instanceof Proxy) {
$entityInstance->__load();
/**
* @param class-string $entityFqcn
*/
public function create(string $entityFqcn, mixed $entityId = null, string|Expression|null $entityPermission = null): EntityDto
{
return $this->doCreate($entityFqcn, $entityId, $entityPermission);
}
public function createForEntityInstance(object $entityInstance): EntityDto
{
return $this->doCreate(null, null, null, $entityInstance);
return null;
}
$entityId = EntityIdReader::fromRequest($request);
return $this->entityFactory->create($crudDto->getEntityFqcn(), $entityId, $crudDto->getEntityPermission());
}
}
AdminContextFactory->getEntityDto() in vendor/easycorp/easyadmin-bundle/src/Factory/AdminContextFactory.php (line 68)
$filters = $this->getFilters($dashboardController, $crudController);
// build a first version of CrudDto without actions so we can create AdminContext, which is
// needed for action extensions; later, we'll update the CrudDto object with the full action config
$crudDto = $this->getCrudDto($this->adminControllers, $dashboardController, $crudController, new ActionConfigDto(), $filters, $crudAction, $pageName);
$entityDto = $this->getEntityDto($request, $crudDto);
$searchDto = $this->getSearchDto($request, $crudDto);
$i18nDto = $this->getI18nDto($request, $dashboardDto, $crudDto, $entityDto);
$templateRegistry = $this->getTemplateRegistry($dashboardController, $crudDto);
$user = $this->getUser($this->tokenStorage);
$actionName = $request->attributes->get(EA::CRUD_ACTION);
$crudControllerInstance = $this->controllerFactory->getCrudControllerInstance($crudControllerFqcn, $actionName, $request);
try {
$adminContext = $this->adminContextFactory->create($request, $dashboardControllerInstance, $crudControllerInstance, $actionName);
} catch (BaseException $e) {
// if context creation fails (e.g. entity not found), create a context
// without the entity so the ExceptionListener can still render the
// EasyAdmin error page with the proper layout. To prevent the entity from
// being loaded again, the entity ID must be removed from everywhere it can be
AdminRouterSubscriber->onKernelRequest() in vendor/symfony/event-dispatcher/Debug/WrappedListener.php (line 122)
$this->priority ??= $dispatcher->getListenerPriority($eventName, $this->listener);
$e = $this->stopwatch->start($this->name, 'event_listener');
try {
($this->optimizedListener ?? $this->listener)($event, $eventName, $dispatcher);
} finally {
if ($e->isStarted()) {
$e->stop();
}
}
foreach ($listeners as $listener) {
if ($stoppable && $event->isPropagationStopped()) {
break;
}
$listener($event, $eventName, $this);
}
} finally {
if ($e->isStarted()) {
$e->stop();
}
TraceableEventDispatcher->dispatch() in vendor/symfony/http-kernel/HttpKernel.php (line 174)
*/
private function handleRaw(Request $request, int $type = self::MAIN_REQUEST, ?ControllerMetadata &$controllerMetadata = null): Response
{
// request
$event = new RequestEvent($this, $request, $type);
$this->dispatcher->dispatch($event, KernelEvents::REQUEST);
if ($event->hasResponse()) {
return $this->filterResponse($event->getResponse(), $request, $type);
}
HttpKernel->handleRaw() in vendor/symfony/http-kernel/HttpKernel.php (line 80)
$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;
}
HttpKernel->handle() in vendor/symfony/http-kernel/Kernel.php (line 156)
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();
HttpKernelRunner->run() in vendor/autoload_runtime.php (line 32)
$app = $app(...$args);
exit(
$runtime
->getRunner($app)
->run()
);
require_once('/var/www/html/webapp/vendor/autoload_runtime.php') in public/index.php (line 5)
<?php
use 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']);
};

Stack Trace

public function __construct(string $uuid, bool $checkVariant = false)
{
$type = preg_match('{^[0-9a-f]{8}(?:-[0-9a-f]{4}){3}-[0-9a-f]{12}$}Di', $uuid) ? (int) $uuid[14] : false;
if (false === $type || (static::TYPE ?: $type) !== $type) {
throw new InvalidArgumentException(\sprintf('Invalid UUID%s.', static::TYPE ? 'v'.static::TYPE : ''), $uuid);
}
$this->uid = strtolower($uuid);
if ($checkVariant && !\in_array($this->uid[19], ['8', '9', 'a', 'b'], true)) {
Uuid->__construct() in vendor/symfony/uid/Uuid.php (line 61)
if (36 !== \strlen($uuid)) {
$uuid = self::transformToRfc9562($uuid, self::FORMAT_ALL);
}
if (__CLASS__ !== static::class || 36 !== \strlen($uuid)) {
return new static($uuid);
}
if (!\in_array($uuid[19], ['8', '9', 'a', 'b', 'A', 'B'], true)) {
if (self::NIL === $uuid) {
return new NilUuid();
if (!\is_string($value)) {
$this->throwInvalidType($value);
}
try {
return $this->getUidClass()::fromString($value)->$toString();
} catch (\InvalidArgumentException $e) {
$this->throwValueNotConvertible($value, $e);
}
}
AbstractUidType->convertToDatabaseValue() in vendor/doctrine/dbal/src/Connection.php (line 1361)
if (is_string($type)) {
$type = Type::getType($type);
}
if ($type instanceof Type) {
$value = $type->convertToDatabaseValue($value, $this->getDatabasePlatform());
$bindingType = $type->getBindingType();
} else {
$bindingType = $type;
}
Connection->getBindingInfo() in vendor/doctrine/dbal/src/Connection.php (line 1312)
$bindIndex = 1;
foreach ($params as $key => $value) {
if (array_key_exists($key, $types)) {
$type = $types[$key];
[$value, $bindingType] = $this->getBindingInfo($value, $type);
} else {
$bindingType = ParameterType::STRING;
}
try {
Connection->bindParameters() in vendor/doctrine/dbal/src/Connection.php (line 798)
if (count($params) > 0) {
[$sql, $params, $types] = $this->expandArrayParameters($sql, $params, $types);
$stmt = $connection->prepare($sql);
$this->bindParameters($stmt, $params, $types);
$result = $stmt->execute();
} else {
$result = $connection->query($sql);
}
): object|null {
$this->switchPersisterContext(null, $limit);
$sql = $this->getSelectSQL($criteria, $assoc, $lockMode, $limit, null, $orderBy);
[$params, $types] = $this->expandParameters($criteria);
$stmt = $this->conn->executeQuery($sql, $params, $types);
if ($entity !== null) {
$hints[Query::HINT_REFRESH] = true;
$hints[Query::HINT_REFRESH_ENTITY] = $entity;
}
/**
* {@inheritDoc}
*/
public function loadById(array $identifier, object|null $entity = null): object|null
{
return $this->load($identifier, $entity);
}
/**
* {@inheritDoc}
*/
BasicEntityPersister->loadById() in vendor/doctrine/orm/src/EntityManager.php (line 376)
case $lockMode === LockMode::PESSIMISTIC_READ:
case $lockMode === LockMode::PESSIMISTIC_WRITE:
return $persister->load($sortedId, null, null, [], $lockMode);
default:
return $persister->loadById($sortedId);
}
}
public function getReference(string $entityName, mixed $id): object|null
{
EntityManager->find() in vendor/doctrine/orm/src/EntityRepository.php (line 87)
* @return object|null The entity instance or NULL if the entity can not be found.
* @phpstan-return ?T
*/
public function find(mixed $id, LockMode|int|null $lockMode = LockMode::NONE, int|null $lockVersion = null): object|null
{
return $this->em->find($this->entityName, $id, $lockMode, $lockVersion);
}
/**
* Finds all entities in the repository.
*
public function find(mixed $id, LockMode|int|null $lockMode = LockMode::NONE, int|null $lockVersion = null): object|null
{
/** @psalm-suppress InvalidReturnStatement This proxy is used only in combination with newer parent class */
return ($this->repository ??= $this->resolveRepository())
->find($id, $lockMode ?? LockMode::NONE, $lockVersion);
}
/**
* {@inheritDoc}
*
ServiceEntityRepository->find() in vendor/easycorp/easyadmin-bundle/src/Factory/EntityFactory.php (line 131)
* @param class-string $entityFqcn
*/
private function getEntityInstance(string $entityFqcn, mixed $entityIdValue): object
{
$entityManager = $this->getEntityManager($entityFqcn);
if (null === $entityInstance = $entityManager->getRepository($entityFqcn)->find($entityIdValue)) {
$entityIdName = $entityManager->getClassMetadata($entityFqcn)->getIdentifierFieldNames()[0];
throw new EntityNotFoundException(['entity_name' => $entityFqcn, 'entity_id_name' => $entityIdName, 'entity_id_value' => $entityIdValue]);
}
EntityFactory->getEntityInstance() in vendor/easycorp/easyadmin-bundle/src/Factory/EntityFactory.php (line 90)
* @param class-string|null $entityFqcn
*/
private function doCreate(?string $entityFqcn = null, mixed $entityId = null, string|Expression|null $entityPermission = null, ?object $entityInstance = null): EntityDto
{
if (null === $entityInstance && null !== $entityFqcn) {
$entityInstance = null === $entityId ? null : $this->getEntityInstance($entityFqcn, $entityId);
}
if (null !== $entityInstance && null === $entityFqcn) {
if ($entityInstance instanceof Proxy) {
$entityInstance->__load();
/**
* @param class-string $entityFqcn
*/
public function create(string $entityFqcn, mixed $entityId = null, string|Expression|null $entityPermission = null): EntityDto
{
return $this->doCreate($entityFqcn, $entityId, $entityPermission);
}
public function createForEntityInstance(object $entityInstance): EntityDto
{
return $this->doCreate(null, null, null, $entityInstance);
return null;
}
$entityId = EntityIdReader::fromRequest($request);
return $this->entityFactory->create($crudDto->getEntityFqcn(), $entityId, $crudDto->getEntityPermission());
}
}
AdminContextFactory->getEntityDto() in vendor/easycorp/easyadmin-bundle/src/Factory/AdminContextFactory.php (line 68)
$filters = $this->getFilters($dashboardController, $crudController);
// build a first version of CrudDto without actions so we can create AdminContext, which is
// needed for action extensions; later, we'll update the CrudDto object with the full action config
$crudDto = $this->getCrudDto($this->adminControllers, $dashboardController, $crudController, new ActionConfigDto(), $filters, $crudAction, $pageName);
$entityDto = $this->getEntityDto($request, $crudDto);
$searchDto = $this->getSearchDto($request, $crudDto);
$i18nDto = $this->getI18nDto($request, $dashboardDto, $crudDto, $entityDto);
$templateRegistry = $this->getTemplateRegistry($dashboardController, $crudDto);
$user = $this->getUser($this->tokenStorage);
$actionName = $request->attributes->get(EA::CRUD_ACTION);
$crudControllerInstance = $this->controllerFactory->getCrudControllerInstance($crudControllerFqcn, $actionName, $request);
try {
$adminContext = $this->adminContextFactory->create($request, $dashboardControllerInstance, $crudControllerInstance, $actionName);
} catch (BaseException $e) {
// if context creation fails (e.g. entity not found), create a context
// without the entity so the ExceptionListener can still render the
// EasyAdmin error page with the proper layout. To prevent the entity from
// being loaded again, the entity ID must be removed from everywhere it can be
AdminRouterSubscriber->onKernelRequest() in vendor/symfony/event-dispatcher/Debug/WrappedListener.php (line 122)
$this->priority ??= $dispatcher->getListenerPriority($eventName, $this->listener);
$e = $this->stopwatch->start($this->name, 'event_listener');
try {
($this->optimizedListener ?? $this->listener)($event, $eventName, $dispatcher);
} finally {
if ($e->isStarted()) {
$e->stop();
}
}
foreach ($listeners as $listener) {
if ($stoppable && $event->isPropagationStopped()) {
break;
}
$listener($event, $eventName, $this);
}
} finally {
if ($e->isStarted()) {
$e->stop();
}
TraceableEventDispatcher->dispatch() in vendor/symfony/http-kernel/HttpKernel.php (line 174)
*/
private function handleRaw(Request $request, int $type = self::MAIN_REQUEST, ?ControllerMetadata &$controllerMetadata = null): Response
{
// request
$event = new RequestEvent($this, $request, $type);
$this->dispatcher->dispatch($event, KernelEvents::REQUEST);
if ($event->hasResponse()) {
return $this->filterResponse($event->getResponse(), $request, $type);
}
HttpKernel->handleRaw() in vendor/symfony/http-kernel/HttpKernel.php (line 80)
$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;
}
HttpKernel->handle() in vendor/symfony/http-kernel/Kernel.php (line 156)
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();
HttpKernelRunner->run() in vendor/autoload_runtime.php (line 32)
$app = $app(...$args);
exit(
$runtime
->getRunner($app)
->run()
);
require_once('/var/www/html/webapp/vendor/autoload_runtime.php') in public/index.php (line 5)
<?php
use 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']);
};