Problem:
The user was encountering the following PHP notice on his website:
Notice: ob_end_flush(): failed to send buffer of zlib output compression (0)
Solution:
This is not a Toolset error, but rather, a wordpress edge case with the zlib compression configured on the server.
Check this https://stackoverflow.com/questions/38693992/notice-ob-end-flush-failed-to-send-buffer-of-zlib-output-compression-1-in
The user was able to fix it following this article https://www.kevinleary.net/wordpress-ob_end_flush-error-fix/
By adding the following code to theme's functions.php
/** * Proper ob_end_flush() for all levels * * This replaces the WordPress `wp_ob_end_flush_all()` function * with a replacement that doesn't cause PHP notices. */ remove_action( 'shutdown', 'wp_ob_end_flush_all', 1 ); add_action( 'shutdown', function() { while ( @ob_end_flush() ); } );
This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.
Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.
Sun | Mon | Tue | Wed | Thu | Fri | Sat |
---|---|---|---|---|---|---|
9:00 – 13:00 | 9:00 – 13:00 | 9:00 – 13:00 | 9:00 – 13:00 | - | - | 9:00 – 13:00 |
14:00 – 18:00 | 14:00 – 18:00 | 14:00 – 18:00 | 14:00 – 18:00 | - | - | 14:00 – 18:00 |
Supporter timezone: Africa/Casablanca (GMT+01:00)
This topic contains 5 replies, has 2 voices.
Last updated by 4 years, 7 months ago.
Assisted by: Jamal.