Page 1 of 1

[Resolved] Warning: mCrypt extension needs to be loaded for OpenCart to work! For Opencart 2.3.x.x on PHP 7

Posted: Thu Apr 23, 2020 6:25 pm
by Anyhow Infosystems
Hello All,

When I was going to install opencart 2.3.0.2 in my server having PHP 7, it gave me error of
Warning: mCrypt extension needs to be loaded for OpenCart to work!
. Then I went to the controller and comment the line on which then mCrypt function is checked. Then I easily moved to the next step of the installation.

file: install/controller/install/step_2.php

Code: Select all

		// if (!function_exists('mcrypt_encrypt')) {
		// 	$this->error['warning'] = $this->language->get('error_mcrypt');
		// }
		

Re: [Resolved] Warning: mCrypt extension needs to be loaded for OpenCart to work! For Opencart 2.3.x.x on PHP 7

Posted: Thu Apr 23, 2020 7:21 pm
by OSWorX
And now - what do want to tell us?
And do you really think, your problem (with the encryption) under php 7 are gone now?

Re: [Resolved] Warning: mCrypt extension needs to be loaded for OpenCart to work! For Opencart 2.3.x.x on PHP 7

Posted: Thu Apr 23, 2020 7:48 pm
by straightlight
Anyhow Infosystems wrote:
Thu Apr 23, 2020 6:25 pm
Hello All,

When I was going to install opencart 2.3.0.2 in my server having PHP 7, it gave me error of
Warning: mCrypt extension needs to be loaded for OpenCart to work!
. Then I went to the controller and comment the line on which then mCrypt function is checked. Then I easily moved to the next step of the installation.

file: install/controller/install/step_2.php

Code: Select all

		// if (!function_exists('mcrypt_encrypt')) {
		// 	$this->error['warning'] = $this->language->get('error_mcrypt');
		// }
		
Self-concluded. It does not solved anything to remove a validation but will simply create additional problems in the future while using the platform.

Re: [Resolved] Warning: mCrypt extension needs to be loaded for OpenCart to work! For Opencart 2.3.x.x on PHP 7

Posted: Thu Apr 23, 2020 8:11 pm
by IP_CAM
Just to have it mentioned, for latest 1.5.6.x Versions, a free Extension exists,
to avoid such problems during PHP7 installation, but nothing similar exists
for OC v.2.x Releases, as I'm aware of. It would probably be better, to remove
OC v.2.x Installation Downloads from the Face of the Earth, if nobody seems to
care about, to still make 'em work with latest PHP7 releases. ::)
Ernie

bnit.it mcrypt encryption replacement for opencart 1.5.6.4 PHP7
https://www.opencart.com/index.php?rout ... n_id=38012