WordPress is the most widely used CMS in the world. This means it has one of the largest libraries of plugins available to install on your hosting.
As open-source software, it allows any individual or organization to create a new plugin to improve the WordPress ecosystem. With so many plugins and themes available, their visibility and variety make it necessary to have a tool that helps you identify errors in more detail.
WordPress provides a Debug tool to help discover what may be causing an error on your website.
Below we show how to enable WordPress debug mode:
First of all, you need to access your hosting via FTP in order to enable it:
To connect to the "webFTP" service, you need a username and password, which you can find in your cdmon control panel, under Hosting Management, in the section
Hosting Information. By clicking the eye icon, you can view the password, which is hidden for security reasons.
Once you have the connection details, access the FTP manager directly from the hosting management panel by clicking the Web FTP Access (net2ftp) icon under the 'File Managers' section.
In the webFTP login panel, enter your FTP credentials (username and password), which you can find in the 'Hosting Information' section.
Once inside webFTP, you will be able to view your hosting files and/or directories. Go to /web:
Once inside the /web folder, all your website files will appear. Locate the file named wp-config.php and click on Edit for that file:
The wp-config.php file code will open. Look for the following line, which disables Debug mode:
define('WP_DEBUG', false);
To enable Debug mode, simply change false to true, as shown below:
define( 'WP_DEBUG', true );
Note: If you want WordPress errors to be stored in a .log file, you can add the following lines just below the change you made:
define( 'WP_DEBUG_DISPLAY', false );
define( 'WP_DEBUG_LOG', true );
When an error occurs in WordPress, it will be written to a file called debug.log. This file is located in your /wp-content/ directory. Open this file using SSH or your FTP client to review the debug report.
Related Articles
How to check conflicts in Wordpress plugins
WordPress websites are made up of various components such as the WordPress core, themes, and multiple plugins that add specific functionalities. Although plugins are extremely useful tools, their interaction can sometimes cause conflicts that affect ...
How to enable Divi Safe Mode
WordPress plugins and themes are essential tools that help enhance the functionality of your website. Instead of coding from scratch, plugins/themes allow you to add new features or optimize and improve any process. Therefore, when using a theme like ...
How to turn WordPress maintenance mode on/off
WordPress Maintenance Mode is an essential tool for website administrators who need to perform updates or significant changes without affecting the user experience. Activating this feature allows you to display a notification page informing visitors ...
How to activate Elementor Safe Mode
Sometimes, when trying to edit your site with Elementor, you may encounter loading issues that prevent you from continuing your work. An effective solution to this problem is to enable Elementor Safe Mode. What is Safe Mode? Elementor Safe Mode is a ...
How to enable automatic updates in WordPress
In this article, we show step by step how to enable automatic updates from the WordPress administrator. The first thing you need to do is access your WordPress website and go to your site's admin panel. In the left-hand menu, find and click on the ...