blog posts

How to access the WordPress error log file and enable debug mode

How to access the WordPress error log file and enable debug mode

Access to the report file in the process of WordPress site activity can help solve problems by identifying log errors in WordPress. Due to this issue, access to the WordPress error log for sites can make site management easier for people. The occurrence of mistakes is a natural and expected occurrence for all types of locations, But the important thing about WordPress sites is access to the error log in WordPress.

You can easily access the WordPress error report if an error or something unexpected happens to your WordPress site. It is only necessary to get familiar with this mechanism in WordPress to make the review more accessible to you. In the following, the error log or WordPress error report will be explained to you, and you will be taught how to access the error log file of WordPress problems and errors. If you follow the topics related to WordPress training, you must know that fixing WordPress errors is one of the main tasks a site designer and developer should do.

What is the WordPress error log, and when should we use it?

When working with a site, universal errors such as sudden and long-lasting blank pages, Json errors, and other common errors interfere with the site’s activity process. All errors in WordPress sites will be ok.

Error log or error report is the same feature that shows the mentioned errors in WordPress sites. The most common occurrences related to various locations are errors, and checking and observing them will play an essential role in solving problems. The error log or WordPress error report, in the form of a list of error messages or errors created on the website, provides you with all the information related to the errors. This information includes the type of error and the date of its occurrence.

Therefore, users can easily control the performance of their website and fix the errors. As a result, by activating this feature in WordPress, all the messages related to problems will be collected in a file, meaning they can visit and check the saved reports anytime.

Errors appear in different parts of the website for various reasons, and receiving and controlling them will be a suitable solution to improve the situation. As a result, observing and knowing about their existence can help you think of solutions.


How to enable debugging mode in WordPress?

Debugging mode is a feature to simplify the processes and processes of diagnosing problems. When you activate the WordPress debugging mode, an error log file is created for you in the form of an error report, which collects all the problems in a list. This function is intended for WordPress sites so users can find the source of errors and issues. So that by finding the problematic factor, you can debug WordPress.

Activating WordPress debugging mode can be done in two ways. This includes all types of methods with and without plugins. The choice of path will be yours. Therefore, it is better to get familiar with each of these methods to identify and fix common errors in your site’s performance.

Enable debug mode without plugins.

If your goal is manual activation without plugins, you must access the error log file in different parts. These parts include C Plan and direct admin.

If you want to view the WordPress error log file in CPlan, enter CPlan, then scroll down and select “Errors” in the “Metrics” section. With this, you can see the last 300 site errors. As a result, if you want to access these files, enter “File Manager” from the “Files” section in C-Plan and install your site in the “public_html” folder on the left sidebar. The error log file named error_log or php_errorlog will be displayed for you.

Suppose you want to activate WordPress error mode through direct admin. In that case, enter direct admin and then enter Site Summary / Statistics / Logs from the System info & Files section so that the error log section is displayed for you. By opening this section, the errors on the site will be visible to you. In this way, you can check and try to fix them.


In general, to view and check site errors without plugins and manually, it is necessary to enter the error log file in the C Plan or Direct Admin sections and examine the recent errors of the site in different ways unique to each mistake. , proceed to fix them.

Enable WordPress decompression mode using a plugin

WP DEBUGGIN plugin is one of the solutions that can play an influential role for users if the plugin is used in activating the error log file. This plugin shows site errors; site owners can fix them by knowing the error type.

First, log in to your host and select the file manager section. In this section, open the Public_html file and right-click on the displayed wp-config.php file and select the edit option. Then, in this same file, find the option Define(‘WP_DEBUG,’ which by default is shown in front of this file; by activating it and changing it to True, the wp-debug mode will be activated for you.
As a result, you will be able to see errors on your site, and you can easily take action to fix these problems.

How to access the error log file of WordPress problems and errors

You can use the mentioned solutions to access the error log file on your WordPress site.

Does it use C-Plan, Direct Admin, or the WP DEBUGGIN plugin manually?

Disabling debug mode in WordPress.

Debug mode and WordPress error report should not be turned on during site activity; Rather, you should only enable it during debugging because it is displayed for users; it has no attraction for them. Some people may even abuse this issue. As a result, there is a need to turn off the debug mode in WordPress.

In this case, you can define(‘WP_DEBUG_DISPLAY,’ false); Use not to display errors. As a result, the errors will only be stored in the debug.log file and will not be displayed on the site.


Fix WordPress error problems.

Once you are familiar with the problems and understand them, you can search for solutions. Errors can have various sources and originate from themes, plugins, etc. As a result, you can solve the problems by finding the leading solution.

What are the advantages and disadvantages of using the error log?

Using the error log for users will contain advantages and disadvantages that need to be considered. These advantages and disadvantages show themselves differently and cannot be ignored. Below are three benefits and penalties related to the use of error logs:

Advantages of using the error log

Using the error log to display errors can show the last 300 errors on your site that have disrupted its activity.
By examining and analyzing errors, people can search for solutions. As a result, they will not need to benefit from special knowledge in this field. So that site management becomes much more accessible.
In addition, using the error log to display errors, it can even record problems for users in detail, along with the date and user information.

Disadvantages of using the error log

One of the issues related to the debugging status of WordPress is the display of a white screen if the error display is not activated. In the active mode, the error log can show you errors when writing PHP codes.
The next thing concerns the discussion of hacker abuse in shared hosting.
The activation of this feature and the display of errors for users will reduce the attractiveness of the site.


Suppose there is a disturbance or a problem in the process of site activity. In that case, you can quickly and by using the error log file in WordPress by activating the WordPress error log, you can find the source of the problems and take the correct way and solution to solve them.