Welcome Guest, Not a member yet? Register   Sign In
CI Exception Error
#1

[eluser]donkey_[/eluser]
Hi folks,

I've created a controller called "keygen" -> this controller is the output of my model which generates me systemkeys for my system but everytime I call that controller i get that error


Quote:Fatal error: ob_start() [<a href='ref.outcontrol'>ref.outcontrol</a>]: Cannot use output buffering in output buffering display handlers in /var/www/panel/system/libraries/Exceptions.php on line 160


Code:
class Keygen extends Controller
{
    public function index()
    {
        log_message('info',"Controller Keygen called on ".date(DATE_RFC2822)."");
        return parent::Controller();
    }

    public function regkey()
    {
        $this->load->model('key');
        $this->key->registerKey(true);
        

    }
    
}

What do I have to do to change this?


kind regards - donkey_
#2

[eluser]TheFuzzy0ne[/eluser]
It sounds like your view/controller may be sending out characters before ob_start() is called. You may have a whitespace at the end of one of your controllers, libraries, views etc... I'm sure you're already aware of this, but it's good practice to omit the closing PHP tags on your files.




Theme © iAndrew 2016 - Forum software by © MyBB