Message: Class "mysqli_driver" not found during setup

Hi,

I have seen another user post this error, there was no solution in this post however.

Trying to install Invoiceplane. Installed latest versions of php (8.3.6), mariadb and apache2. Had to downgrade php to 8.1 because of the codeIgniter software compatibility. Now I’m stuck at the database portion of setup . I have created a database in MariaDb and specified the admin account I entered during mariadb installation/setup.

Error:

An uncaught Exception was encountered

Type: Error

Message: Class “mysqli_driver” not found

Filename: /var/www/html/vendor/codeigniter/framework/system/database/drivers/mysqli/mysqli_driver.php

Line Number: 123

Backtrace:

File: /var/www/html/application/third_party/MX/Loader.php
Line: 183
Function: DB

File: /var/www/html/application/modules/setup/controllers/Setup.php
Line: 279
Function: database

File: /var/www/html/application/modules/setup/controllers/Setup.php
Line: 216
Function: check_database

File: /var/www/html/index.php
Line: 329
Function: require_once

I have checked and confirmed that /var/www/html/vendor/codeigniter/framework/system/database/drivers/mysqli/mysqli_driver.php
is present and security mode is 777 on this file and the whole conthents of the IP folder actually.

Can you help me out?
many thanks
Michiel

1 Like

First advice:

I have a feeling this is a local system thing instead of CodeIgniter (or its fork) crapping out.

I can remember someone posting the same problem as you mentioned.
I might have given him a few pointers?

Initial thought: php_mysqli (if that still exists)
Whenever we install PHP locally on a (Linux) PC or on a server we install a bunch of PHP packages.

Like fpm, zip, xml you name it.
I still think mysqli is missing from that list.

Second thought: i thought we were using PDO instead of mysqli, so why would that error even occur?

Third thought: Is it possible to use Docker instead? (Only if you can’t get the mysqli problem resolved) try this repository for that: GitHub - InvoicePlane/InvoicePlane-Docker