Welcome Guest, Not a member yet? Register   Sign In
Cannot modify header information?
#1

[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.
#2

[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).
#3

[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...




Theme © iAndrew 2016 - Forum software by © MyBB