Thank you.
You will need to make changes to the system/library/encryption.php file. As this used mcrypt that is no longer included in PHP 7.2.
I'm currently changing over to 7.2 and are using the replacement below. I will remove the fallback to mcrypt later, it's just useful to be able to switch PHP versions. Also not you need to make sure you host has the sodium extension. It should be included as default in PHP 7.2, but some hosts are still not including it.
There are other examples on the forums that use openssl. A search should find them.
Code: Select all
<?php
final class Encryption {
private $key;
public function __construct($key) {
$this->key = $key;
}
public function encrypt($value) {
if (function_exists('sodium_crypto_secretbox')) {
$nonce = random_bytes(SODIUM_CRYPTO_SECRETBOX_NONCEBYTES);
return strtr(base64_encode($nonce . sodium_crypto_secretbox($value, $nonce, hash('sha256', $this->key, true))), '+/=', '-_,');
} else {
return strtr(base64_encode(mcrypt_encrypt(MCRYPT_RIJNDAEL_256, hash('sha256', $this->key, true), $value, MCRYPT_MODE_ECB)), '+/=', '-_,');
}
}
public function decrypt($value) {
if (function_exists('sodium_crypto_secretbox')) {
$raw_value = base64_decode(strtr($value, '-_,', '+/='));
$nonce = substr($raw_value, 0, SODIUM_CRYPTO_SECRETBOX_NONCEBYTES);
return trim(sodium_crypto_secretbox_open(substr($raw_value, SODIUM_CRYPTO_SECRETBOX_NONCEBYTES), $nonce, hash('sha256', $this->key, true)));
} else {
return trim(mcrypt_decrypt(MCRYPT_RIJNDAEL_256, hash('sha256', $this->key, true), base64_decode(strtr($value, '-_,', '+/=')), MCRYPT_MODE_ECB));
}
}
}
?>
Regards
//Patrik Idén
Opencart 1.5.6.5/OC Bootstrap Pro/VQMOD lover, user and geek.
Affordable Service £££ - Opencart Installs, Fixing, Development and Upgrades
Plus Ecommerce, Marketing, Mailing List Management and More
FREE Guidance and Advice at https://www.ecommerce-help.co.uk
Opencart 1.5.6.5/OC Bootstrap Pro/VQMOD lover, user and geek.
Affordable Service £££ - Opencart Installs, Fixing, Development and Upgrades
Plus Ecommerce, Marketing, Mailing List Management and More
FREE Guidance and Advice at https://www.ecommerce-help.co.uk
1.5.6.4 was the last 1.5.x version and then they went to 2.0
2 Week FREE Trial of our Shared Hosting plans (DIrectAdmin or cPanel) for new customers
2 Week FREE Trial of Astra Firewall and Malware Scanner
Visit our website for full details and to start your trial today - www.evolvewebhost.com
well, only officially, 1.5.6.5_rc has only not been released as final, because1.5.6.4 was the last 1.5.x version and then they went to 2.0
OC v.2.0 has been released a few months earlier, and OC did not want to
get Users confused, or then, risk to loose new Version Mod sales, whatever
the reason might have been.
And it still exists on official Github OC, if one knows, where to look for!
https://github.com/opencart/opencart/tr ... 306fb75707
But v.1.5.6.5_rc really has been the best, so far at least, and the only reason,
that it has not been mentioned at the forum, is the fact, that it has no flaws.
Believe it or not, it's just a fact, since nothing yet, before or after this Version,
was so far able, to prove the contrary. At least not around here ...
And with the exception of the encryption.php File, most everything
else works fine with PHP v.7.2x, and this file needs to be changed in later
OC Versions too, to make 'em work with PHP v.7.2x.
(Exept for the default OC INSTALL Routine, which needs to be modified,
to still do it's Job with PHP v.7.x !)
And some OpenCart Mods (all versions) might need to be upgraded a little,
especially when it comes to PHP-7.2x specific Countable Errors like this:
viewtopic.php?f=179&t=205523&p=728536#p728589
https://wiki.php.net/rfc/counting_non_countables
https://wiki.php.net/rfc/counting_non_countables
Whereby, 7.0/7.1 Versions have no problem with the 'old' way of doing this.
---
Ernie
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.
Do you think someone and/or the community will keep 1.5.6.5 running and maybe add in the changes you mentioned and more and release a 1.5.6.6 community version or similar? I love all versions of Opencart but like you am very fond of 1.5.6.5. I can't fault it.
Opencart 1.5.6.5/OC Bootstrap Pro/VQMOD lover, user and geek.
Affordable Service £££ - Opencart Installs, Fixing, Development and Upgrades
Plus Ecommerce, Marketing, Mailing List Management and More
FREE Guidance and Advice at https://www.ecommerce-help.co.uk
in an environment, where it's all about Money, in the first place. I even wondered,
that it worked so long, the way it did. But since Newcomers usually expect latest
Versions always to be the most perfect 'Solutions', most would not even care about
anything else. And Coders need to generate Income, so, for them, it makes no sense,
to participate in something like a Community Project again, like 1.5.5.1 has been for a
while. But OC requires Testers, in order to proceed, so, it's kind of an endless loop,
what keeps OC alive and well, as weary as this may sound.
But it does not keep me, from using, what I know best, and if someone is interested,
I would not mind, to share my 'wisdom', to keep 'my' Version alive and well for another
few Years. And I assume, that it would not hurt the 'System' at all, but only satisfy those,
just looking for a more 'simple' Solution, doing most basic things, in a nice and easy way.
But I am also aware of the Fact, that not everybody will agree, out of different reasons.
And I don't want to end up in 'political' arguments either, it's hard enough already, not
to loose the spirit, surrounded by bunches of mostly 'hidden' figures, just looking for
free Help and Code, or then, to make a buck, but without the slightest intention, to be
part of a free and open Community.
I therefore have no solution, or Idea. But I am ready to participate, if someone has.
Not in Competition with/to OC, but more, to 'round it up'. And it would not hurt 'existing'
things, I assume, but I might be 'off track' with this ideology, for many others, and I am
also aware of this as well, since OC is a commercial Project, after all.
Ernie
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.
I love OC 1.5.6.5 and have several clients making good money using it. For me it's easy to run, fix, adapt and tweak etc etc. Newer is not always better. Long may 1.5.6.5 continue.
Opencart 1.5.6.5/OC Bootstrap Pro/VQMOD lover, user and geek.
Affordable Service £££ - Opencart Installs, Fixing, Development and Upgrades
Plus Ecommerce, Marketing, Mailing List Management and More
FREE Guidance and Advice at https://www.ecommerce-help.co.uk
And (but) it's highly refined, in every aspect, and it left the default OC Way in many
Places for good. So, most everything existing would need to be rewritten, to match.
But since I am not a Coder, but just a 'Thief', I always have to depend on something
similar to exist, to be able to compare. And as long as someone has to depend on one or
two individuals, since nobody around here would be willing or able, to be of assistance,
it would be highly irresponsible for me, to be part of a Project, beeing widely unable,
to use my existing knowledge and ~135 GB 'Reservoir' on and about OC.
https://villagedefrance.net/index.php
---
That's why I stay on the 'default' Line, as 'near' as possible. And famous PEKU's OC-2
Theme adapted 1.5.6.x Extension opened up a wide Field of possibilities, theme-wise
as well as mod-wise, since it mostly only takes a Stylesheet, the header.tpl file, and
possibly some Pic's - plus some minor changes in controller files, if it comes to Mods -
to so be able, to please just about every need, in the upmost simple technical way.
That's why I like it so much, having the best out of both OC-Worlds, combined in near
perfect visual form, and with the already familiar Admin Face, Mods, and handling. And
all the knowledge, I ever need, already exists, and that's even better, than praying here,
to get a really useful reply ...
But I never planned, to get involved on a commercial bases, I would so only loose my spirit
after a while. Mainly due to the plain lack of knowledge, wich likely keeps an honest Swiss
with a tiny rest of Prussian blood, from talking loud But I am also aware of the fact, that
I am already too loud, for some at least, but you can't please 'em all ...
And so far, I could not 'animate' someone, to get engaged, because most around here
probably don't have so much emotional Feelings about OpenCart in the first place, to act
like OC-Freaks.
Or then, they don't believe, that a market might still exist, if the variety of 'products' makes
it attractive enough to get/use it. But that's the Difference, between Fun and Work, more than
ever, and it has to be accepted. I always tried to combine 'em both, since Life makes more fun
this way. Still, after been quite active for a while, the least, what could be done, to show a little
'kindness' in return, could eventually be, to, one day, still 'PHP7+legalize' 1.5.6.5_rc, as THE
final Bootstrap OC Version 1.5.6.5, like the one, made in Finland, just better then without that
surplus OcMod, which is really not of any Use in v.1.5.6.x Versions, without a range of OcMods
I guess, that such a step could be of help for everybody, to keep on, the way it worked so far,
without loosing anything, since it already exists, but possibly gaining popularity again by
those, just looking for a simple+proven Online-Shop, to simply show+sell something online.
And nothing more ...
If you know, what i'm trying to tell ya
just thinking, it's in my blood ...
Ernie
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.
Opencart 1.5.6.5/OC Bootstrap Pro/VQMOD lover, user and geek.
Affordable Service £££ - Opencart Installs, Fixing, Development and Upgrades
Plus Ecommerce, Marketing, Mailing List Management and More
FREE Guidance and Advice at https://www.ecommerce-help.co.uk
I would use one without, because in combination with VqMod, it's as useless as having the
mother in law sleeping besides of your wife in your bed.
Ernie
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.
Someone does. Well for 1.5.5.1 which is basically 1.5.6.x without the OpenBay Pro extension and maybe a few other bits.
Opencart 1.5.6.5/OC Bootstrap Pro/VQMOD lover, user and geek.
Affordable Service £££ - Opencart Installs, Fixing, Development and Upgrades
Plus Ecommerce, Marketing, Mailing List Management and More
FREE Guidance and Advice at https://www.ecommerce-help.co.uk
Great. Where do I find it?ADD Creative wrote: ↑Fri Oct 26, 2018 10:06 pmSomeone does. Well for 1.5.5.1 which is basically 1.5.6.x without the OpenBay Pro extension and maybe a few other bits.
Opencart 1.5.6.5/OC Bootstrap Pro/VQMOD lover, user and geek.
Affordable Service £££ - Opencart Installs, Fixing, Development and Upgrades
Plus Ecommerce, Marketing, Mailing List Management and More
FREE Guidance and Advice at https://www.ecommerce-help.co.uk
I just have to get a 'clean one' made first, after I will be back from work around 01.30,
since all my existing Versions are all Prototypes, in one or the other way ...
Just let me know, if you need:
authorizenet/amazon/ebay/openbay-related code
since I usually remove all that Code, due to beeing involved,
by name at least, frequently in strange hacking attempts. And/or
just not required, to partly even get initialized automatically,
regardless of ever beeing activated/used, or not !
Ernie
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.
Opencart 1.5.6.5/OC Bootstrap Pro/VQMOD lover, user and geek.
Affordable Service £££ - Opencart Installs, Fixing, Development and Upgrades
Plus Ecommerce, Marketing, Mailing List Management and More
FREE Guidance and Advice at https://www.ecommerce-help.co.uk
and I found a very nasty little problem, after a successful install, with a
whole bunch of Mods and Modules already packed, planned to belong to
it by default.
But I made a Pic, so, you can look at it, until that nutty little Header Cart
load problem has been solved. it's gonna be in about 20 hours from now.
Good Night!
Ernie
Image Link:
download/file.php?mode=view&id=35860
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.
Opencart 1.5.6.5/OC Bootstrap Pro/VQMOD lover, user and geek.
Affordable Service £££ - Opencart Installs, Fixing, Development and Upgrades
Plus Ecommerce, Marketing, Mailing List Management and More
FREE Guidance and Advice at https://www.ecommerce-help.co.uk
Users browsing this forum: No registered users and 2 guests