Page 1 of 1
PHP version requirement affecting OpenCart version 1.5.6
Posted: Tue Oct 29, 2024 4:34 am
by mludiker
I modified an OpenCart version 1.5.6 years ago that has functioned perfectly since 2014. It was to market used cars. No selling process was offered, just presentation of available cars. Now I'm told by hosting that "PHP versions of software older than 7.4 will no longer be supported. You have one or more domains having unsupported PHP versions. Change your PHP setting for increased performance and security.the PHP version" .
They have allowed me temporary access of version 5.3 that will end within days. Is there a simple way to change PHP functions to version 7.4.10 or better without having to rebuild the entire section again? I'm not a coder and modifying the OpenCart template took me a long time. Change to Twig kept me from updating to later versions. Appreciate any direction I can get.
URL of the section is:
http://www.isabellamotors.com/invstock/
Re: PHP version requirement affecting OpenCart version 1.5.6
Posted: Tue Oct 29, 2024 6:57 am
by by mona
There is nothing on your site that will make this difficult to update even for a novice.
Twig is not that difficult and you can find free convertors online.
Googling will provide you with pretty much everything you need to know.
IP_CAM or John P may offer some more pointers but as a quick start.
To upgrade.
1. Back up your site files and database
2. Depending on your host and deal. Set up a development site either live or local.
3. Build OC from scratch or hire a developer to assist.
4. Search marketplace for import export by JNeuhoff and import from your live site to your development site.
https://www.opencart.com/index.php?rout ... sion_id=17
5. Install all the modification and use the error log to fix the errors.
Alternatively get a professional.
[/quote]
Re: PHP version requirement affecting OpenCart version 1.5.6
Posted: Tue Oct 29, 2024 7:57 am
by ADD Creative
You could probably get away with just updating the system/library/encryption.php file for PHP 7.4 compatibility.
There are a few replacements about.
https://github.com/opencart-ce/opencart ... yption.php
Re: PHP version requirement affecting OpenCart version 1.5.6
Posted: Tue Oct 29, 2024 6:01 pm
by johnp
A couple of simple changes and you're good to go. Change the encryption file as others have said. Also change the database driver if necessary.
Re: PHP version requirement affecting OpenCart version 1.5.6
Posted: Wed Oct 30, 2024 1:35 am
by mludiker
Greatly appreciate the quick guidance on this issue. Will try suggestions and any additional posts a on test directory with XAMPP and report what works. OpenCart has been a great application. At my age learning anything beyond old HTML is a real problem.
Thank you very much.
Re: PHP version requirement affecting OpenCart version 1.5.6
Posted: Wed Oct 30, 2024 2:22 am
by johnp
mludiker wrote: ↑Wed Oct 30, 2024 1:35 am
Greatly appreciate the quick guidance on this issue. Will try suggestions and any additional posts a on test directory with XAMPP and report what works. OpenCart has been a great application. At my age learning anything beyond old HTML is a real problem.
Thank you very much.
I would also suggest taking a look at the OC Bootstrap Pro theme. IMO it's the best responsive theme for OC1.5.6.4/5.
https://www.opencart.com/index.php?rout ... n_id=15752
Re: PHP version requirement affecting OpenCart version 1.5.6
Posted: Sun Nov 03, 2024 4:15 pm
by CartCoding
My Website is also base on OC 1.5.6. I have not this trouble because of I use VPS Host. You can choose and install the software's version by yourself on VPS Host.
Re: PHP version requirement affecting OpenCart version 1.5.6
Posted: Tue Nov 12, 2024 2:14 am
by EvolveWebHosting
If you don't want to upgrade your software, you need to find a web hosting provider that offers CloudLinux OS. CloudLinux includes hardened versions of 'outdated' PHP versions. We use it on our servers and have support for PHP 5.x and newer.
Re: PHP version requirement affecting OpenCart version 1.5.6
Posted: Tue Jan 07, 2025 5:17 am
by mludiker

Thank you to all for recommendations/suggestions to solve this issue. A special appreciation to johnp who stepped in and handled the upgrade/repairs to PHP 7.4 mandate for me. Exceptional expertise and friendly service in OpenCart and Word Press.