Cannot declare class Symfony\\Component\\Dotenv\\Dotenv #4713
Unanswered
annemiekebuijs
asked this question in
Q&A
Replies: 1 comment
-
It doesn't look API Platform related |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I have build an api with apiplatform and symfony4.
This has been up and running for almost 2 years now without any problems.
There have been no updates to anything, not to apache, not to the code, but this morning, out of the blue i see this error appearing in the
/etc/httpd/logs/<project>/error.log
PHP Fatal error: Cannot declare class Symfony\\Component\\Dotenv\\Dotenv, because the name is already in use in /var/www/html/<website>/vendor/symfony/dotenv/Dotenv.php on line 26
After restarting apache everything was alright again, but i realy want to know why this happened.
This is composer.json:
Beta Was this translation helpful? Give feedback.
All reactions