So you activated/updated a plugin, changed a setting or maybe did some custom coding and now all you see is a white screen om your WordPress website? This annoying white screen, also known as the ‘White Screen Of Death’, is the result of a suppressed PHP error. The PHP error can be caused by many different things and as long as you’re only seeing a white screen, you’re not likely to find out what.
What is causing the error
You most likely have a suspicion of what is causing the error. If you’ve got the WSOD right after updating a plugin, it’s most likely caused by that plugin. The actual cause of the error can be caused by a variety of different things and the recently updated plugin might not even be the one to blame. The best thing you can do at this point is to seek for support from the plugin author(s) but before you do so let’s get a ‘stack trace’ of the error.
A stack trace allows tracking the sequence of nested functions called – up to the point where the stack trace is generated
Simply put, the stack trace doesn’t only display the error but also the ‘execution path’ of the code. This is extremely helpful for the developer(s) of the plugin and they will be able to help you a lot better when you provide them a stack trace.
Displaying the stack trace
Displaying a stack trace is pretty simple. Juliette wrote a great code snippet that you can use to enable the output of the stack trace on your website. Copy the snippet below and paste it in your wp-config.php. Be sure to replace the define('WP_DEBUG', true); with the line that currently contains WP_DEBUG and paste the rest of the code below it.
After you’ve pasted the code in your wp-config.php file, reload your browser. The stack trace should now appear on your screen, copy it and paste it in the support ticket you send to the plugin developer. Please remove the code afterwards from your wp-config.php file! Your stack trace might contain information you don’t want the whole world to know.
I hope this helped you in fixing your White Screen Of Death in WordPress! Found a problem? Got an improvement? Please let me know in the comments below.