Welcome Guest, Not a member yet? Register   Sign In
cant modify headers with FCKeditor
#1

[eluser]matt2012[/eluser]
Im getting this

Code:
Message: Cannot modify header information - headers already sent by (output started at /home/ukmental/public_html/system/application/libraries/Fckeditor.php:123)

Filename: controllers/admin.php

Line Number: 134

when I try to redirect in the controller after updating a post,

I know this is normally about blank lines but I can find any.


Here is the controller,

Code:
//nothing before or after tags on this page
function edit_service_3()
    {        
        //stuff here        
        if ($this->validation->run() == FALSE)
        {
            $data['query']= $this->Servicemodel->get_service('3_dir3', $id);
            $data['id'] = $id;
            $data['content'] = 'admin/edit_service_3';
            $this->load->view('MyViews/container2', $data);
        }
        else
        {        
            $this->Servicemodel->update_service('3_dir3', $id);
        redirect('/admin/edit_service_4/'.$id, 'refresh');
        }    
    }


the error is giving the last line of the FCK library but there are no blank spaces
before or after the tags there either.

:-S
#2

[eluser]gunter[/eluser]
...then load the FCK library only if you need it!!
#3

[eluser]Seppo[/eluser]
You have a white space at the end of Fckeditor library, probably...
#4

[eluser]matt2012[/eluser]
seppo - you were right even tho i knew that was the most likely cause.
There wasn't a line after the end tag however I there was a space on the line of the end tag!

Confusedhut:

thanks for making me look again at the obvious.




Theme © iAndrew 2016 - Forum software by © MyBB