Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Call to undefined function Illuminate\Encryption\openssl_decrypt()

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?

like image 772
Przemek Wojtas Avatar asked Mar 22 '16 13:03

Przemek Wojtas


4 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.

like image 125
guyver4mk Avatar answered Oct 23 '22 19:10

guyver4mk


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

like image 37
user13654068 Avatar answered Oct 23 '22 18:10

user13654068


Modify php.ini and enable openssl extension in you php environment.

To find php installation path, run below command in terminal or cmd

php --ini

Output something like below:

Configuration File (php.ini) Path: C:\Windows
Loaded Configuration File:         C:\php-7.3.8\php.ini
Scan for additional .ini files in: (none)
Additional .ini files parsed:      (none)

here mine is Loaded Configuration File is C:\php-7.3.8\php.ini

open php.ini with any editor using vim, nano, notepad++ or any editor.

find extension=openssl remove ;

from ;extension=openssl to extension=openssl

save and restart server.

like image 7
dipenparmar12 Avatar answered Oct 23 '22 20:10

dipenparmar12


composer install

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

composer update
like image 1
thens Avatar answered Oct 23 '22 20:10

thens