Changing cPanel Shared Hosting Account's PHP Error Handling
You can prevent cPanel shared hosting accounts from displaying PHP error messages on your website by using a PHP initialization file (more info).
You can either edit, upload, or create a file with the following line in it:
display_errors = Off
Once you make that change, cPanel no longer displays PHP errors on your website. Instead, it stores the error information in a file called error_log
in the same directory as the PHP script that produced the error.