By default, the PHP
display_errors setting is set on. You can read more about
display_errors at PHP: Error Handling and Logging Functions. There are few important things that you should know about the error messages that is sent to the browser by
Usually these error messages contains sensitive information about the web application environment that you are running and could lead to unwanted security threat. It is even stated in the manual that it is not recommended to enable this feature on a production site.
To disable or switch it off (assuming that you’re on a shared hosting which have limited super power), simply add
php_flag display_errors off in your .htaccess file.
If you dont have access to .htaccess file or having trouble editing it, there is a simple solution. Just add