Stefano Maglione
Stefano Maglione

Reputation: 4150

Laravel exception on WAMP windows server

I have installed a Laravel application on WAMP in a window server and I receive this error:

"Call to undefined function Illuminate\Encryption\openssl_cipher_iv_length()"

I cannot figure out the reason.

-- UPDATE --

I found out that MCrypt module is missing from the php extension folder, now the problem is how to install it :)

Upvotes: 3

Views: 2974

Answers (3)

Sebastian Duran
Sebastian Duran

Reputation: 115

Make enable extension=openssl in both php.ini files, php and apache directories

Upvotes: 0

user783388
user783388

Reputation:

Make sure you update Wampserver, PHP AND Apache:

Exit running Wamp Server

From [Wamp][1]:
- Install the Visual c++ packages,
- Update Wamp Server
- Update PHP
- Update Apache

Switch to the newest PHP:
 - Wamp TrayIcon->PHP->Version-> 7.x.x

Switch to the newest Apache Version
 - Wamp TrayIcon->Apache->Version-> 2.x.x

Upvotes: 0

Sletheren
Sletheren

Reputation: 2476

Solution 1:

Enable this extension (php_mcrypt.dll) in your php.ini file:

extension=php_mcrypt.dll

And then restart WAMP.

Solution 2:

For laravel look into config/app.php under 'cipher' and replace CRYPT_RIJNDAEL_128 with 'AES-128-CBC'

Upvotes: 2

Related Questions