Tuesday, January 12, 2016

Some tips on debugging PHP WSODs

Blank screen with no server errors in the log files is what we call PHP White Screen Of Death (WSOD).

It's not always easy to find the root cause, but here are a few tips, and a great forum thread for more information:

- Check your code @ statements
- Try to do a simple exit('test'); and move it down the code lines
- Check if  your WSOD is maybe caused by infinite loop
- Check for die() and exit() statements in the code

Helpful thread:

No comments:

Post a Comment

Ubuntu 12.04, 14.04, 16.04 - auto start an app or script before login

To run a command or application at startup, even before the user has logged in, you can use this file: /etc/rc.local The commands entered...