Welcome Guest, Not a member yet? Register   Sign In
i get header already sent
#1

[eluser]simonij[/eluser]
hi,

i got this error

A PHP Error was encountered

Severity: Warning

Message: Cannot modify header information - headers already sent by (output started at /home/rapcomdk/public_html/system/language/danish/imglib_lang.php:1) Filename: helpers/url_helper.php Line Number: 541

i dont know what the problem is

here is my controller:

http://pastebin.com/EMtcMgsB

and here is my model file:

http://pastebin.com/iH6xQFGA

hope some one can help me out
#2

[eluser]WanWizard[/eluser]
The clue is in the error message.
Quote:output started at /home/rapcomdk/public_html/system/language/danish/imglib_lang.php:1
says that there's something on line 1 of this file that produces output...
#3

[eluser]simonij[/eluser]
it only say it on my host my on my localhost notthings wrong, here is that file


http://pastebin.com/b7XFRSyf
#4

[eluser]WanWizard[/eluser]
This error is usually caused by
a) some blank space in front of the <?php on the first line
b) saving the file in UTF-8 with a BOM header

Both would generate an error on your local machine as well, unless error reporting is disabled. It could also be the file transfer software you use to get the file on your host that ruins it...
#5

[eluser]simonij[/eluser]
its my controller file its wrong with.

if i press the bottom on my localhost i got the same error, but if i upload something and press the submit no erros.

but on the host it show error with both.

so its my controller


with this i think

function uploadImg()
{
$this->load->model('profil_model');

if($this->input->post('upload'))
{
$this->profil_model->addProfileImg();
}
redirect('profil/indstillinger/'.$this->session->userdata('username'));
}

but dont know what doing the problem, hope you guys can see




Theme © iAndrew 2016 - Forum software by © MyBB