Ecommerce software home
Shopping Cart Software Forum for Ecommerce Templates
 
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

Find us on Facebook Follow us on Twitter View our YouTube channel
Search our site
Forum Search
Google Site Search
 All Forums
 Technical
 PHP (Unix / Linux / Apache) versions
 ECT v7.4.8 and PHP v8.0 = HTTP Error 500
Author « Topic »  

ITZAP
Ecommerce Template Guru

Australia
1018 Posts

Posted - 03/18/2022 :  19:16:10  
Hi Vince,
quote:
There have been some changes for the PHP version to enable compatibility with PHP 8.1. However we would probably still recommend for now staying on PHP 8.0 which is a fully supported version.
Just updated to latest ECT v7.4.8 and switched to PHP v8.0. However, my website will then not load. The browser message is ... "currently unable to handle this request. HTTP ERROR 500".

Revert back to PHP v7.4 and everything loads and runs fine.
Update to latest PHP v8.1 and everything loads and all runs fine.

Gary

Vince
Administrator

42874 Posts

Posted - 03/20/2022 :  03:34:30  
Hi Gary
Are you able to get the details of the error message from the logs?

Vince

Click Here for Shopping Cart Software
Click Here to sign up for our newsletter
Click Here for the latest updater

ITZAP
Ecommerce Template Guru

Australia
1018 Posts

Posted - 03/20/2022 :  17:50:21  
Hi Vince, when I switch to PHP 8.0 the error_log says:

PHP Fatal error: Uncaught Error: Class "mysqli" not found in ... /vsadmin/db_conn_open.php:14
thrown in ... /vsadmin/db_conn_open.php on line 14

Line 14 is:

$GLOBALS['ectdatabase'] = new mysqli($db_host, $db_username, $db_password, $db_name);

My db_conn_open.php file is identical to the format shown in this threads here >>
MySQL Version: 10.3.34-MariaDB
Why PHP 8.0 would throw that error, but not PHP 8.1, I do not know.

Gary

Edited by - ITZAP on 03/20/2022 18:12:42

Vince
Administrator

42874 Posts

Posted - 03/21/2022 :  01:46:19  
Hi Gary
It sounds like this is just a case of the essential mySQLi extension hasn't been enabled. To do this it's just a case of uncommenting this in the PHP.ini file...

;extension=mysqli

...by removing the semi-colon. You may need to ask your host to do that for you.

Vince

Click Here for Shopping Cart Software
Click Here to sign up for our newsletter
Click Here for the latest updater

ITZAP
Ecommerce Template Guru

Australia
1018 Posts

Posted - 03/21/2022 :  20:39:07  
Aaarrghh Thank you Vince.

This was my fault in presuming that the default set of PHP v8.0 Extensions enabled in cPanel would be adequate to run Ecommerce Templates. Issue resolved now.

Which raises another pertinent topic: Which PHP Extensions should you have enabled?

Regards, Gary

Edited by - ITZAP on 03/21/2022 20:39:53
  « Topic »  
Jump To:
Shopping Cart Software Forum for Ecommerce Templates © 2002-2022 ecommercetemplates.com
This page was generated in 0.03 seconds. Snitz Forums 2000