It looks like you may have added that code to one of your layout pages so check those first.
You only need the that code in yout theme's config.php so that bit is OK.
But I would do as Tim suggests and enable Debugging, as it is the ony way you will know if your site is working correctly.