'Unable to read the "../.dev.env" environment file in Dotenv.php:symfony
I want To run a symfony project in my computer but I get all times errors , and now I get this error and i didn't find any solution for my problem
Problem Failed to parse output as xml: Error on line 2: Content is not allowed in prolog.. Command C:\xampp\php\php.exe C:\xampp\htdocs\buzzaka\bin\console list --format=xml Output
Fatal error: Uncaught Symfony\Component\Dotenv\Exception\PathException: Unable to read the "C:\xampp\htdocs\buzzaka\bin/../.dev.env" environment file. in C:\xampp\htdocs\buzzaka\vendor\symfony\dotenv\Dotenv.php:466 Stack trace:
0 C:\xampp\htdocs\buzzaka\vendor\symfony\dotenv\Dotenv.php(51): Symfony\Component\Dotenv\Dotenv->doLoad(false, Array)
1 C:\xampp\htdocs\buzzaka\bin\console(38): Symfony\Component\Dotenv\Dotenv->load('C:\xampp\htdocs...')
2 {main} thrown in C:\xampp\htdocs\buzzaka\vendor\symfony\dotenv\Dotenv.php on line 466
Solution 1:[1]
The error is quite explicit, do you have a file C:\xampp\htdocs\buzzaka\bin/../.dev.env
?
Well, you need to create one. As announced a little while ago, Symfony will now require a .env file per environment. As you are running your command in the dev environment, you need to create a .dev.env file.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|---|
Solution 1 |