If you would like to have a better understanding of errors, appearing on your website or its pages, WP_DEBUG is an irreplaceable tool to help you out!
To enable it, just open Hosting → Manage → File Manager and find your wp-config.php file. It will be placed in domains/domain.tld/public_html (where domain.tld is your domain name):
In wp-config.php find the line with 'WP_DEBUG'. Most likely, you will find:
define( 'WP_DEBUG', false );
If yes, to enable debugging just change
true, and save changes.
If there is no such code in your wp-config.php file, you can add it above the /* That’s all, stop editing! Happy blogging. */ line.
WP_DEBUG shows you information about the error, happening at this moment. To see historical data all you need to do is enable WP_DEBUG_LOG. To do so, just add:
Below enabling WP_DEBUG. That’s it! Now all the errors are logged to wp-content/debug.log.
While WP_DEBUG enables debugging mode on your website, to better track all possible errors, you might not want them to be displayed on the website (and be available only from the log, for example). If you wish to hide the errors, simply add this line below enabling WP_DEBUG: