Post by mupcku » Wed Feb 27, 2019 9:09 pm

Hello folks! I know there are a planty of topics, about the mcrypt extension, wchich was removed in the last php version, but after all i cant find a general solution for the problem.
I want to install OpenCart 2.3.0.2 on my hosting running php 7.2. Okay, mcrypt is deprecated, so i can downgrade the php to 7.1 - no problem till now....what about if i install the oc on 7.1 and after that to upgrade the php on 7.2 OR how to remove or change the mcrypt for this oc version?
As i learned, this encryption is used only for payment methods, which probably i will not use on my store.
Thank you!

https://wedeom.bg
Image


Active Member

Posts

Joined
Tue Jan 24, 2017 8:12 pm

Post by straightlight » Wed Feb 27, 2019 9:50 pm

The issue here is the OC version you are using. On recent OC versions, the mcrypt library has been removed due to its deprecation by PHP industry.

Dedication and passion goes to those who are able to push and merge a project.

Regards,
Straightlight
Programmer / Opencart Tester


Legendary Member

Posts

Joined
Mon Nov 14, 2011 11:38 pm
Location - Canada, ON

Post by mupcku » Wed Feb 27, 2019 9:51 pm

straightlight wrote:
Wed Feb 27, 2019 9:50 pm
The issue here is the OC version you are using.
Unfortunately, at the moment im unable to use newer version of oc...

https://wedeom.bg
Image


Active Member

Posts

Joined
Tue Jan 24, 2017 8:12 pm

Post by straightlight » Wed Feb 27, 2019 9:58 pm

Then, you may want to try this extension: https://www.opencart.com/index.php?rout ... n_id=35487

Dedication and passion goes to those who are able to push and merge a project.

Regards,
Straightlight
Programmer / Opencart Tester


Legendary Member

Posts

Joined
Mon Nov 14, 2011 11:38 pm
Location - Canada, ON

Post by mupcku » Wed Feb 27, 2019 10:00 pm

straightlight wrote:
Wed Feb 27, 2019 9:58 pm
Then, you may want to try this extension: https://www.opencart.com/index.php?rout ... n_id=35487
Great! Thanks!

https://wedeom.bg
Image


Active Member

Posts

Joined
Tue Jan 24, 2017 8:12 pm

Post by phoenixsupplies » Thu Feb 20, 2020 9:47 pm

I solved this issue by put in COMMENT the error message validation for mCrypt inside the file

Code: Select all

/install/controller/install/step_2.php change inside private function validate()  
		//if (!function_exists('mcrypt_encrypt')) {
		//	$this->error['warning'] = $this->language->get('error_mcrypt');
		//}
and voila
and after install this extension

Then, you may want to try this extension:
https://www.opencart.com/index.php?rout ... n_id=35487
Last edited by straightlight on Thu Feb 20, 2020 10:05 pm, edited 1 time in total.


Posts

Joined
Thu Feb 20, 2020 9:43 pm

Post by straightlight » Thu Feb 20, 2020 10:06 pm

phoenixsupplies wrote:
Thu Feb 20, 2020 9:47 pm
I solved this issue by put in COMMENT the error message validation for mCrypt inside the file

Code: Select all

/install/controller/install/step_2.php change inside private function validate()  
		//if (!function_exists('mcrypt_encrypt')) {
		//	$this->error['warning'] = $this->language->get('error_mcrypt');
		//}
and voila
and after install this extension
This will only allow you to pass the installation process but it won't prevent the calls to mcrypt from the platform itself which will lead to further problems unless using an extension or the SSL encryption version as opposed to mcrypt.

Dedication and passion goes to those who are able to push and merge a project.

Regards,
Straightlight
Programmer / Opencart Tester


Legendary Member

Posts

Joined
Mon Nov 14, 2011 11:38 pm
Location - Canada, ON
Who is online

Users browsing this forum: No registered users and 104 guests