Do you require to Set Up Error Logs of WordPress in WP-Config? The wp-config file is useful debugging tool to help you to find and solve the errors in wordpress. In this article, we will see how to set up WordPress error logs in the wp-config file.
Why and When You Require to Set up WordPress Error Logs in WP-Config
The wp-config.php file is a WordPress configuration file that contains require WordPress settings plugin. These settings explain your website how to connect to your WordPress database, which database table prefix for using and develops authentication keys to make your WordPress site secure.
Setting WordPress Error Logs in WP-Config File
- Now Edit your wp-config.php file. You can also access it by connecting to your site via File Manager application or FTP client in cPanel.
- You will see wp-config.php file in the root directory of your website. Just open the file in any text editor and add the following code:
- It is possible that this code is present in your wp-config.php file and is set to false. Just change it to true.
- This line will turn on WordPress debug mode. But the drawback of using this debugging itself is that you will see WordPress errors and warnings inside your admin area as well as on front page of your website.
- If you want errors to be logged, then you will also require to add the following code in your wp-config.php file at below the WP_DEBUG line.
define( ‘WP_DEBUG_LOG’, true );
You can also talk to our wordpress customer service, dial + 1 844 897 0441(Toll-Free). We will help you instantly regarding any issue in wordpress.