views:

84

answers:

2

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?

A: 

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.

Stephen Curran
+1  A: 

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:

http://github.com/dhorrigan/codeigniter-uhoh/tree/v1.3

you can also check php.ini:

error_reporting = E_ALL
display_errors = On
Mikelangelo