Post by sicotommo » Fri Jul 06, 2018 11:55 pm

Does any one know how to get OC 2.3.0 working on PHP7.2 where mcrypt has been removed? OC 2.3.0 needs mcrypt, is there a workaround similar to the 1.5.6.4 workaround described in this forum?

Thanks for any assistance!

New member

Posts

Joined
Wed Jul 27, 2011 8:55 am

Post by straightlight » Sat Jul 07, 2018 12:41 am

Request already posted here: viewtopic.php?f=181&t=199924#p728423 . Duplicated post.

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 raptorheli » Sat Dec 01, 2018 4:16 am

Same problem with OC 2.1.0.2 PHP7.2
php error mCrypt extension needs to be loaded

Anyone know a workaround on this issue

New member

Posts

Joined
Tue Mar 05, 2013 1:35 pm

Post by IP_CAM » Sat Dec 01, 2018 8:07 am

Just install one of the PHP-7-capable system/library/encryption.php
files, to possibly sp avoid this mcrypt to be called/used anymore.
Ernie
PS: They work for older v.1.5.x Versions as well, just to have it mentioned.
viewtopic.php?f=181&t=199924
viewtopic.php?f=19&t=207673
You could try one of those, placed in the ZIP File enclosed, but avoid the
one, also requiring the bcrypt.php File, so, check the Code first,
if this file name exists.

My Github OC Site: https://github.com/IP-CAM
5'200 + FREE OC Extensions, on the World's largest private Github OC Repository Archive Site.


User avatar
Legendary Member

Posts

Joined
Tue Mar 04, 2014 1:37 am
Location - Switzerland

Post by raptorheli » Sat Dec 01, 2018 6:46 pm

Thanks IP_CAM for your reply ,but still the same issue , using OC 2.1.0.2

Tried those encryption files , placed in the ZIP File (avoided the one, also requiring the bcrypt.php) , but the same problem remains , php complaining about the mcrypt extension

After replaced encryption.php file ,the The website will not load
Warning: mcrypt php extension must be enabled in php settings.
mCrypt from the host is off and is not implemented in PHP Version 7.2 .

Host server settings
----------------------------------
Setting Required Server Status
PHP Version >= 5.3 7.2.12
Safe Mode Off Off
Register Globals Off Off
Magic Quotes GPC Off Off
Session Auto Start Off Off
Allow Url Fopen On On
mCrypt On Off
File Uploads On On
Cookies On On
Extensions Required Current Status
Database (MYSQLI) On On
GD On On
Curl On On
Fsock On On
Zip On On
Xml On On

Thanks for any assistance!

New member

Posts

Joined
Tue Mar 05, 2013 1:35 pm

Post by IP_CAM » Sun Dec 02, 2018 6:01 am

Well, I would just remove the TWO Code Sections, shown below, in the INSTALL Files,
shown on the Image below, then, you will probably be able, to install it. If they are
no longer used, it will not make a difference, I assume, since that mcrypt thing only
seems to exist in those two OC files, in a default v.2.1.0.2 OC Software, as it looks.
Ernie

Code: Select all

if (!function_exists('mcrypt_encrypt')) {
	$error = 'Warning: mCrypt extension needs to be loaded for OpenCart to work!';
	} 

Code: Select all

if (!function_exists('mcrypt_encrypt')) {
	$this->error['warning'] = 'Warning: mCrypt extension needs to be loaded for OpenCart to work!';
} 
Image

My Github OC Site: https://github.com/IP-CAM
5'200 + FREE OC Extensions, on the World's largest private Github OC Repository Archive Site.


User avatar
Legendary Member

Posts

Joined
Tue Mar 04, 2014 1:37 am
Location - Switzerland
Who is online

Users browsing this forum: No registered users and 45 guests