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

Exception in middleware console command #504

Open
phavekes opened this issue Dec 1, 2024 · 1 comment
Open

Exception in middleware console command #504

phavekes opened this issue Dec 1, 2024 · 1 comment

Comments

@phavekes
Copy link
Member

phavekes commented Dec 1, 2024

This issue is imported from pivotal - Originaly created at Apr 19, 2021 by Pieter van der Meulen

Starting the console results in the exception below.
This is the prod build, so it shouldn't require this dependency.

[root@test-app sa-mw.test2.surfconext.nl]# php72 ./bin/console 
Symfony\Component\ErrorHandler\Error\ClassNotFoundError^ {#52
  #message: """
    Attempted to load class "LiipTestFixturesBundle" from namespace "Liip\TestFixturesBundle".\n
    Did you forget a "use" statement for another namespace?
    """
  #code: 0
  #file: "/opt/stepup/Stepup-Middleware-4.1.4-20201102121401Z-aff630a1e040fef0cc9170f19cfd6422cbedae7b/src/Kernel.php"
  #line: 23
  trace: {
    /opt/stepup/Stepup-Middleware-4.1.4-20201102121401Z-aff630a1e040fef0cc9170f19cfd6422cbedae7b/src/Kernel.php:23 {
      App\Kernel->registerBundles(): iterable^
      › if ($envs[$this->environment] ?? $envs[\'all\'] ?? false) {
      ›     yield new $class();
      › }
    }
    /opt/stepup/Stepup-Middleware-4.1.4-20201102121401Z-aff630a1e040fef0cc9170f19cfd6422cbedae7b/vendor/symfony/http-kernel/Kernel.php:446 { …}
    /opt/stepup/Stepup-Middleware-4.1.4-20201102121401Z-aff630a1e040fef0cc9170f19cfd6422cbedae7b/vendor/symfony/http-kernel/Kernel.php:133 { …}
    /opt/stepup/Stepup-Middleware-4.1.4-20201102121401Z-aff630a1e040fef0cc9170f19cfd6422cbedae7b/vendor/symfony/framework-bundle/Console/Application.php:169 { …}
    /opt/stepup/Stepup-Middleware-4.1.4-20201102121401Z-aff630a1e040fef0cc9170f19cfd6422cbedae7b/vendor/symfony/framework-bundle/Console/Application.php:75 { …}
    /opt/stepup/Stepup-Middleware-4.1.4-20201102121401Z-aff630a1e040fef0cc9170f19cfd6422cbedae7b/vendor/symfony/console/Application.php:147 { …}
    /opt/stepup/Stepup-Middleware-4.1.4-20201102121401Z-aff630a1e040fef0cc9170f19cfd6422cbedae7b/bin/console:42 { …}
  }
}
2021-04-19T10:08:38+02:00 [critical] Uncaught Error: Class \'Liip\TestFixturesBundle\LiipTestFixturesBundle\' not found
@phavekes
Copy link
Member Author

phavekes commented Dec 1, 2024

Setting --env=prod solves the issue. (Pieter van der Meulen - Apr 19, 2021)

@phavekes phavekes removed their assignment Dec 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: New
Development

No branches or pull requests

1 participant