How to fix error “Notice: ob_end_flush(): failed to send buffer of zlib output compression

Hi all, on the post i will guide you how to fix error “Notice: ob_end_flush(): “, if your website show Notice on below

Notice: ob_end_flush(): failed to send buffer of zlib output compression (0) in /wp-includes/functions.php on line 4339

Now you open file function.php on your theme and add code below

remove_action('shutdown', 'wp_ob_end_flush_all', 1);

save file and upload to hosting and see the results.