Please refer to the following steps to hide errors and warnings that are displayed on your website from cPanel.
- Login to cPanel.
- Inside Software, click on the Select PHP Version.
- Click on the options tab.
- At the display_error option, untick the box in case you want to disable/hide the errors and warnings that are occurring on your website. Tick the box if you are looking to display the error on your website.