danWilcz's avatar

Blank Screen on error instead of debug stack-trace

Hi,

I am using Laravel 4.2.16 with homestead 2.

For some reason debug stopped working for me. When I get an error I get a blank screen instead of the laravel debug / stack trace page.

I found a few old threads with similar problems but none of them really helped me does anybody have any idea what would cause this?

  • debug is set to true
  • I used dd(Config::get('app.debug')); to verify that debug mode is on in run-time
  • laravel.log still logs the errors as normal.

The only thing I can see that might be related is:

When I use phpinfo() from the browser I seem to get two php configs, local and master.

The local config has display_errors off while master has it on.

I never touched the homestead php config btw.

Update:

Ok The problem was a bad exception handler in the app/start/global.php file.

0 likes
5 replies
danWilcz's avatar

The other thing is when I set debug to false, I also get the blank screen. I believe I should get the whoops error page.

danWilcz's avatar

I set up the homestead to use a diffrent project and that works properly. So it must be something to do with the app code. I tried deleting vendor directory and doing composer install but that did not change anything.

bashy's avatar

Do you have any error_page stuff inside your Nginx virtual host file?

Please or to participate in this conversation.