WordPress is the most popular CMS around the world with 60.4% of the market share. However, it has underlying inherent security issues that makes it the favorite for hackers too. However, you can keep a check on malware attacks by scanning the site regularly, but that sounds scary if you are a non-coder. You can use the WordPress maintenance service to ensure the security of your site.

Annoyed with the errors occurring in your WordPress site? Well, every error has a solution, only if you know “why the error is occurring?” The WordPress error log can help you out with this. Let us tell you what WordPress error log is, how it works, and how to enable it in your website!

What is WordPress Error Log?

WordPress Error Log is used to diagnose the types of errors occurring in your WordPress site. It can be easily set up in the wp-config.php file. If you are not familiar with codes, please consult with an expert WordPress developer or a web maintenance provider.

How to set up a WordPress error log?

Access your wp-config.php file via Cpanel or FileZilla FTP software (careful and take a backup before start editing). Open the file and search for the phrase */That’s all, stop editing! Happy blogging/*.’

Now paste the following code before the above-mentioned phrase:

define (‘WP_DEBUG’, true );

If this code is already there, then check the command and set it to “True”. However, you also need to paste another code to create an error log so that it doesn’t appear on the front page. Here is the code:

define( ‘WP_DEBUG_LOG’, true );

Save the changes and you are all set to go.

How does it work?

It simply creates a debug.log file inside the wp-content. When you get into this file, you will find all of the errors including warnings.

Hope this tip helps you with detecting WordPress errors in a much easier way. Need more help?

Read also: WordPress Errors – 27 Most Common Issues And How To Fix Them