trying to determine what is causing a site to white screen

A client's site is white screening. Here is the error log:

Can you please tell me what is causing this?


  • Adam Czajczyk

    Hello Corn,

    I hope you're doing fine today!

    Thank you for posting error log. the issue here is that the "wordfence-waf.php" file cannot be open by WordPress.

    This file comes from WordFence plugin and is used for WordFence Web Application Firewall. If the plugin is enabled with application firewall option enabled, removing that file would cause such issue.

    To fix it, follow these steps:

    - access your site using FTP or cPanel's "File Manager" tool
    - in a root folder of the site look for "user.ini" or ".user.ini" file (the latter one includes a dot at the beginning of a file name so you need to make sure that you got option to show hidden files enabled)
    - view the file to confirm if it includes code similar to this:

    ; Wordfence WAF
    auto_prepend_file = '/path_to_your_site/wordfence-waf.php'
    ; END Wordfence WAF

    If it does, just remove the file and it should bring the site back.

    Once you got the site up and running you will want to go to WordFence settings end either make sure that Firewall is disabled or enable it again and then if Defender shows "wordfence-waf.php" file as "suspicious", ignore that warning.

    Best regards,

Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.