You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Everything works fine locally but I see the following warning in the WP admin on Pantheon:
file_get_contents(/code/web/wp-content/themes/my_theme/.env): Failed to open stream: No such file or directory
I have an .env file in the app root and have been using Bedrock & Sage for years without issue. I tried changing $dotenv->load(); to $dotenv->safeLoad(); in application.php but it didn’t do anything.
Version
1.24.0
What did you expect to happen?
No warnings displayed
What actually happens?
Everything works fine locally but I see the following warning in the WP admin on Pantheon:
I have an .env file in the app root and have been using Bedrock & Sage for years without issue. I tried changing
$dotenv->load();
to$dotenv->safeLoad();
inapplication.php
but it didn’t do anything.bedrock/config/application.php
Line 42 in 23a1845
Steps to reproduce
Open the WP admin (I’m using Query Monitor fwiw). The warning goes away if I downgrade to Acorn 3.
System info
PHP 8.2, WP 6.5.3, Sage 10, Acorn 4.2.2, and the following Composer deps:
Log output
Please confirm this isn't a support request.
Yes
The text was updated successfully, but these errors were encountered: