---
title: Accessing WordPress Error Logs on Your Site
url: "https://pressable-staging.mystagingwebsite.com/knowledgebase/accessing-wordpress-error-logs/"
published: 2019-10-11
modified: 2024-08-19
author: Wayne McWilliams
---

In this article, we will review how to access WordPress error logs for your website to assist in debugging a problem and identifying theme and plugin errors.

This error log file is automatically generated and errors can be reviewed via the MyPressable Control Panel, [WP-CLI,](https://pressable-staging.mystagingwebsite.com/knowledgebase/how-to-use-wp-cli/) or [SFTP](https://pressable-staging.mystagingwebsite.com/knowledgebase/setup-and-use-sftp-to-connect-to-your-wordpress-site/).

## MyPressable Control Panel Logs

### PHP Errors

The **Logs** tab can be accessed from a site’s settings page (<https://my.pressable-staging.mystagingwebsite.com/sites> > select individual site > **Logs** tab). Once, there, click on **PHP Logs.**

For easy access and quick filtering, you can choose which error logs to show. These are sorted under 4 *Status Codes* and can be selected from the drop-down menu:

![](https://i0.wp.com/pressable-staging.mystagingwebsite.com/wp-content/uploads/2023/11/Screenshot-2023-11-15-at-16.04.40.png?resize=1024%2C659&ssl=1)

The **Get Latest** button loads the most recent logs. The logs are displayed on the Control Panel directly and are formatted to give important information at a quick glance.

The **Email PHP Logs** button will send a CSV file with the most recent 500 logs of the site to your registered email address.

![](https://i0.wp.com/pressable-staging.mystagingwebsite.com/wp-content/uploads/2023/11/php-error-logs-latest-email-options.png?resize=1024%2C309&ssl=1)![](https://i0.wp.com/pressable-staging.mystagingwebsite.com/wp-content/uploads/2019/10/phperrors3.png?resize=1024%2C555&ssl=1)![](https://i0.wp.com/pressable-staging.mystagingwebsite.com/wp-content/uploads/2019/10/phperrors4.png?resize=1024%2C560&ssl=1)

 
 Important:  If this method isn’t working, check to see if WP\_DEBUG and/or WP\_DEBUG\_LOG ([outlined below](https://pressable-staging.mystagingwebsite.com/knowledgebase/accessing-wordpress-error-logs/#wp_debug_log)) is enabled on the site. If so, it can break the my.pressable-staging.mystagingwebsite.com error log reporting for the site.

### Webserver Logs

The **Logs** tab can be accessed from a site’s settings page (<https://my.pressable-staging.mystagingwebsite.com/sites> > select individual site > **Logs** tab). Once, there, click on **Webserver Logs**:

![](https://i0.wp.com/pressable-staging.mystagingwebsite.com/wp-content/uploads/2023/11/Screenshot-2023-11-15-at-16.06.32.png?resize=1024%2C646&ssl=1)

Pressable provides the last seven days of server logs, 200 per page.

For easy access and quick filtering, you can choose which logs to show based on *Status Code*, *Request Type*, and searching by *User IP*.

More Webserver log information can be found here: <https://pressable-staging.mystagingwebsite.com/knowledgebase/accessing-web-server-logs-for-your-site/>

## SFTP

### **SFTP Access**

A `php-errors` log is located above the site root, in a folder called `/tmp`. You will need to connect to the server via SFTP and then move up one directory (outside of the `/htdocs` directory) to find the `/tmp` folder.

![wordpress error log](https://i0.wp.com/pressable-staging.mystagingwebsite.com/wp-content/uploads/2019/10/php-errors1.png?ssl=1)![wordpress error logs](https://i0.wp.com/pressable-staging.mystagingwebsite.com/wp-content/uploads/2019/10/php-errors2-1.png?ssl=1)![accessing wordpress error logs](https://i0.wp.com/pressable-staging.mystagingwebsite.com/wp-content/uploads/2019/10/php-errors3.png?ssl=1)## WP-CLI

You can also access the PHP error log via [SSH](https://pressable-staging.mystagingwebsite.com/knowledgebase/connect-to-ssh-on-pressable/). To view the most recent PHP error log’s entries, you’ll need to enter the following command: `wp php-errors`

![](https://i0.wp.com/pressable-staging.mystagingwebsite.com/wp-content/uploads/2019/10/wpcli-errors.png?resize=1036%2C273&ssl=1)## WP\_DEBUG\_LOG

 
 Important:  Manually enabling WP\_DEBUG and/or WP\_DEBUG\_LOG could break the error logs we automatically provide. (outlined in [the sections above](https://pressable-staging.mystagingwebsite.com/knowledgebase/accessing-wordpress-error-logs/#php-errors)). Please disable this once your troubleshooting is done.

You can enable a WordPress debug log through the wp-config.php file found via SFTP in your site root. You will need to edit wp-config.php and look for a line that reads:

```
define( 'WP_DEBUG', false );
```

Replace it with these three lines:

```
define( 'WP_DEBUG', true );
define( 'WP_DEBUG_LOG', true );
define( 'WP_DEBUG_DISPLAY', false );
```

Your debug.log file will then be generated within the `/wp-content` directory.

![how to access wordpress error logs with Pressable](https://i0.wp.com/pressable-staging.mystagingwebsite.com/wp-content/uploads/2019/10/debug-log.png?ssl=1)

 
 Important:  If you have WP\_DEBUG and/or WP\_DEBUG\_LOG set as TRUE for more than a day or two, consider deleting the **debug.log file** in your **wp-content** directory as that can quickly grow in size and impact your site storage.

## WooCommerce wc-logs

### **WP Admin Access**

If your site includes a WooCommerce store, WooCommerce-specific logs can be found under **WooCommerce > Status > Logs** as outlined here: <https://woocommerce.com/document/understanding-the-woocommerce-system-status-report/#error-logs>

### **SFTP Access**

WooCommerce logs can also be found within `/wp-content/uploads/wc-logs`. Those can be accessed through SFTP.

![Pressable wordpress error logs](https://i0.wp.com/pressable-staging.mystagingwebsite.com/wp-content/uploads/2019/10/wc-logs.png?ssl=1)![wordpress error log with Pressable](https://i0.wp.com/pressable-staging.mystagingwebsite.com/wp-content/uploads/2019/10/wc-logs2.png?ssl=1)
