Welcome Guest, Not a member yet? Register   Sign In
Showing a white page but i want to see the error!
#1

[eluser]jeanv[/eluser]
Hi everyone,

i would like to know what to do to see the error message, because for the moment i just see white pages and i can't see the php error message that is normally produced? Can anyone help me please ?

thanks
#2

[eluser]fesweb[/eluser]
Add this as the first lines of the controller, before declaring the class...
Code:
ini_set('display_errors',1);
error_reporting(2039);
If you still get a white page, then you're missing a semi-colon or curly brace somewhere.

Be sure to REMOVE THOSE LINES before going live with your project.
#3

[eluser]jeanv[/eluser]
ok thanks a lot !
#4

[eluser]fesweb[/eluser]
Important update!

The parameter for error_reporting should probably be E_ALL. So, use this instead of the above version...
Code:
ini_set('display_errors',1);
error_reporting(E_ALL);
It looks like my previous setting was suppressing CI's own error reporting (it was not showing "Notice" errors).




Theme © iAndrew 2016 - Forum software by © MyBB