Post by Patrikiden » Thu Oct 18, 2018 9:34 pm

Hello, I'm using OC ver 1.5.6.4 and it's heavily modified so an update is not possible. And now my hosting company is updating to PHP 7.2. So is there a way to run OC 1.5.6.4 on PHP 7.2 and if so how to do it?

Thank you.

New member

Posts

Joined
Tue Aug 06, 2013 6:55 am

Post by ADD Creative » Fri Oct 19, 2018 10:19 pm

If it's heavily modified I would strongly recommend you test you whole site fist before changing your live server. You could install on a local web server with PHP 7.2 install or another hosting account that is already on PHP 7.2. Then test as much as of the operation of the store as you can, checking the error logs for any errors.

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));
		}
	}
}
?>

www.add-creative.co.uk


Expert Member

Posts

Joined
Sat Jan 14, 2012 1:02 am
Location - United Kingdom

Post by Patrikiden » Sat Oct 20, 2018 4:05 am

Hey, thank you. Yes i found this and some other sulotions to day, so now it's working. I got some errors at the top of the pages but i turn of thee error thing so now it's fine. Thank you for your help.

Regards

//Patrik Idén

New member

Posts

Joined
Tue Aug 06, 2013 6:55 am

Post by johnp » Tue Oct 23, 2018 5:58 pm

I had this problem and upgraded to OC 1.5.6.5 which worked like a charm. A couple of extensions had to be dropped or tweaked but essentially it worked.

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


User avatar
Active Member

Posts

Joined
Fri Mar 25, 2011 10:25 am
Location - Surrey, UK

Post by johnp » Tue Oct 23, 2018 6:52 pm

PS. How heavily modified is your site? If it's at all possible to upgrade to 1.5.6.5 and redo the changes it might be worth it in the long run.

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


User avatar
Active Member

Posts

Joined
Fri Mar 25, 2011 10:25 am
Location - Surrey, UK

Post by EvolveWebHosting » Wed Oct 24, 2018 6:45 am

johnp wrote:
Tue Oct 23, 2018 6:52 pm
PS. How heavily modified is your site? If it's at all possible to upgrade to 1.5.6.5 and redo the changes it might be worth it in the long run.
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


User avatar
Active Member

Posts

Joined
Fri Mar 27, 2015 11:13 pm
Location - Denver, Colorado, USA

Post by IP_CAM » Wed Oct 24, 2018 7:09 am

1.5.6.4 was the last 1.5.x version and then they went to 2.0
well, only officially, 1.5.6.5_rc has only not been released as final, because
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! :laugh:
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.


User avatar
Legendary Member

Posts

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

Post by johnp » Wed Oct 24, 2018 4:59 pm

You really know your stuff Ernie. :)

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


User avatar
Active Member

Posts

Joined
Fri Mar 25, 2011 10:25 am
Location - Surrey, UK

Post by IP_CAM » Wed Oct 24, 2018 10:05 pm

Well, the Community won't keep it alive, I assume, there is not much Community,
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. :D
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.


User avatar
Legendary Member

Posts

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

Post by johnp » Wed Oct 24, 2018 10:32 pm

I appreciate your views.

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


User avatar
Active Member

Posts

Joined
Fri Mar 25, 2011 10:25 am
Location - Surrey, UK

Post by IP_CAM » Thu Oct 25, 2018 11:59 am

Well, I almost forgot to mention it, another Project, based on OC v.1.5.6.x, still exists.
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 ... :P

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 8)

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 :D
just thinking, it's in my blood ...
Ernie
Last edited by IP_CAM on Fri Oct 26, 2018 10:27 am, edited 1 time in total.

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 johnp » Thu Oct 25, 2018 4:52 pm

Thanks Ernie. I tried PEKU's theme but couldn't get it to work.

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


User avatar
Active Member

Posts

Joined
Fri Mar 25, 2011 10:25 am
Location - Surrey, UK

Post by IP_CAM » Fri Oct 26, 2018 10:24 am

Well, I could spare a copy, just tell me, if you want one with or without the OcMod Extension.
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. :D
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.


User avatar
Legendary Member

Posts

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

Post by ADD Creative » Fri Oct 26, 2018 10:06 pm

johnp wrote:
Wed Oct 24, 2018 4:59 pm
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?
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.

www.add-creative.co.uk


Expert Member

Posts

Joined
Sat Jan 14, 2012 1:02 am
Location - United Kingdom

Post by johnp » Fri Oct 26, 2018 10:31 pm

I'll have a copy without please Ernie. :)

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


User avatar
Active Member

Posts

Joined
Fri Mar 25, 2011 10:25 am
Location - Surrey, UK

Post by johnp » Fri Oct 26, 2018 10:33 pm

ADD Creative wrote:
Fri Oct 26, 2018 10:06 pm
johnp wrote:
Wed Oct 24, 2018 4:59 pm
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?
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.
Great. Where do I find 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


User avatar
Active Member

Posts

Joined
Fri Mar 25, 2011 10:25 am
Location - Surrey, UK

Post by IP_CAM » Sat Oct 27, 2018 1:38 am

johnp wrote:
Fri Oct 26, 2018 10:31 pm
a copy without OcMod please :)
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.


User avatar
Legendary Member

Posts

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

Post by johnp » Sat Oct 27, 2018 1:53 am

Thanks Ernie. I don't need the Openbay bit. :)

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


User avatar
Active Member

Posts

Joined
Fri Mar 25, 2011 10:25 am
Location - Surrey, UK

Post by IP_CAM » Sat Oct 27, 2018 2:22 pm

Good Morning, it's getting late/early for me, since I have to work tonight again,
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! :crazy:
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.


User avatar
Legendary Member

Posts

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

Post by johnp » Sat Oct 27, 2018 5:11 pm

Thanks Ernie. That looks great. If I use it can I still use install other standard OC extensions?

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


User avatar
Active Member

Posts

Joined
Fri Mar 25, 2011 10:25 am
Location - Surrey, UK
Who is online

Users browsing this forum: No registered users and 35 guests