Call to undefined function Illuminate\Encryption\openssl_decrypt()

Przemek Wojtas picture Przemek Wojtas · Mar 22, 2016 · Viewed 32.5k times · Source

I am using xampp and windows along with laravel, everything was working fine, but when I finished work and turned of xampp and try to open my work today morning, this is what I get:

FatalThrowableError in Encrypter.php line 100:
Fatal error: Call to undefined function Illuminate\Encryption\openssl_decrypt()

Encrypter.php is a standard laravel file and I have not even touched it. My extension is turned on.

extension=php_openssl.dll

What might be wrong?

Answer

guyver4mk picture guyver4mk · Mar 22, 2016

If you have shut XAMPP down and restarted it, it may be worth running the composer install command again, or simply running composer update to ensure that all dependancies are being loaded correctly.