Pimcore: Dotenv with Symfony 3.4 doesn't work anymore

Created on 15 Jul 2019  Â·  5Comments  Â·  Source: pimcore/pimcore

Bug Report

After update to Pimcore v6.0.3 with Symfony 3.4 and .env File the System doesn't work anymore.

Following error in the log:
PHP message: PHP Fatal error: Uncaught Error: Call to undefined method Symfony\\Component\\Dotenv\\Dotenv::loadEnv() in /var/www/pimcore/vendor/pimcore/pimcore/lib/Bootstrap.php:180

The loadEnv method exists only in Symfony >4.2

Bug

Most helpful comment

Damn, thanks for reporting - 6.0.4 is on it's way.

All 5 comments

Damn, thanks for reporting - 6.0.4 is on it's way.

I've the same here :
Call to function method_exists() with 'Symfony\Component…' and 'bootEnv' will always evaluate to false.
Call to an undefined method SymfonyComponent\Dotenv\Dotenv::bootEnv().

symfony 4.4

@pierrealexaline please open a new ticket if you're having issues with Symfony 4.4.
Please also include a complete guide how to reproduce the issue.
Thanks!

There's no Dotenv::bootEnv() in Symfony 4.4, it was added in Symfony 5.1.

Also, Pimcore nowhere tries to call it.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

brusch picture brusch  Â·  5Comments

NiklasBr picture NiklasBr  Â·  4Comments

ghost picture ghost  Â·  4Comments

cleggypdc picture cleggypdc  Â·  6Comments

florian25686 picture florian25686  Â·  5Comments