Home » Php » php – Call to undefined function Illuminate\Encryption\openssl_decrypt()

php – Call to undefined function Illuminate\Encryption\openssl_decrypt()

Posted by: admin July 12, 2020 Leave a comment

Questions:

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?

How to&Answers:

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.

Answer:

Just edit php.ini file and uncomment by removing “;” before this line –extension=openssl. in php.ini file. and it will start working properly.

Answer:

composer install

didn’t fix the problem, but the following does:

composer update