Deprecated function: in contrib/encrypt/plugins/encryption_methods/mcrypt_aes_cbc.inc

Created on 21 April 2023, over 1 year ago
Updated 9 August 2023, over 1 year ago

After upgraded the version of PHP in 8+ the mcrypt functions are deprecated and facing below deprecation warnings in logs.

Deprecated function: Function mcrypt_module_close() is deprecated in _encrypt_encryption_methods_mcrypt_aes_cbc() (line 105 of /encrypt/plugins/encryption_methods/mcrypt_aes_cbc.inc).

Deprecated function: Function mcrypt_generic_deinit() is deprecated in _encrypt_encryption_methods_mcrypt_aes_cbc() (line 98 of /encrypt/plugins/encryption_methods/mcrypt_aes_cbc.inc).

Deprecated function: Function mdecrypt_generic() is deprecated in _encrypt_encryption_methods_mcrypt_aes_cbc() (line 95 of /encrypt/plugins/encryption_methods/mcrypt_aes_cbc.inc).

Deprecated function: Function mcrypt_generic_init() is deprecated in _encrypt_encryption_methods_mcrypt_aes_cbc() (line 92 of /encrypt/plugins/encryption_methods/mcrypt_aes_cbc.inc).

Deprecated function: Function mcrypt_enc_get_block_size() is deprecated in _encrypt_encryption_methods_mcrypt_aes_cbc() (line 35 of /encrypt/plugins/encryption_methods/mcrypt_aes_cbc.inc).

Deprecated function: Function mcrypt_enc_get_iv_size() is deprecated in _encrypt_encryption_methods_mcrypt_aes_cbc() (line 34 of /encrypt/plugins/encryption_methods/mcrypt_aes_cbc.inc).

Deprecated function: Function mcrypt_module_open() is deprecated in _encrypt_encryption_methods_mcrypt_aes_cbc() (line 33 of /encrypt/plugins/encryption_methods/mcrypt_aes_cbc.inc).

Suppress these above warning please find below attached patch.

🐛 Bug report
Status

Needs review

Version

2.3

Component

Code

Created by

🇮🇳India Pranali.addweb

Live updates comments and jobs are added and updated live.
  • PHP 8.1

    The issue particularly affects sites running on PHP version 8.1.0 or later.

Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024