2

  • Log into the Control Panel (Cpanel). Go to File Manager
  • Get to the root directory of the website, open wp-config.php file:

In this file, we will search for:
define(‘WP_DEBUG’, false);

1

  • We will replace this piece of codes with:
ini_set('log_errors','On');
ini_set('display_errors','Off');
ini_set('error_reporting', E_ALL );
define('WP_DEBUG', false);
define('WP_DEBUG_LOG', true);
define('WP_DEBUG_DISPLAY', false);
3