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

Error after upgrading EasyAdmin 2 to 3 #3406

Closed
Romaixn opened this issue Jun 27, 2020 · 2 comments
Closed

Error after upgrading EasyAdmin 2 to 3 #3406

Romaixn opened this issue Jun 27, 2020 · 2 comments

Comments

@Romaixn
Copy link
Contributor

Romaixn commented Jun 27, 2020

Hello, I have an error on cache:clear on Symfony 5.0.10.

I just run composer update after change version on composer.json

Error :
Environment variables "APP_ENV" are never used. Please, check your container's configuration.

Anyone know how to solve ?

Thanks.

@javiereguiluz
Copy link
Collaborator

We recently had a similar issue in Symfony when upgrading to 5.1. See symfony/symfony#37123 At the end, we removed the APP_SECRET from that place in the recipe. See symfony/symfony#37154

I haven't seen this problem reported for the APP_ENV env var ... so I think it's not "a Symfony bug". Also, in EasyAdmin we don't use that env var in any feature ... so I'd say it's unrelated to the bundle. Try to look for in which places APP_ENV is defined in your application and see if you can find where it's defined.

Of course, if you find more evidence that this is related to EasyAdmin, please tell me and we'll reopen here. Thanks!

@Romaixn
Copy link
Contributor Author

Romaixn commented Jun 27, 2020

I solved the problem !
I had a "- 'Env: %env(APP_ENV)%'" in my configuration and that was the problem.
Thanks for your answer !

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

No branches or pull requests

2 participants