Page 1 of 1
OC2.3.0 on PHP7.2
Posted: Fri Jul 06, 2018 11:55 pm
by sicotommo
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!
Re: OC2.3.0 on PHP7.2
Posted: Sat Jul 07, 2018 12:41 am
by straightlight
Request already posted here:
viewtopic.php?f=181&t=199924#p728423 . Duplicated post.
Re: OC2.3.0 on PHP7.2
Posted: Sat Dec 01, 2018 4:16 am
by raptorheli
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
Re: OC2.3.0 on PHP7.2
Posted: Sat Dec 01, 2018 8:07 am
by IP_CAM
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.
Re: OC2.3.0 on PHP7.2
Posted: Sat Dec 01, 2018 6:46 pm
by raptorheli
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!
Re: OC2.3.0 on PHP7.2
Posted: Sun Dec 02, 2018 6:01 am
by IP_CAM
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!';
}
