Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

EasyCorp\Bundle\EasyAdminBundle\Router\AdminUrlGenerator::setController(): Argument #1 ($crudControllerFqcn) must be of type string, null given #6723

Open
richard4339 opened this issue Jan 15, 2025 · 3 comments
Labels
Milestone

Comments

@richard4339
Copy link
Contributor

EasyAdmin Version: >=4.21.0

Describe the bug

ErrorException: An exception has been thrown during the rendering of a template ("EasyCorp\Bundle\EasyAdminBundle\Router\AdminUrlGenerator::setController(): Argument #1 ($crudControllerFqcn) must be of type string, null given, called in /home/runner/work/user/user/vendor/twig/twig/src/Extension/CoreExtension.php on line 1871").

To Reproduce

public function testIndexPage2(): void
{
  SampleFactory::createMany(5);
  // retrieve the test user
  $testUser = UserFactory::createOne();

  // simulate $testUser being logged in
  $this->client->loginUser($testUser->_real());

  // this examples doesn't use security; in your application you may
  // need to ensure that the user is logged before the test
  $this->client->request(Request::METHOD_GET, $this->generateIndexUrl());
  static::assertResponseIsSuccessful();
}

(OPTIONAL) Additional context
Pretty URLs are on, I have a second identical test just pointing to a different entity/crud where this does not fail, and unlike #6715 this stops working with 4.21.0, though it seems very similar.

Version Success
4.20.8
4.21.0
4.21.1
4.22.0
@javiereguiluz
Copy link
Collaborator

It might have been fixed by #6737.

@javiereguiluz javiereguiluz added this to the 4.x milestone Jan 18, 2025
@allan-simon
Copy link

I've upgraded and it's not fixed when i'm on a custom action WITH a search query in the

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants