plugin-icon

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.
Version
1.0
Active installations
10
Last updated
Oct 4, 2019

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.

Freeon Business plan
Tested up to
WordPress 5.2.23
This plugin is available for download for your site.