Where are the PHP Error Logs

Something wrong happened while you were using a plugin in WordPress, your website is crashing with a blank screen, or anything else? Checking your PHP Error Logs is the first reaction you should have. Also not that the PHP Error Logs IS NOT the Access Error Logs (which is the error related to your web server and not PHP). So where to find those PHP Error Logs?

Where are the PHP Error Logs?

You can access them through the admin given by your hosting service (not the WordPress one). Depending on your hosting service, they can be accessed by an additional plugin or even the Meow Apps Dashboard. Click on the Meow Apps Dashboard in your WordPress and at the bottom right you will find a function that will attempt to read your PHP Error Logs. It might not work. You can also try a plugin such as Error Log Monitor (https://wordpress.org/plugins/error-log-monitor/). They contain errors related to programming errors but also memory, space, and execution time issues. If that doesn’t work, you will need to contact your hosting service. They can either tell you how to access those or they will send them to you. Please note that a PHP Error Logs is rarely empty if you think there are no errors it’s more likely that the Error Logs aren’t actually being logged and you will need to ask your hosting service.

There is an additional thread on StackOverflow where people are discussing this, have a look here: Where does PHP store the error log?

Chrome Developer Tools

There is another thing you can check, especially when a plugin is performing asynchronous actions (a running process for instance, or a scanning). Open your Google Chrome’s “Developer Tools” (https://developer.chrome.com/devtools) and click on the Network tab. Starts the process again until the issue occurs. Go back to the Network tab and click on the last request that was executed (the left column) and look on the right at the information related to it. The Response tab might contain something interesting (an error for example). You can also check the Console window at the bottom, it might have some other information as well.

 

I recommend you to use WPEngine or SiteGround. They are both excellent hosting services and work perfectly with all my plugins.