-
-
Notifications
You must be signed in to change notification settings - Fork 90
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
open_basedir php warning restriction with shared hostings due to "closest" method #380
Labels
bug
Something isn't working
Comments
Do you have logs from |
Of course, here you have. But the problem arises in closest() method in /vendor/roots/acorn/src/Roots/Acorn/Filesystem/Filesystem.php line 32 because it goes folder by folder searching for an env file until it reaches /home. In my case I am not using bedrock.
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Version
4.2.2
What did you expect to happen?
No php warning in shared hosting
What actually happens?
Origin: https://discourse.roots.io/t/open-basedir-restriction-in-effect-tried-everything/27183/10
The problem is the closest method in /vendor/roots/acorn/src/Roots/Acorn/Filesystem/Filesystem.php
It can be patched in line 32 (this is just a patch, it won't work for specific restrictions in every shared hosting):
Steps to reproduce
Upload roots sage to any shared hosting with open_basedir restriction
System info
No response
Log output
No response
Please confirm this isn't a support request.
Yes
The text was updated successfully, but these errors were encountered: