VirtueMart Forum

VirtueMart 2 + 3 + 4 => Installation, Migration & Upgrade => Topic started by: ptrouw on April 21, 2017, 11:51:36 AM

Title: PHP Deprecated: Function mcrypt_encrypt()
Post by: ptrouw on April 21, 2017, 11:51:36 AM
I found these entries in apache log error file. Using vm3.2.1 and php7
[21-Apr-2017 04:38:05 CST6CDT] PHP Deprecated:  Function mcrypt_get_iv_size() is deprecated in /home/1/administrator/components/com_virtuemart/helpers/vmcrypt.php on line 50
[21-Apr-2017 04:38:05 CST6CDT] PHP Deprecated:  Function mcrypt_encrypt() is deprecated in /home/1/administrator/components/com_virtuemart/helpers/vmcrypt.php on line 34
Title: Re: PHP Deprecated: Function mcrypt_encrypt()
Post by: robj684 on July 13, 2017, 19:31:07 PM
Same here: J3.7.3 VM3.2.2 (latest but not greatest version) PHP 7.1.5. on localhost (WAMP).

Deprecated: Function mcrypt_get_iv_size() is deprecated in D:\xxx\administrator\components\com_virtuemart\helpers\vmcrypt.php on line 31
Deprecated: Function mcrypt_create_iv() is deprecated in D:\xxx\administrator\components\com_virtuemart\helpers\vmcrypt.php on line 32

Deprecated: Function mcrypt_encrypt() is deprecated in D:\xxx\administrator\components\com_virtuemart\helpers\vmcrypt.php on line 34
Deprecated: Function mcrypt_get_iv_size() is deprecated in D:\xxx\administrator\components\com_virtuemart\helpers\vmcrypt.php on line 50

Deprecated: Function mcrypt_decrypt() is deprecated in D:\xxx\administrator\components\com_virtuemart\helpers\vmcrypt.php on line 61
Title: Re: PHP Deprecated: Function mcrypt_encrypt()
Post by: jenkinhill on July 13, 2017, 19:47:16 PM
mcrypt issues are already fixed in the latest file set -  VM3.2.4 under ?final testing.
Title: Re: PHP Deprecated: Function mcrypt_encrypt()
Post by: robj684 on July 14, 2017, 10:10:21 AM
Quote from: jenkinhill on July 13, 2017, 19:47:16 PM
mcrypt issues are already fixed in the latest file set -  VM3.2.4 under ?final testing.
Sorry I can't find the VM3.2.4
Title: Re: PHP Deprecated: Function mcrypt_encrypt()
Post by: jenkinhill on July 14, 2017, 12:22:27 PM
In SVN - revision 9602 from 3 days ago. http://dev.virtuemart.net/projects/virtuemart/repository  - not for live sites yet.
Title: Re: PHP Deprecated: Function mcrypt_encrypt()
Post by: robj684 on July 14, 2017, 18:00:18 PM
Quote from: jenkinhill on July 14, 2017, 12:22:27 PM
In SVN - revision 9602 from 3 days ago. http://dev.virtuemart.net/projects/virtuemart/repository  - not for live sites yet.
Thanks Kelvyn. I appologise for my ignorance, but is the mentioned revision 9602 a revision of VM3.2.3.9587 and - for ease of communication - is referred to as VM3.2.4 ?
If I understand the working of SVN correctly, the deprecated function is still present in vmcrypt.php revision 9602.
Title: Re: PHP Deprecated: Function mcrypt_encrypt()
Post by: robj684 on October 14, 2017, 11:45:23 AM
Quote from: jenkinhill on July 13, 2017, 19:47:16 PM
mcrypt issues are already fixed in the latest file set -  VM3.2.4 under ?final testing.

Just downloaded VM3.2.4 and tested with Joomla! 3.7.5 / PHP 7.1.10.
The issue concerning deprecated functions mcrypt_get_iv_size() and mcrypt_create_iv() in file \administrator\components\com_virtuemart\helpers\vmcrypt.php on line 31, 32, 34, 50 and 61 has NOT been addressed.
NOTE: You must first set the global Joomla! error reporting to 'maximum', or 'development'

EDIT: Kelvyn, when looking for another warning that is thrown, I hit upon your recent reply https://forum.virtuemart.net/index.php?topic=138450.msg485610#msg485610
I guess it's a matter of priorities on the VM developers' side whether or not to resolve a warning.
Title: Re: PHP Deprecated: Function mcrypt_encrypt()
Post by: ptrouw on January 04, 2018, 15:15:49 PM
I have 3.2.12 installed, J3.8.3 and php 7.1.

I have still have a long list of warning on the deprecated functions mcrypt_get_iv_size() and mcrypt_create_iv().
Should I go back to php 7.0?