March 2020
Beginner
660 pages
18h 28m
English
Generally, we enable debug mode on the development server for identifying and fixing errors. However, there may be scenarios where we need to enable debug mode in the live server to quickly identify an error. In such a case, it's ideal to enable the debug log, as we discussed in the previous step, and disable the error display by using the following code:
define( 'WP_DEBUG_DISPLAY’ , false);
Once the code is added after the WP_DEBUG_LOG constant in the wp-config.php file, errors will be logged to the file. However, they will not be displayed on the frontend of the site, so users can continue to view the site without interruptions unless it's a fatal error. Also, developers can use the debug.log file to identify and fix the ...
Read now
Unlock full access