carlos87
(Cmdelgador)
1
hi… i have a site in two servers an working good, and another but in hostgator show this error:
Cannot modify header information - headers already sent by (output started at /home1/…/protected/config/main.php:1)
please, i test many stings and not result.
patrickm
(Yiiframework)
2
Does the config file have an empty line at the beginning? If so, remove it.
carlos87
(Cmdelgador)
3
That is my config begin: No spaces or line before <?php
<?php
/*
-
To change this license header, choose License Headers in Project Properties.
-
To change this template file, choose Tools | Templates
-
and open the template in the editor.
*/
ob_start(‘My_OB’);
function My_OB($str, $flags)
{
//remove UTF-8 BOM
$str = preg_replace("/\xef\xbb\xbf/","",$str);
return $str;
}
return array(
'basePath'=>dirname(__FILE__).DIRECTORY_SEPARATOR.'..',
'name'=>'Tratamiento de Integridad',
'theme'=>'adminsty',
'language'=>'es',
'sourceLanguage'=>'es',
'charset'=>'utf-8',
please help