Post by testkongen » Wed Jan 31, 2024 5:22 pm

Hello! While trying to upgrade from PHP 8.1 to 8.2, I'm getting an error in system/library/db/mysql.php on line 8 which includes a try-catch block with the following:

Code: Select all

$mysqli = @new \MySQLi($hostname, $username, $password, $database, $port);
How come? Some google-fu leads me to believe that MySQLi isnt installed on the for the php 8.2 image, might this be the case?
Last edited by testkongen on Wed Jan 31, 2024 11:37 pm, edited 1 time in total.

New member

Posts

Joined
Fri Sep 01, 2023 7:01 pm

Post by ADD Creative » Wed Jan 31, 2024 5:27 pm

It would be helpful to post the error you are getting. Look in both the PHP and OpenCart error logs.

www.add-creative.co.uk


Guru Member

Posts

Joined
Sat Jan 14, 2012 1:02 am
Location - United Kingdom

Post by testkongen » Wed Jan 31, 2024 11:30 pm

I did some research after posting this and it was indeed the simply that the 8.2 php image served by my host not having MySQLi installed. Solved

New member

Posts

Joined
Fri Sep 01, 2023 7:01 pm
Who is online

Users browsing this forum: No registered users and 5 guests