If you’re reading this post then it clearly means that you are facing some problem in your wordpress website which needs to be rectified. Enable error logs in wordpress is one of the easiest way to know & fix the error in your wordpress website. There are multiple ways to capture error log in WordPress like enabling error log using htacess, wp-config, from Select PHP Version and using php.ini file. However in this post we will learn how to enable error logs in wordpress by editing wp-config file. The wp-config file in WordPress not only contains important WordPress configuration & details like database information, salt keys but it can also act as a very useful tool for debugging wordpress errors.

UNDERSTANDING LEVEL: VERY EASY – If in any case, even after following the exact steps shown in this tutorial, you need help or further support regarding the same, please feel free to write to us on support@myglobalhost.in and we will be happy to help you.

Steps to forcefully enable error logs for WordPress using wp-config’s file:
Step 1: Login to the control panel provided by your hosting provider. (For example cPanel, Plesk, CWP, DirectAdmin, Cyberpanel). It does not matter which control panel you’re using – the process to enable error logs in wordpress using wp-config file remains the same.

Step 2: Locate & open File Manager OR login using FTP client like Filezilla.

Step 3: Open Public_html

Step 4: Find & open/edit a file which says wp-config.php

Step 5: Read wp-config file carefully and look for the line that says ‘That’s all, stop editing! Happy blogging/publishing.’ Simple before this line you need to add the following code:

define( ‘WP_DEBUG’, true );

define( ‘WP_DEBUG_LOG’, true );

Step 6: Click on the Save Changes button and close the file.

Reviewing your WordPress error logs file? How to check for error logs in WordPress?

Step 1: Login to the control panel.

Step 2: Locate & open File Manager OR login using FTP client like Filezilla.

Step 3: Open Public_html

Step 4: Find & open/edit a file which says error-log or debug.log. By reading the file carefully you will be able to identify the error & debug it for a clean & error free wordpress website.

Important: If you’re not able to see any of the above mentioned files then this means one of the two:
1. The above code was not properly placed.
2. Dot (.) files are hidden in your control panel. In this case contact your hosting provider or know how to show hidden files in cPanel.

We really hope that this article has helped you. If yes then please share this on Social Media so that other can also be benefited by this and if not then do not hesitate to ask us for help. Simply write to us on support@myglobalhost.in and we will be happy to help you.

Also read

VPS Hosting: The Ultimate Solution for E-Commerce Professionals

VPS (Virtual Private Server) hosting is quickly becoming the go-to solution for eCommerce professionals looking for a powerful, flexible, and reliable hosting option. VPS hosting is a type of web hosting that allows a single server to be divided into multiple virtual...

Fatal error: Allowed memory size Error in WordPress

In this tutorial, we will quick fix one of the most common error for Wordpress - Fatal error: Allowed memory size of bytes exhausted. Simply follow the below steps to solve & increase memory limit in Wordpress. Step 1: Login to Control Panel / cPanel. Step 2:...

WordPress Admin Dashboard Not Loading Properly

Is your Wordpress Dashboard Broken? An uncommon problem of Wordpress Dashboard not loading properly can be frustrating and time consuming in fixing. However with a simple trick this problem of CSS not loading properly in Wordpress dashboard can be fixed in just few...

How to Configure Email ID On Your Mobile Device?

To setup / configure email ID on your mobile phone. Please follow the below steps:For Android Devices: Visit Playstore Search for app called "MYMAIL" Install and activate the application On opening the app, click on the last option which says "others" Enter the email...

How to Install & Activate SSL Certificate

Step to install SSL Certificate in cPanel Login to cPanel Search & Click on "SSL/TLS Status" Check / Select all domains & sub-domains Click on "Auto SSL" Wait for sometime as it may take upto 30 seconds to complete the process Once the SSL is installed, the...

How to take a full account backup in cPanel (Manually)?

Generating Backup is very important if you're planning to move / transfer your website and its data to another website hosting provider or for safety reasons. To generate full account backup in cPanel Hosting, please follow the below steps: Login to cPanel Locate...

How to Edit / Add DNS records in cPanel?

DNS Records are very important for smooth running of a website and its associate services like Emails, linking website on Google's Search Console and a lot more.  Types of DNS Records: A, AAAA, CAA, CNAME, MX, SRV and TXT. To add DNS record in cPanel, please follow...

How to create Email ID account in cPanel?

In order to create a new Email Account or Email ID in cPanel (If provided by the Hosting Provider in the plan), then please follow the below steps: Login to cPanel Locate and click on "Email Accounts" Click on "create" button which is available on right side of the...

How to check Webmail / Emails in cPanel?

In order to check the emails in cPanel via WEBMAIL. Please follow the below steps: Visit webmail.yourdomain.com Enter Full email ID in the place of Username Enter Password of the email ID Click Login - Thats it! IMPORTANT NOTE: Replace yourdomain.com with your actual...