apache tail reports: ob_end_clean(): failed to delete buffer zlib output compression

Bug #867426 reported by Carl Leitner
10
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Human Resource Information System for Tanzania
Fix Committed
Undecided
Unassigned
iHRIS Manage
Fix Committed
Undecided
Carl Leitner

Bug Description

Reported by Lungo@Tanzania

Operating System:
 on clean install of Natty. Note, it does not appear in an upgrade of Maverick to Natty.

Getting this in apache_tail:
        Refered by : http://localhost/pmoralg-central/index.php/login
        I2CE: I2CE_Error->handleError (/var/lib/iHRIS/lib/4.0.18/I2CE/lib/I2CE.php:858)
              I2CE->handleError
              ob_end_clean (/var/lib/iHRIS/lib/4.0.18/I2CE/lib/I2CE_Dumper.php:67)
              I2CE_Dumper->prepForDump (/var/lib/iHRIS/lib/4.0.18/I2CE/lib/I2CE_Dumper.php:136)
              I2CE_Dumper->dumpContents (/var/lib/iHRIS/lib/4.0.18/I2CE/modules/Pages/modules/FileDump/I2CE_FileDump.php:217)
              I2CE_FileDump->dump (/var/lib/iHRIS/lib/4.0.18/I2CE/modules/Pages/modules/FileDump/I2CE_FileDump.php:150)
              I2CE_FileDump->display (/var/lib/iHRIS/lib/4.0.18/I2CE/modules/Pages/lib/I2CE_Wrangler.php:89)
              I2CE_Wrangler->wrangle (/var/lib/iHRIS/pmoralg/4.0/sites/central/pages/index.php:60)
        ob_end_clean(): failed to delete buffer zlib output compression
        Occured on line 67 of /var/lib/iHRIS/lib/4.0.18/I2CE/lib/I2CE_Dumper.php

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

Revision history for this message
Carl Leitner (litlfred) wrote :

Lungo, could you please see if this error occurs with the 4.0-dev code?

Changed in ihris-manage:
status: New → Incomplete
assignee: nobody → Carl Leitner (litlfred)
Revision history for this message
Carl Leitner (litlfred) wrote :

This error may be calling a very slow system. It does seem to cause the file dumper (which sends the .css and image files) to not work correctly as evidenced by this screenshot.

Revision history for this message
Carl Leitner (litlfred) wrote :

fixed by changing I2CE_Dumper.php source code as follows:

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

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

Lungo

Revision history for this message
Carl Leitner (litlfred) wrote :

This fix works, but the warning message spams up the apache log

Revision history for this message
Carl Leitner (litlfred) wrote :

fixed in revision 2634 of i2ce/4.0-dev

Changed in ihris-manage:
status: Incomplete → Fix Committed
Changed in pmoralg:
status: New → Fix Committed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.