0

Hi, i tried to install php project in localhost using xampp and encounter the error below. Please advise how to solve the issue. Thanks.

A PHP Error was encountered
Severity: 8192
Message: Function mcrypt_get_iv_size() is deprecated
Filename: libraries/Encrypt.php
Line Number: 338
A PHP Error was encountered
Severity: 8192
Message: Function mcrypt_decrypt() is deprecated
Filename: libraries/Encrypt.php
Line Number: 347

3
Contributors
4
Replies
32
Views
5 Months
Discussion Span
Last Post by cereal
2

Hi,

in this case the artisan command won't solve the issue, because it's PHP telling those functions are deprecated as PHP 7.1.0.

The Mcrypt library has been declared deprecated and will be moved to PECL with the release of PHP 7.2.0, this because it relies on libmcrypt which has not been developed or mantained since 2007, see:

To solve, update the code with an alternative library.

Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.