• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
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).


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2021 MyBB Group.