Page 1 of 1

PHP8+ Required

Posted: Tue Oct 22, 2024 2:23 am
by beermatmania
Hi. I am trying to upgrade to the latest version 4.0.2.3 but constantly get the above error when trying to install. My server is running php8.2
Any help greatly appreciated. Thanks in advance

Re: PHP8+ Required

Posted: Tue Oct 22, 2024 3:19 am
by ADD Creative
Use phpinfo() where you have uploaded OpenCart to and see which version of PHP it reports.

Re: PHP8+ Required

Posted: Fri Feb 14, 2025 3:18 am
by Elevate
To elaborate:

Create a file called phpinfo.php and put this inside of it

Code: Select all

<?php

// Show all information, defaults to INFO_ALL
phpinfo();

?>
Then upload to the root directory on your server. public_html or user/var/www and open your browser and go to yourdomain.com/phpinfo.php (type in your actual domain)

Once you're done, make sure you delete that file form the server. It's a security risk to leave it uploaded.

Re: PHP8+ Required

Posted: Fri Feb 14, 2025 5:19 am
by johnp
beermatmania wrote:
Tue Oct 22, 2024 2:23 am
Hi. I am trying to upgrade to the latest version 4.0.2.3 but constantly get the above error when trying to install. My server is running php8.2
Any help greatly appreciated. Thanks in advance
Check that you don't have PHP 7.4 or similar in your .htaccess file. If you do, remove it and retry the upgrade.

Re: PHP8+ Required

Posted: Sun Feb 16, 2025 7:59 pm
by beermatmania
Thanks for your replies
I have the following line in htaccess which I don't think is now the problem.
AddHandler application/x-httpd-ea-php82 .php .php8 .phtml
I've now tried to upgrade from 1.5 to 2.3 but when I run install as per the instructions I simply get a blank page with the url ending install/index.php?route=upgrade/upgrade
I've tried upgrading to v3 & 4 but on those I get the php problem
Thanks for any advice

Re: PHP8+ Required

Posted: Sun Feb 16, 2025 11:00 pm
by Cue4cheap
beermatmania wrote:
Sun Feb 16, 2025 7:59 pm
Thanks for your replies
I have the following line in htaccess which I don't think is now the problem.
AddHandler application/x-httpd-ea-php82 .php .php8 .phtml
I've now tried to upgrade from 1.5 to 2.3 but when I run install as per the instructions I simply get a blank page with the url ending install/index.php?route=upgrade/upgrade
I've tried upgrading to v3 & 4 but on those I get the php problem
Thanks for any advice
How about following the post that talks about running phpinfo.php in the directory of your store you are trying to update?
Mike

Re: PHP8+ Required

Posted: Mon Feb 17, 2025 6:47 pm
by xxvirusxx
Better upgrade to 3.0.4.0 and wait for a stable oc 4 release.