Welcome Guest, Not a member yet? Register   Sign In
Cannot use output buffering in output buffering display handlers
#1

[eluser]Mitja[/eluser]
Quote:Fatal error: ob_start() [ref.outcontrol]: Cannot use output buffering in output buffering display handlers in C:\HTTPSERVER\wwwroot\bewoop\system\libraries\Exceptions.php on line 160

when i am trying to use

Code:
iconv_set_encoding("internal_encoding", "UTF-8");
iconv_set_encoding("output_encoding", "ISO-8859-2");
ob_start("ob_iconv_handler"); // start output buffering

how to fix that?
#2

[eluser]Ali Al-Hamdan[/eluser]
anybody?
#3

[eluser]Unknown[/eluser]
issue with ob_gzhandler. disabling compresison in config.php and enabling (or not) global compression in php.ini seems to fix the problem. I don't exactly know what I'm talking about, but it seems to fix the problem at least.
#4

[eluser]gh0st[/eluser]
Yes, I've just had this same problem. If you have;

$config['compress_output'] = TRUE;

and try to do a:

Code:
$this->output->enable_profiler(TRUE);
$posted = $this->input->post('username');
print $posted;

following a form, it seems to display this error.
#5

[eluser]Unknown[/eluser]
This fix also appears to work when creating an XML-RPC server.

Leaving compression on generates the error after the XML response, which breaks your logic...
#6

[eluser]vijaykm[/eluser]
hi i got solution from this page http://ellislab.com/forums/viewthread/105257/, now working fine for me
#7

[eluser]daninfpj[/eluser]
You can’t echo or print any values if you use compression. You could use the Output Class instead (set_output method).
#8

[eluser]Unknown[/eluser]
I have this same problem, however I don't have compression turned on for CI. Here's my error:

Fatal error: ob_start() [<a href='ref.outcontrol'>ref.outcontrol</a>]: Cannot use output buffering in output buffering display handlers in /Users/fubar/Sites/_machine_localhost/admin/system/core/Exceptions.php on line 166

My view file creates some functions that output a lot of HTML like this:

Code:
&lt;?php
function doReport(){
  ...
  ...
?&gt;
<p>Output some html</p>
&lt;?php
  ...
  ...
}//end function doReport
?&gt;
<p>more html</p>




Theme © iAndrew 2016 - Forum software by © MyBB