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
1022 Posts

Pre-sales questions only
(More Details...)

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.[/quote]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
[img]https://itzap.com.au/pics/logo/itzap-website-design-works-mini-logo.png[/img]

Vince
Administrator

43241 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
1022 Posts

Pre-sales questions only
(More Details...)

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

[font=Courier New][code]PHP Fatal error: Uncaught Error: [maroon]Class "mysqli" not found in[/maroon] ... /vsadmin/[maroon]db_conn_open.php[/maroon]:14
thrown in ... /vsadmin/[maroon]db_conn_open.php on line 14[/maroon][/code][/font=Courier New]
Line 14 is:

[font=Courier New][code]$GLOBALS['ectdatabase'] = [red]new mysqli[/red]($db_host, $db_username, $db_password, $db_name);[/code][/font=Courier New]
My [maroon]db_conn_open.php[/maroon] file is identical to the format shown [url="https://www.ecommercetemplates.com/support/topic.asp?TOPIC_ID=107737"][blue]in this threads here >>[/blue][/url]
MySQL Version: 10.3.34-MariaDB
Why PHP 8.0 would throw that error, but not PHP 8.1, I do not know.

Gary
[img]https://itzap.com.au/pics/logo/itzap-website-design-works-mini-logo.png[/img]

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

Vince
Administrator

43241 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
1022 Posts

Pre-sales questions only
(More Details...)

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: [url="https://www.ecommercetemplates.com/support/topic.asp?TOPIC_ID=114687"][blue]Which PHP Extensions should you have enabled?[/blue][/url]

Regards, Gary
[img]https://itzap.com.au/pics/logo/itzap-website-design-works-mini-logo.png[/img]

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