Closed tedw closed 4 weeks ago
I should note that this doesn’t appear to be impacting the site’s functionality but I would really like to get rid of this warning if possible.
Let me know if you think this is more likely an Acorn issue and I will submit there instead. Thanks!
After upgrading to the latest version of Acorn and adding an empty .env
file to the theme folder I no longer get the warning.
Cross referencing this since it's possibly related: https://github.com/roots/acorn/issues/380
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. https://github.com/roots/bedrock/blob/23a184557bb04b0e1cff899346ee69ca456bff49/config/application.php#L42Steps 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