C. Gellings
C. Gellings

Reputation: 141

Laravel shows blank page (continuously loading)

After having installed Laravel 5.1 on a local desktop, I installed it on a webserver (debian 8, php 5.6.17), set the directory permissions for storage and bootstrap/cache tp 1777. All worked fine. Next I installed it on another webserver, same method, same settings, but now it only shows a coninuously loading page. Tried a re-install, with the same result

Started manual debugging and the code falters in the index.php at $kernel->terminate(.... I also changed caching and session storage to redis, which made no difference.

Have been reading through the 'blank pages' posts, and been googling on it too, without any helpfull result so far.

If I let the script die before the '$kernel->terminate(...' line it shows the page else it just shows the page loading ... Unfortunately, pagination, and sorting a.o. do not work due to the premature ending of the script.

Anyone encountered this peculiar behaviour before

Cheers,

Upvotes: 3

Views: 1236

Answers (3)

cdoshi
cdoshi

Reputation: 23

For me what fixed my issue was removing some laravel comment in my blade files. Especially comments of html code on multiple lines. It took afew days to figure it out!! Very annoying. {{-- html code here --}}

see: Blade Comments in Laravel are crashing apache Laravel - Blade comments , blade rendering causing page to crash

Upvotes: 0

C. Gellings
C. Gellings

Reputation: 141

Problem caused by NFS filesystem. It doesn't allow file locking. Solved the problem by writing sessions to memcached

Upvotes: 0

user5606903
user5606903

Reputation:

It happens most probably due to permission issue.Try this

chmod 777 -R storage/

Storage folder existed inside the Laravel folder.If nothing works, try to give full permission to Laravel Project folder and try again.

Upvotes: 1

Related Questions