phpapacheoutput-bufferingob-start

Cannot use output buffering in output buffering display handlers


I've reinstalled Apache, and switched from PHP 5.3 to 5.6. Everything works, except I get this error, when calling ob_start():

Cannot use output buffering in output buffering display handlers

I tried to enable output buffering in PHP, but I still get this error:

output_buffering = 4096

Solution

  • Probably you are using a buffering function in output buffering callback which isn't possible as mentioned in php ob_start output_callback documentation. If not it should be the output-handler you used, check your php.ini and try to set it's value to "none" if possible.