Unable to auto/manually load database library in codeigniter Unable to auto/manually load database library in codeigniter codeigniter codeigniter

Unable to auto/manually load database library in codeigniter


you can anyway check your server logs or you can enable CI logs by config.php

go to line 206 of your config.php

/*|--------------------------------------------------------------------------| Error Logging Threshold|--------------------------------------------------------------------------|| If you have enabled error logging, you can set an error threshold to| determine what gets logged. Threshold options are:| You can enable error logging by setting a threshold over zero. The| threshold determines what gets logged. Threshold options are:||   0 = Disables logging, Error logging TURNED OFF|   1 = Error Messages (including PHP errors)|   2 = Debug Messages|   3 = Informational Messages|   4 = All Messages|| For a live site you'll usually only enable Errors (1) to be logged otherwise| your log files will fill up very fast.|*/$config['log_threshold'] = 4;

put the value to 4 and check if you have a 775 chmod /logs directory in your /application folder, if not create that, CI will automatically create log files inside that directory.

you'll be able to check any CI error in this way

AS YOU REPORTED FROM the log file

change, database.php line 50 under /config directory:

$db['default']['pconnect'] = TRUE;

to

$db['default']['pconnect'] = FALSE;


OK, based on the logs, when I set

$db['default']['pconnect'] = TRUE;

to

$db['default']['pconnect'] = FALSE;

the database library got loaded.


I had this same issue and spend about 5 hours troubleshooting digging through stack trace and mysql logs. It turns out the cause was unrelated but I am posting here to save anyone the trouble I had.

I build my VM from scratch and I apparently forgot to install the MySQL driver for php5. The symptoms I had are exactly the same, a blank screen - no response at all. To anyone seeing this in the future, make sure you have the mysql driver!! A 30 second fix.