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


A first-ever all-in-one web solution with essential widget, extensions, and features for Elementor WordPress.

Your complete web development partner.

Contact

Copyright © 2022 BdThemes.
All Rights Reserved. Site built with Element Pack & Rooten Theme.

AUTUMN Sales up to 60% Discount on our products | Coupon: AUTUMN

Ready to buy Element Pack Pro?

Don’t miss 230+ essential Elementor widgets and 2000+ ready templates for professional web design.

Changed your Mind?

Please Suggest us how to improve

Up to 60% OFF

Purchase all our add-ons and make your website better than ever with our web designing products. Make your purchase with our limited-time AUTUMN offer in 60% off.