LAMP Laravel ErrorException mcrypt_get_iv_size(): Module initialization failed

Daniel Wassano picture Daniel Wassano · Jun 2, 2014 · Viewed 7.1k times · Source

I installed laravel in my new pc and i'm getting this error:

ErrorException mcrypt_get_iv_size(): Module initialization failed

I copied the project from my old pc. mcrypt is installed and enabled, and other pages that do not use laravel are working. I'm running ubuntu 14.04

I created a new laravel project (using laravel new command) and when i try to access i get:

"Whoops, looks like something went wrong."

I opened the log and the error was:

production.ERROR: exception 'ErrorException' with message 'mcrypt_get_iv_size(): Module initialization failed

any ideas?

Answer

RaySaraiva picture RaySaraiva · Feb 6, 2016

On app/config/app.php just change: 'cipher' => MCRYPT_RIJNDAEL_256,