> ## Knowledge Base Index
> Fetch the complete knowledge base index at: https://help.ex2.com/sitemap.xml
> Use this file to discover available pages before exploring further.
> Pure-Markdown content can be obtained by appending a '.md' suffix to the content URLs listed in the sitemap (without the trailing slash).

# Can I hide errors that appear on my website?

If you use WordPress debugging mode to identify errors on your website, it is possible to hide error messages from visitors to your site.

WP_DEBUG allows debugging mode on your website to better track all possible errors. However, you may not want to post them on the website. If you want to hide errors so that they are only available from the log, you must add a line of code when you enable WP_DEBUG:

### Here are the steps to hide errors that appear on your website

1. [Log in to your cPanel account](https://help.ex2.com/en/article/comment-me-connecter-a-mon-compte-cpanel-pqz10p/?bust=1676032517306) (via your customer account or https://www.bmoname.com:2083).

2. In the **Files** section of your control panel, click the **File Manager** icon.

![](https://storage.crisp.chat/users/helpdesk/website/52421894134f0400/filemanager_d0d02r.jpg)

3. Then open the root directory (public_html) of your website.

![](https://storage.crisp.chat/users/helpdesk/website/52421894134f0400/publichtml_1ujthir.jpg)

4. Find and open the Wordpress [wp-config.php](https://help.ex2.com/en/article/what-is-the-wp-configphp-file-1xj3bro/?bust=1784824640993).

![](https://storage.crisp.chat/users/helpdesk/website/52421894134f0400/wpconfig_ohjgdc.jpg)

5. Look for the line 'WP_DEBUG' in the file. You should find it in the following line of code: 

`define( 'WP_DEBUG', false );`

Under this code line, add the following additional line:

`define('WP_DEBUG_DISPLAY', false);`