Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

miguelbgouveia's avatar

Some PHP errors don't appear in the browser

I'm working in a Laravel 5 application. I have being playing around with configuration values and creating routes, controllers, models and views. I use to view all PHP errors in the browser, but known, I don't understand why, I just get some errors. In some case the browser just return the 500 http error (Internal server error). For example, if I call and url that don't have a correspondent route, I get an error description in the browser. If I have a route pointing to a controller that not exist e only receive the 500 http error. Why this is happen?

0 likes
1 reply
davidfaux's avatar
Level 7

This is usually a permissions problem, specifically on the storage folder, i.e. Laravel cannot write to the log file. Try running chmod -R 755 storage from the root of the project to see if this will sort it out

Please or to participate in this conversation.