Benbob
Benbob

Reputation: 14264

Codeigniter white screen of death on models

If there is an error in my model codeigniter will just show a blank page. I have error reporting set to E_ALL and DB debugging turned on.

Is there any way I can get the errors to show up?

Upvotes: 1

Views: 3243

Answers (3)

Mikelangelo
Mikelangelo

Reputation: 917

check the .htaccess file the root of your site:

# enable PHP error logging
php_flag  log_errors on
php_value error_log  /home/path/public_html/domain/PHP_errors.log

i can recommend downloading the uhoh error exception library for codeigniter (taken from kohana) it is very helpful:

https://github.com/dhrrgn/codeigniter-uhoh

you can also check php.ini:

error_reporting = E_ALL
display_errors = On

Upvotes: 4

Kapeesh Manilal
Kapeesh Manilal

Reputation: 104

For linux users: ensure you set mysqli

$db['default']['dbdriver'] = 'mysqli';

in your database.php file

Upvotes: 1

Stephen Curran
Stephen Curran

Reputation: 7433

I remember getting no error reported if I didn't have the php_mysql module installed and configured for PHP. Maybe check check the output of the phpinfo function to see if the mysql module for PHP is installed.

Thats my best guess.

Upvotes: 1

Related Questions