Welcome Guest, Not a member yet? Register   Sign In
CodeIgniter\Exceptions\FrameworkException
#1

Hi All.
Plz Help Me for Fixed Error:

Your zlib.output_compression ini directive is turned on. This will not work well with output buffers.

APPPATH/Config/Events.php at line 28

21  * Example:
22  *      Events::on('create', [$myInstance, 'myMethod']);
23  */
24
25 Events::on('pre_system', static function () {
26    if (ENVIRONMENT !== 'testing') {
27        if (ini_get('zlib.output_compression')) {
28            throw FrameworkException::forEnabledZlibOutputCompression();
29        }
30
31        while (ob_get_level() > 0) {
32            ob_end_flush();
33        }
34
35        ob_start(static fn($buffer) => $buffer);
Reply
#2

(This post was last modified: 08-20-2023, 01:03 PM by captain-sensible. Edit Reason: As Jimmy cricket once said wait there's mooore )

well in my /etc/php/php.ini there are these lines :

Code:
zlib.output_compression = Off        //therefore compression is off

; https://php.net/zlib.output-compression-level    // therefore disabled
;zlib.output_compression_level = -1    //therefore  disabled
i.e i have it disabled and everything is working on dev in apache on Arch linux. Never ever have needed to enable
Code:
zlib.output_compression

on the face of it , it seems yours has been enabled . Also are you talking about CI4 local host ? if so find your php.ini and stick a ";" at beginning of line to disable
if its xampp then , that has its own ini i believe
CMS CI4     I use Arch Linux by the way 

Reply




Theme © iAndrew 2016 - Forum software by © MyBB