0

I have an error when I upload my website to the server:

Notice: ob_end_flush() [ref.outcontrol]: 
failed to delete buffer zlib output compression in
/srv/disk4/simscreation/www/nameofwebsite.com/wp-includes/functions.php 
on line 3747
Peter Mortensen
  • 30,738
  • 21
  • 105
  • 131
yali
  • 1,038
  • 4
  • 15
  • 31

1 Answers1

0

I found this track here but not sure why all of a sudden my server environment started exposing this problem, apparently it's been around for some time now.

The fix was to add this to the last line in my theme's functions.php:

//added to fix zlib bug - see: https://core.trac.wordpress.org/ticket/18525
remove_action( 'shutdown', 'wp_ob_end_flush_all', 1 );
  • Similar to: https://stackoverflow.com/questions/38693992/notice-ob-end-flush-failed-to-send-buffer-of-zlib-output-compression-1-in – Philip Ingram Aug 21 '18 at 16:29