Im working on product server. When an exception takes place, nothing is seen but a white screen. I expected that it would print where the error was.
Asked
Active
Viewed 61 times
-2
-
Check your error logs – Paul Dessert Apr 21 '14 at 23:47
-
Show us your code John – kimbarcelona Apr 21 '14 at 23:48
-
nothing really to show... "throw new Exception('bla');" and nothing is seen on the screen. Error logs, where? I even turned on all error showings – John Smith Apr 21 '14 at 23:49
-
I cant edit php.ini nor see any log... all I have is an FTP account – John Smith Apr 21 '14 at 23:51
-
I did these: error_reporting(-1); ini_set('error_reporting', E_ALL); ini_set('display_errors', 'On'); //On or Off still no joy – John Smith Apr 21 '14 at 23:53
1 Answers
-1
Did you enable error reporting? By trying:
ini_set('error_reporting', E_ALL);
error_reporting(E_ALL);

Logan Wayne
- 6,001
- 16
- 31
- 49

Vittorio
- 1
-
-
-
error_reporting(NEWLEVEL) returns the previous level: http://php.net/manual/en/function.error-reporting.php so if you get "false" as its result, it means that the previous reporting level was zero – Vittorio Apr 22 '14 at 00:05