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

Asser90's avatar

Laravel randomly serves blank page on specific route.

Hi there.

So i've created a quiz "app" using laravel.

Yesterday we tried serving the app in production. However almost every time the user ended a test and was sent to the result page, it was served as a blank page.

No php errors No Larave logs. Nothing.

Anyone have any idea why this is happening ?

0 likes
4 replies
Sergiu17's avatar

Hi, check storage folder permission, you may have restrictions to write logs, after sudo chmod 775 -R /storage logs may appear

aurawindsurfing's avatar

In production, you have app debug disabled.

APP_DEBUG=false

If you enable it, since it is a test app, you will see the errors hopefully.

Never ever do it in your real app since all your credentials will be revealed to the public ;-)

Hope it helps!

1 like
Asser90's avatar

I forgot to mention. That all other stuff is correctly logged in phperrors and laravel logs.

App_debug is set to true (even tho it was in production).

Well end of story is that my env wassent different from my local.

Please know that everything is hidden by htpasswd too, and only a select few(20 users) on our network had access..

aurawindsurfing's avatar

Well if it is not app error then you need to dig deeper and look at your server directly for errors:

cd /var/log
ls
ls -rlt - will show you latest updated log files
date - will show you what time it is on the machine (could be different from yours)
less messages
grep -i segfault messages

if you find nothing then:

systemctl status
systemctl --failed --all

Step by step you will dig into it and probably realise it was something super small like nginx config or something similar ;-)

Hope it helps!

Please or to participate in this conversation.