March 2020
Beginner
660 pages
18h 28m
English
Debugging in WordPress is disabled by default, using the WP_DEBUG constant in the wp-config.php file. So, errors on WordPress sites will not be visible for PHP notices and warnings. In the case of a fatal error, the browser will display the WSoD. First, we have to enable debugging by setting the WP_DEBUG constant to true. Once it's set, WordPress will display the actual error and the file path that generates the error. The following screenshot shows the error on the browser:

In the next step, we enable the error logs by setting the WP_DEBUG_LOG constant to true. Once enabled, WordPress will create a file called debug.log inside ...
Read now
Unlock full access