Blog

How to find the error log on the WordPress site [updated]

To troubleshoot your WordPress site, the error log is the quick way to find what is happening on your WordPress site. Finding the problem is the most critical part of the solution. This article shows you a quick and easy way to find the error log.

Open file manager:

You’ve to log in to your cPanel and open the file manager.

Go to the document root:

Go to the document directory of your file manager. You’ll find this on public_html or, if it’s on the parked domain – you’ll find this on your domain names folder.

Take a backup of wp-content:

Take a backup of your wp-content directory so that if anything goes wrong you’ll be on the safe side and restore those files.

Blog for you
Most popular blogs

Learn more about WordPress

Open up the wp-config.php file:

Add or edit this code to your wp-config.php file: 

define(‘WP_DEBUG’, true);

define(‘WP_DEBUG_LOG’, true);

Most WordPress installation has already WP_DEBUG included with the file and the value set to false.  

After editing, please ensure and recheck that the value is set to true.

Reload the affected page: 

Go to the affected page which is occurring the issues. It’ll send the error log file with the messages.

Popular blog

How to Use Iframe Widget in Elementor by Element Pack

Go to the wp-content folder and open log file:

Go to your wp-content folder and open the log file debug.log and go to the bottom of the page to find the error messages. 

Take the necessary actions to solve the problem. After solving the issue, you can edit the wp-config.php and set the WP_DEBUG file set to false again.

Share this blog:


About Selim Rana

Selim Rana is the Founder of BdThemes - the company behind Element Pack Pro! He is a Software Engineer passionate about WordPress and Elementor.

Leave a Reply


small_c_popup.png
small_c_popup.png

Subscribe our newsletter

Don't Miss Any Offer & Awesome Integration In Future

Enjoy Black Friday Exciting Deals Right Now. Grab The Deals Before The Time Ends!

Day
Hour
Min
Sec