CodeIgniter Forums

Full Version: Cannot modify header information?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.

El Forum

[eluser]Unknown[/eluser]
Error Code :
Code:
A PHP Error was encountered

Severity: Warning

Message: Cannot modify header information - headers already sent by (output started at C:\xampp\htdocs\xxx\apps\adminapp\libraries\Template.php:59)

Filename: helpers/url_helper.php

Line Number: 541

controller code :
Code:
function insert()
{
$this->categories_model->insert(
array(
'CategoryName' => $this->input->post('CategoryName'),
'CategorySeo' => $this->seo->getSeoName($this->input->post('CategoryName')),
'CategoryDesc' => $this->input->post('CategoryDesc'),
'CategoryKeyword ' => $this->input->post('CategoryKeyword')
)
);
redirect('categories');
}

Anyone could help me resolve this?

Thank you.

El Forum

[eluser]cahva[/eluser]
As the error suggests, you probably have outputted something in the Template library at C:\xampp\htdocs\xxx\apps\adminapp\libraries\Template.php

Check that file that you dont have any white space, new lines etc. And be sure that you dont end the library with ?>. Thats usually the problem that there is php end tag but after that there is some empty lines after that(thus resulting that header error).

El Forum

[eluser]Unknown[/eluser]
[quote author="cahva" date="1253472816"]As the error suggests, you probably have outputted something in the Template library at C:\xampp\htdocs\xxx\apps\adminapp\libraries\Template.php

Check that file that you dont have any white space, new lines etc. And be sure that you dont end the library with ?>. Thats usually the problem that there is php end tag but after that there is some empty lines after that(thus resulting that header error).[/quote]

Very Thanks...