Error when data is output via ajax when GZIP enabled - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23) +--- Thread: Error when data is output via ajax when GZIP enabled (/showthread.php?tid=8420) |
Error when data is output via ajax when GZIP enabled - El Forum - 05-17-2008 [eluser]codedrunk[/eluser] Firebug is showing that my desired output is in fact generated, but right behind it is an error message: Code: <b>Fatal error</b>: ob_start() [<a href='ref.outcontrol'>ref.outcontrol</a>]: Cannot use I'm guessing it's because the data is just echo'd out rather than through CI's output method? Does anyone know how I would be able to fix this? Thanks in advance! Error when data is output via ajax when GZIP enabled - El Forum - 05-17-2008 [eluser]Pascal Kriete[/eluser] That's exactly right, what you want to do instead is set the output and let ci display it: Code: $this->output->set_output($thestuffyouechoed); Make sure there are no other echos or outputs though. Error when data is output via ajax when GZIP enabled - El Forum - 05-17-2008 [eluser]codedrunk[/eluser] EDIT: it works, thanks for the help! I was editing the wrong file hehe, I guess that happens! |