Error: Zlib error -2 deflating data ((null))

Post Reply
User avatar
isscbta
Posts: 91
Joined: Mon Jul 19, 2021 1:41 am
Has thanked: 7 times
Been thanked: 3 times

In situation when you get this error:
[Wed Dec 28 23:40:24.920188 2022] [deflate:error] [pid 29944:tid 139922593777408] [client 12.12.12.12:52930] AH01386: Zlib error -2 deflating data ((null)), referer: https://www.domain.com/adm/login.php?ac ... =%2Fadm%2F
[Wed Dec 28 23:40:24.920196 2022] [proxy_fcgi:error] [pid 29944:tid 139922593777408] (20014)Internal error (specific information not available): [client 12.12.12.12s:52930] AH01075: Error dispatching request to : (passing brigade to output filters), referer: https://www.domain.com/adm/login.php?ac ... =%2Fadm%2F
This error typically indicates that the script is generating an excessive number of warnings, causing the error output buffer to stop functioning.

To prevent this, we will change FPM pool.d conf file (/etc/php/X.X/fpm/pool.d/yourdomain.com.conf - viewtopic.php?f=18&t=54) and add this:

Code: Select all

php_admin_value[zlib.output_compression] = off
php_admin_value[zlib.output_compression_level] = -1
php_admin_value[zlib.output_handler] =
And, in some PHP file, which you know that will execute always, at the beginning add:

Code: Select all

error_reporting(0);
Please keep in mind that if you plan to use error_reporting in the future, you will need to remove error_reporting(0) to enable error reporting once again.

Tags:
Post Reply