- Got any error settings in virtual host config?
- Does it work for plain PHP file with error?
- Got Xdebug installed?
- What is the http status code of the blank page?
[SOLVED] [L5] New: Can't display errors, 500 internal server error
Hi to everyone, I'm new here.
I've set up a new app using laravel, that is working, but every time something is not working I'm getting a Blank page.
For example, the WelcomeController, method index() works correctly, if i do an echo 'Hi'; die; I get 'Hi', but if i write something wrong like function_unkown();, i get nothing, but if i do the same in the public/index.php, errors are showing.
I've setup my .env file with:
APP_ENV=local APP_DEBUG=true
But nothing.
Anyone knows what might be happening.
Any tip or ideas are appreciated.
Thanks to everyone.
Hi to everyone, I've just finished fixing my laravel setup.
First of all, a newbie mistake, sorry!
I enabled logging, but my storage folder wasn't writable, so i got an exception because Laravel could not log anything.
I've found the error following this answer: http://stackoverflow.com/a/21286637 After that, it was very obvious.
Some things I don't understand:
- Why Laravel turns off display_errors by default when 'debug' is set to true.
- Why there's no warning telling you that folder x must be writable (I imagine that you can choose where do you want to save your logs), showing you a pretty message on screen.
Thanks to all !!
@willvincent @alenabdula @bashy @sitesense @kingpabel @andy
I've just marked this post as [SOLVED], maybe it will help somebody, someday.
Please or to participate in this conversation.