Please help.
We are running Opencart 2.1.0.1 with PHP Version 5.6.
Our host has just moved us onto a new VPS server and says we have to update the code to Versions PHP 7.1 to 7.3.
Could anybody advise what we need to do as we are now seemingly going out of business.
https://www.opencart.com/index.php?rout ... n_id=38012
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.
PHP v5.6+ is no longer supported by the Industry. It would be suggested to upgrade to PHP v7.3 or above.Bobbio999 wrote: ↑Wed Mar 25, 2020 11:31 pmHi,
Please help.
We are running Opencart 2.1.0.1 with PHP Version 5.6.
Our host has just moved us onto a new VPS server and says we have to update the code to Versions PHP 7.1 to 7.3.
Could anybody advise what we need to do as we are now seemingly going out of business.
Dedication and passion goes to those who are able to push and merge a project.
Regards,
Straightlight
Programmer / Opencart Tester
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.
As long as you do not use php 7.4 or higher, it is the solution.
Full Stack Web Developer :: Dedicated OpenCart Development & Support DACH Region
Contact for Custom Work / Fast Support.
Where are you or your business is located?
Full Stack Web Developer :: Dedicated OpenCart Development & Support DACH Region
Contact for Custom Work / Fast Support.
Since then, nothing but issues.
Also, their support is off the charts useless. A phone number that is answered after 30 mins by a guy who sounds like he's just woke up, and all he has the authority to do is say he will escalate with the engineers. Result is you may get an email from an engineer over the next 24hours.
Even Government Agencies, like the SWISS POST, are using it.
I use the SMART Solution, but even the STANDARD would do,
if one only uses/has a few Sites. You might check one of the
Sites, I linked below, to find out, how speedy it is.
https://www.hostpoint.ch/
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.
to be according latest spec's. They replace some default OC v.1.5.6.4 - 1.5.6.5_rc
Files, and they might work in older v.1.5.6.x Versions too, but I did not check
on that. It's all about the Pagination Section, where this:
Code: Select all
if (isset($this->request->get['page'])) {
$page = $this->request->get['page'];
} else {
$page = 1;
}
Code: Select all
if (isset($this->request->get['page'])) {
$page = (int)$this->request->get['page'];
} else {
$page = 1;
}
and if it has been done, because of PHP7 , or then for some other reason ...
It's just too far out for a colorblind Coder, to understand... But as long
as something works, and it does, it's ok with me ...
Ernie
PS: The PHP 7+ system/library/encryption.php File is already included too!
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.
That is called: typecasting.
See: https://www.php.net/manual/de/language. ... ggling.php
And has nothing to do with php 7 (or any other version).
Just a small piece of "good" coding (as it should be always when you get a value a user might have "manipulated").
Reason?
Whenever you receive or submit a value, it could be of any type: a string, an integer an so on.
Adding here the (int) transforms the received value in any case into an integer.
So having this (the original)
Code: Select all
$this->request->get['page'];
That's why it is now:
Code: Select all
(int)$this->request->get['page'];
Full Stack Web Developer :: Dedicated OpenCart Development & Support DACH Region
Contact for Custom Work / Fast Support.
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.
Well, just yesterday, I upgraded all my Grandma OC Installs, partly equipped with 100 + VqMods
among a big bunch of Modules, from PHP 7.2.x to PHP 7.3.x, without the slightest problem.
Only by trying to use PHP 7.4.x , it showed some VqMod-related Warning above the Top header
Section, the Page itself still worked. But I did not bother to make further checks, since PHP 7.3.x
will still be sufficient for some Time to come with my 1.5.6.5
Ernie
---
Those system/library/encryption.php files should function in most OC Releases, and
that's all it takes, to make 'em work:
https://gist.github.com/IP-CAM/10e8ce67 ... 8c8af85ddc
https://www.opencart.com/index.php?rout ... n_id=34428
https://www.opencart.com/index.php?rout ... n_id=38012
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.
to do with Opencart itself, but with my Openshop TWEAKS VqModerator, looking for
a no longer existing VqMod (vqmod/openshop/) Subdirectory, originally beeing part
of famous MaxD's OpenShop Extension, and containing the Admin-related VqMods.
But I once moved those Admin VqMods into the default VqMod Sub, and after creating
an (empty) openshop Subdirectory, even my (aged ) OC v.1.5.6.5_rc now works fine
with PHP v.7.4.4. PHP v.7.3 and less just did not bother about it, PHP 7.4.4 does ...
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.
The Line Number might be different, it depends on the VqMod Version used !
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.
There are some very good hosts in the UK and there are some awfully poor ones along with some terrible ones, I used to pay for hosting many many moons ago and after various bad flavours of hosting decided to rent dedicated servers and run my own, after a steep learning curve I now have no downtime, no problems or issues and it all runs smoothly, if I ever have to shout at someone and complain I just look in the mirror.Bobbio999 wrote: ↑Fri Mar 27, 2020 12:53 amWe are located in the UK. We have 7 ecommerce sites, which tsohost moved to VPS server at a cost of £1000 per annum.
Since then, nothing but issues.
Also, their support is off the charts useless. A phone number that is answered after 30 mins by a guy who sounds like he's just woke up, and all he has the authority to do is say he will escalate with the engineers. Result is you may get an email from an engineer over the next 24hours.
If your looking for someone very very good with dedicated servers and VPS's then take a look at Clouvider, they have equipment in London, NY and Amsterdam among others, I use the London data centre and rent Dedicated servers (un-managed), although they do offer managed solutions (I have no experience of their linux skills though). Although at £1000 a year for 7 VPS's, you get what you pay for and without knowing the specs of your existing VPS's and what your running on them and your bandwidth etc etc then its hard to say what you would need from a decent provider.......
From then only php 8.x (best 8.2.x) should be used!
Read: https://endoflife.date/php
Full Stack Web Developer :: Dedicated OpenCart Development & Support DACH Region
Contact for Custom Work / Fast Support.
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 118 guests