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

php yii2 error #409

Closed
KichkinaDeveloper opened this issue Jan 28, 2020 · 2 comments
Closed

php yii2 error #409

KichkinaDeveloper opened this issue Jan 28, 2020 · 2 comments

Comments

@KichkinaDeveloper
Copy link

Fatal error: Uncaught Dotenv\Exception\InvalidPathException: Unable to read the environment file at C:\OSPanel\domains\Arifmetika.env. in C:\OSPanel\domains\Arifmetika\vendor\vlucas\phpdotenv\src\Loader.php:106 Stack trace: #0 C:\OSPanel\domains\Arifmetika\vendor\vlucas\phpdotenv\src\Loader.php(83): Dotenv\Loader->ensureFileIsReadable() #1 C:\OSPanel\domains\Arifmetika\vendor\vlucas\phpdotenv\src\Dotenv.php(114): Dotenv\Loader->load() #2 C:\OSPanel\domains\Arifmetika\vendor\vlucas\phpdotenv\src\Dotenv.php(52): Dotenv\Dotenv->loadData() #3 C:\OSPanel\domains\Arifmetika\common\config\env.php(6): Dotenv\Dotenv->load() #4 C:\OSPanel\domains\Arifmetika\backend\web\index.php(7): require('C:\OSPanel\doma...') #5 {main} thrown in C:\OSPanel\domains\Arifmetika\vendor\vlucas\phpdotenv\src\Loader.php on line 106

@KichkinaDeveloper
Copy link
Author

I have got some problem? Pls help me, if someone understand it!

@GrahamCampbell
Copy link
Collaborator

This happens whenever PHP doesn't have permission to read the file, either due to file permissions, or some kind of exclusive lock on the file.

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