place this ob_start(); on first line of index.php under your application directory like this :
<?php
ob_start();
/*
*---------------------------------------------------------------
* APPLICATION ENVIRONMENT
*---------------------------------------------------------------