EllisLab/CodeIgniter — Issue #879: url_helper 560 headers already sent
Author: lysenkobv
Created: 2012-01-07 08:09:24+00:00
State: open

A PHP Error was encountered

Severity: Warning

Message: Cannot modify header information - headers already sent by (output started at /sata1/home/users/maximuste/www/remont-dizayn.maximustest.com/system/core/Exceptions.php:171)

Filename: helpers/url_helper.php

Line Number: 560

switch($method)
{
case 'refresh'	: header("Refresh:0;url=".$uri);
break;
default	: header("Location: ".$uri, TRUE, $http_response_code);
break;
}

replace with:

switch($method)
{
case 'refresh'	: header("Refresh:0;url=".$uri);
break;
default	: if(! headers_sent()) header("Location: ".$uri, TRUE, $http_response_code);
break;
}