1. Support
  2. Knowledge Base
  3. Troubleshooting
  4. Using the WordPress debug log

Using the WordPress debug log

In case you run into an issue, it might be necessary to get more details about the cause of the problem. Therefore we make use of WordPress’ debug logging.

Step 1: Enable the debug logging

In order to enable debugging, prevent errors and warnings from being displayed and log errors, you need add the following lines to your

1
wp-config.php

file:

1
2
3
define( 'WP_DEBUG', true );
define( 'WP_DEBUG_DISPLAY', false );
define( 'WP_DEBUG_LOG', true );

Most WordPress installations already have an entry for

1
WP_DEBUG

set to

1
false

, so you’ll need to change this value to

1
true

.

In order to edit the config file, please connect to your web server via FTP and navigate to the root of your WordPress installation.

The file itself can be edited by using a text editor such as Notepad++ (Windows only) or Sublime Text (Mac, Windows & Linux).

Step 2: Reproduce the error

Now you have to reproduce the issue in order to get the log entry created.

Therefore simply do what you did before, when the problem occurred: For instance visit your WordPress dashboard/frontend and simply repeat the operation or refresh the page that isn’t working properly.

Step 3: View the debug log file

The actual debug log is saved in a file called

1
debug.log

in your site’s

1
wp-content

directory.

One way to view and clear your log is to access that file directly via FTP. Alternatively you can use a plugin like Log Viewer and access the log directly via your admin dashboard.

Step 4: Send the log to our customer support

You might be asked to send the log file to our customer support team. Therefore simply download and attached it to your next email reply.

Alternatively create a new Pastebin and send us the link to it.

Was this article helpful?

Related Articles

Stay in touch with us!

Join our newsletter and we let you know about new theme releases,
as well as important updates and discounts.

Latest news from our blog: Perplexity AI: What Are People Saying in 2024? (12. September 2024)