Problem installing in hostgator

Tagged:  

I tried to install Pier in a hostgator plan, but I went click next to check requeriments I got this error:

Notice: ob_end_clean() [ref.outcontrol]: failed to delete buffer zlib output compression

In file environment/functions/general.php:327

while (ob_get_level()) ob_end_clean()

So I change the line to:

#while (ob_get_level())
ob_end_clean()

And I could do install whitout problems.

I hope that this help you.

I found this:

http://www.mombu.com/php/php/t-output-buffering-and-zlib-compression-issue-3554315.html

and the solution is:

Simply replace:

while (ob_get_level() > 0) {
ob_end_clean();
}

With:

if (ob_get_level()) {
while (@ob_end_clean());
}

And the issue is solved.

Chris