AvoidErrors
  • HOME
  • WINDOWS
  • APPLE
  • MS OFFICE
  • RASPBERRY PI
  • WORDPRESS
  • TECH TIPS
  • LINUX
  • VIRTUALIZATION
  • FORUM
No Result
View All Result
AvoidErrors
No Result
View All Result

How to View PHP Error Logs in Your WordPress Dashboard

Abdelrahman Reda by Abdelrahman Reda
March 20, 2019
in WordPress
0
Share on FacebookShare on Reddit
RECOMMENDED: Improve PC performance Migrate to Solid State Drive (SSD)

Since WordPress runs on PHP, you can debug most of your WordPress errors using the PHP error logs. However, the PHP error logs may not always be available depending on the hosting plan in use. In this step by step tutorial, you will learn how to set up your PHP error logs.

Prerequisites

To follow along with this tutorial, you will need the following:

  • Access to your WordPress dashboard
  • Access to your Website root folder

1. Log into your WordPress dashboard and navigate to the ‘Add New Plugin’ page. Search for ‘WP Log Viewer’ then install and activate the result as shown in the image below.

2. Once WP Log Viewer is installed and activated, you should see the ‘Debug Log’ option at the top bar. However, you will notice that it is disabled.

3. When you click on the disabled tab, you will be shown the instructions below to turn on debugging.

4. You now need to log into your C-panel then open the file manager as shown below:

5. Within your website root folder, highlight the ‘wp-config.php’ file then hit the ‘Edit’ button as illustrated below:

6. Once opened, you need to copy and paste the code below into the wp-config.php file as illustrated in the image below.

define(‘WP_DEBUG’, true);

define(‘WP_DEBUG_LOG’, true);

define(‘WP_DEBUG_DISPLAY’, false);

Hit ‘Save Changes’ button to save your changes as shown above.

7. You now need to navigate to the ‘WP-CONTENT’ folder located in your website’s root folder. Create a new file named ‘debug.log’ and save it in the wp-content folder as illustrated in the image below.

8. Head back into your WordPress dashboard and refresh the page. The Debug Log should now be enabled and any errors will be indicated. For instance, the image below shows two errors.

9. When you open the Log Viewer, the issues will be categorized to either warnings, notices or fatal errors. You can now research on the error and resolve it accordingly.

Conclusion

You now can now view PHP Error Logs conveniently on your WordPress dashboard. Share your feedback on the comment section below.

Previous Post

How to Fix HTTP Error 500 – WordPress

Next Post

Fix HTTP Error When Uploading Images to WordPress

Abdelrahman Reda

Abdelrahman Reda

Abdelrahman Reda is a Motivated Support Engineer with 6+ years of corporate and consumer support experience. His experience related to administration of Network, NOC support, computers and anti-virus server, data entry, networking sites, remote support.

Related Posts

How to Install a WordPress Plugin
WordPress

How to Install a WordPress Plugin

by Muhammad Imran Habib
October 18, 2021
How to Install a WordPress Theme
WordPress

How to Install a WordPress Theme

by Muhammad Imran Habib
October 18, 2021

Subscribe to get weekly tutorials direct to your inbox!

Windows

Fix .net Framework 3.5 Missing on Windows 11

by Rhousse
August 13, 2022
Clean Install Windows 11 Without USB
Windows

How to turn off Delivery Optimization on Windows 11

by Muhammad Imran Habib
August 13, 2022
How to Enable Dark Mode on Windows 11
Windows

How to Prevent Users from Changing Proxy Settings in Windows 11

by Muhammad Imran Habib
August 13, 2022
How to Check Laptop Battery Details in Windows 10
Windows

How to Create a New Custom Power Plan in Windows 11

by Muhammad Imran Habib
August 13, 2022
  • Disclaimer & Privacy Policy
  • FAQ
© 2022 Powered by Cloudways
No Result
View All Result
  • HOME
  • WINDOWS
  • APPLE
  • MS OFFICE
  • RASPBERRY PI
  • WORDPRESS
  • TECH TIPS
  • LINUX
  • VIRTUALIZATION
  • FORUM

© 2022 AvoidErrors Powered by Cloudways | Privacy

Welcome Back!

Login to your account below

Forgotten Password?

Retrieve your password

Please enter your username or email address to reset your password.

Log In
This website uses cookies. By continuing to use this website you are giving consent to cookies being used. Visit our Privacy and Cookie Policy.