- 🇺🇸United States loopy1492
I got this error recently during an upgrade. I think it happened after BLT 13.7.0 to 13.7.1. I suspect this might have been something that was packaged for a short time along with a composer/blt boilerplate and is now defunct. Removed the reference in composer.json and the file itself.
- 🇦🇱Albania elvin - albania drupal developer
in case anybody else stumbles here.
@Toby_toby
You would have to update your load.environment.php file as follows (https://github.com/vlucas/phpdotenv):
<?php use Dotenv\Dotenv; /** * Load any .env file. See /.env.example. * * Drupal has no official method for loading environment variables and uses * getenv() in some places. */ $dotenv = Dotenv::createUnsafeImmutable(__DIR__); $dotenv->safeLoad();
i got the same error after upgrading that package over 2.x and this code fixed it