Really useful for debugging WordPress website (DEBUG) - use a GET htmlspecialchar parameter to make debug TRUE on website


Login to account File Manager > public_html > wp_config.php>

Remove the following line of line of code:
define('WP_DEBUG', false);​​ //could also have true


Add the following snippet of code to your website:
if ( isset( $_GET['debug'] ) && 'true' == $_GET['debug'] ) {
    define( 'WP_DEBUG', true );
}​

Save the file and go to your website:

go to the URL and the add following parameter to the end of the URL.
?debug=true​

example: https://example.com/?debug=true

You will see all website PHP errors on WordPress.

Signing off!
Justin

Did you find this article useful?