Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mcrypt_get_iv_size() is deprecated #16329

Closed
richardyanhao opened this issue Nov 9, 2016 · 7 comments
Closed

mcrypt_get_iv_size() is deprecated #16329

richardyanhao opened this issue Nov 9, 2016 · 7 comments

Comments

@richardyanhao
Copy link

richardyanhao commented Nov 9, 2016

  • Laravel Version: 5.1.45
  • PHP Version: 7.1
  • Database Driver & Version:

Description:

mcrypt_get_iv_size() is deprecated by PHP 7.1
what can I do now to make my app work

Steps To Reproduce:

@richardyanhao
Copy link
Author

richardyanhao commented Nov 9, 2016

to solve this just change cipher in app.php from 'MCRYPT_RIJNDAEL_128' to 'AES-256-CBC'

@hardikdangar
Copy link

this issue persists in laravel 4.2 even after changing it to AES-256-CBC.

@GrahamCampbell
Copy link
Member

you need to upgrade to a newer laravel

@hardikdangar
Copy link

hardikdangar commented Nov 14, 2016

@GrahamCampbell in laravel 4.2 new patch was released for php 7 i thought it supports php7.1 so i asked here. there are enterprise apps even if we want we can't upgrade it to 5 yet.

@GrahamCampbell
Copy link
Member

It does still support it. It just uses deprecated features,

@kamil-kielczewski
Copy link

You can use PHP 7 instead of PHP 7.1. For laravel 4 add this to the beginning of the config/app.php:

error_reporting(E_ALL ^ E_DEPRECATED);

It looks dirty, but I'm afraid there is no a better way to avoid the error at the moment.

source here

@leolandotan
Copy link

@kamil-kielczewski This worked for me on Laravel 4.1 on PHP 7.1. Are there any downsides on this or this would appear to make the site work but have some functionalities down? Should I follow the recommendation in https://laracasts.com/discuss/channels/laravel/function-mcrypt-get-iv-size-is-deprecated-error-in-laravel/replies/349042 to upgrade? Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants