Shot in the dark... make sure none of your entries in the .env file have any spaces and confirm that the laravel.log file is definitely writable by performing a tail on it
Only Error 500 - Cannot figure out why - not the usual suspects?
In a Vagrant Homestead environment (in Windows via VMware) I can't seem to get a more useful output that the basic error 500 when some scripts have issues. When I forget a necessary "use" or make some other major error, I get the bare Error 500, no additional information. It is making it impossible to debug. For many errors (like forgetting to pass a blade template a variable or failing to specify a route when I call route() I DO get the normal Laravel error page). But for these other errors nothing.
I have gone through every Google result I can find and tried everything I know of, specifically:
- Reset permissions of storage dir
- Reset permissions of bootstrap/cache dir
- Cleared various cache directories
- Checked Laravel log (nothing in it about the failed event at all - which seems odd)
- Checked nginx log (nothing in it about the failed event at all - which seems odd)
- Checked FPM log (nothing in it about the failed event at all)
- Tried inserting my own exception code, per some people's posts, it never is executed/shown
- Tried inserting old error_reporting(E_ALL); ini_set("display_errors", 1); include("file_with_errors.php"); in a few different places per other posts -- nothing.
- Tried resetting the encryption key since someone said that might be an issue (why I don't know) -- nothing
- Tried reverting back to a backup of a week ago to undo symphony/etc. upgrades -- nothing
- Tried composer update -- nothing
- Tried php artisan optimize -- nothing
- My APP_DEBUG setting is right (and again working appropriately on many errors just not certain ones, like missing "use")
My project has ground to a halt because I can't debug even basic issues, and I'm out of ideas for what to try.
Any help greatly appreciated. There has to at least be some easy way I can get the good old native PHP errors back, but I don't know it.
Please or to participate in this conversation.