-
-
Notifications
You must be signed in to change notification settings - Fork 94
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
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.
|
Having the exact same issue here. After deploying on shared hosting environment, this error comes up. I resolved it now by creating an empty .env file in my WP root directory to prevent this warning from showing up. And here's my acorn log:
|
Will look into getting a fix for this. In the mean time, you can create an empty |
Oops! Very sorry, I missed your message above the stack trace saying you had already done that. |
Thanks for your explanation and for looking into this. :) |
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: