CodeIgniter Forums
An uncaught Exception was encountered - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Development (https://forum.codeigniter.com/forumdisplay.php?fid=6)
+--- Forum: CodeIgniter 3.x (https://forum.codeigniter.com/forumdisplay.php?fid=17)
+--- Thread: An uncaught Exception was encountered (/showthread.php?tid=88450)



An uncaught Exception was encountered - horia - 09-10-2023

Hi everyone, I have a problem, after many hours I still haven't figured it out and I hope to have some luck here.
I use CI 3  and vscode as text editor.

This is the message:

An uncaught Exception was encountered
Type: Error
Message: Class "mysqli_driver" not found
Filename: C:\xampp\htdocs\blog\system\database\drivers\mysqli\mysqli_driver.php
Line Number: 125
Backtrace:
File: C:\xampp\htdocs\blog\index.php
Line: 289
Function: require_once

What do you think could be the cause?


RE: An uncaught Exception was encountered - ozornick - 09-10-2023

Check in console : php -m
mysqli exist?


RE: An uncaught Exception was encountered - InsiteFX - 09-10-2023

Check you php.ini file and make sure that it is not remarked out with a ; (semi-colon).


RE: An uncaught Exception was encountered - horia - 09-11-2023

(09-10-2023, 08:26 PM)ozornick Wrote: Check in console : php -m
mysqli exist?

Hi.Yes, mysqli exist.


RE: An uncaught Exception was encountered - kenjis - 09-11-2023

"php -m" executes the php command. It is not the same PHP as PHP executed with Apache.
Check the result of phpinfo() on your browser.