Author Topic: PHP Deprecated: Function mcrypt_encrypt()  (Read 914 times)

ptrouw

  • Jr. Member
  • **
  • Posts: 118
PHP Deprecated: Function mcrypt_encrypt()
« 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

robj684

  • Beginner
  • *
  • Posts: 7
  • VirtueMart Version: VM3.0.16
Re: PHP Deprecated: Function mcrypt_encrypt()
« Reply #1 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
Using VM3.016 (carefully overriden to beautifully match my needs) on Joomla! 3.6.5 and PHP 5.6.
Always trying to update to latest VM in combination with latest PHP.

jenkinhill

  • UK Web Developer & Consultant
  • Global Moderator
  • Super Hero
  • *
  • Posts: 26369
  • Always on vacation
    • Jenkin Hill Internet
Re: PHP Deprecated: Function mcrypt_encrypt()
« Reply #2 on: July 13, 2017, 19:47:16 pm »
mcrypt issues are already fixed in the latest file set -  VM3.2.4 under ?final testing.
Kelvyn

Jenkin Hill Internet,
Lowestoft, Suffolk, UK

Unsolicited PMs/emails will be ignored.

Please mention your VirtueMart, Joomla and PHP versions when asking a question in this forum

Currently using VM3.2.6 on Joomla 3.8.2 PHP 7.0.25

Testing VM3.2.6 on J!4alpha1

robj684

  • Beginner
  • *
  • Posts: 7
  • VirtueMart Version: VM3.0.16
Re: PHP Deprecated: Function mcrypt_encrypt()
« Reply #3 on: July 14, 2017, 10:10:21 am »
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
Using VM3.016 (carefully overriden to beautifully match my needs) on Joomla! 3.6.5 and PHP 5.6.
Always trying to update to latest VM in combination with latest PHP.

jenkinhill

  • UK Web Developer & Consultant
  • Global Moderator
  • Super Hero
  • *
  • Posts: 26369
  • Always on vacation
    • Jenkin Hill Internet
Re: PHP Deprecated: Function mcrypt_encrypt()
« Reply #4 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.
Kelvyn

Jenkin Hill Internet,
Lowestoft, Suffolk, UK

Unsolicited PMs/emails will be ignored.

Please mention your VirtueMart, Joomla and PHP versions when asking a question in this forum

Currently using VM3.2.6 on Joomla 3.8.2 PHP 7.0.25

Testing VM3.2.6 on J!4alpha1

robj684

  • Beginner
  • *
  • Posts: 7
  • VirtueMart Version: VM3.0.16
Re: PHP Deprecated: Function mcrypt_encrypt()
« Reply #5 on: July 14, 2017, 18:00:18 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.
Using VM3.016 (carefully overriden to beautifully match my needs) on Joomla! 3.6.5 and PHP 5.6.
Always trying to update to latest VM in combination with latest PHP.

robj684

  • Beginner
  • *
  • Posts: 7
  • VirtueMart Version: VM3.0.16
Re: PHP Deprecated: Function mcrypt_encrypt()
« Reply #6 on: October 14, 2017, 11:45:23 am »
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.
Using VM3.016 (carefully overriden to beautifully match my needs) on Joomla! 3.6.5 and PHP 5.6.
Always trying to update to latest VM in combination with latest PHP.