Buffer Flush Fix

If you've run into the error "failed to send buffer of zlib output compression" with WordPress, this simple plugin fixes the issue.

Author:Openwrite (profile at wordpress.org)
WordPress version required:2.2
WordPress version tested:5.2.3
Plugin version:1.0
Added to WordPress repository:04-10-2019
Last updated:04-10-2019
Warning! This plugin has not been updated in over 2 years. It may no longer be maintained or supported and may have compatibility issues when used with more recent versions of WordPress.
Rating, %:0
Rated by:0
Plugin URI:http://wordpress.org/plugins/buffer-flush-fix...
Total downloads:586
Active installs:10+
plugin download
Click to start download

If you’ve run into the error “failed to send buffer of zlib output compression” with WordPress, this simple plugin fixes the issue.

The plugin replaces the default “wp_ob_end_flush_all” implementation, by adding a check for whether zlib compression is on. If it is,
then buffer level one isn’t flushed. This prevents WordPress from trying to flush the ‘reserved’ compression buffer, which causes an error.

A patch has also been submitted to the WordPress core, with this plugin as an interim solution.