I was tring to disable all error printing for a Magento site.
Try to update index.php with following lines
But it didn't change anything.
So I had to make an update in php.ini file with display_errors = Off
And then all error printing stopped.
Anyone know how we can disable error printing properly in Mangeto?