How to output/display Fatal Errors to browser on HHVM
Asked Answered
S

1

7

After a day searching for solutions i hope to find an answer here.

I'm running Laravel 4.2 on Homestead 2.0 (Vagrant) and i'm trying to get a simple parse error to output to my browser, but instead i keep getting a white screen.

I can find the error by running 'hhvm index.php' on the Vagrant machine, but that's not what i'm looking for, i would like to output it in my browser.

Are there any options to make this happen?

Tried using hhvm: false in my Homestead.yaml but this seems to be ignored? How is it even possible to run Homestead without hhvm? Would solve my problem to -_-.

Found hhvm-fastcgi + nginx how to make it display fatal errors in the browser one but without any answers and from facebook

These are options you put in /etc/hhvm/config.hdf. We are in the process of killing the .hdf file in favor of a standard php.ini

Tried Setting an set_error_handler but doesn't seem to be working either

Any other options?

Shanonshanta answered 18/12, 2014 at 16:51 Comment(3)
Possible duplicate with this #22996347 question.Irving
Could also be something to do with github.com/laravel/homestead/pull/140 - some developers are not seeing exception reporting by the framework due to an Nginx config issue.Boehmenism
Shouldn't be it, i get exceptions, and if use a single php file with a syntax error, same thing is happening and won't show up.Shanonshanta
P
-2

Try going into config > app.php and

//change this
debug' => false,

// to this
debug' => true,

You're running it locally, right? Have you been able to read Laravel errors before?

Good luck!

Pyralid answered 13/1, 2015 at 6:3 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.