ob_end_flush(): failed to send buffer everytime I update wordpress
-
Everytime I use the automated wordpress updater I always get this error message
Downloading update from https://downloads.wordpress.org/release/wordpress-5.4-no-content.zip…
Notice: ob_end_flush(): failed to send buffer of zlib output compression (1) in E:\Programs\XAMPP\htdocs\mttwood_www\wp-includes\functions.php on line 4552
Notice: ob_end_flush(): failed to send buffer of zlib output compression (1) in E:\Programs\XAMPP\htdocs\mttwood_www\wp-includes\functions.php on line 4552
Fatal error: Maximum execution time of 30 seconds exceeded in E:\Programs\XAMPP\htdocs\mttwood_www\wp-includes\Requests\Transport\cURL.php on line 463
There has been a critical error on your website. Please check your site admin email inbox for instructions.I’ve tried adding in remove_action( ‘shutdown’, ‘wp_ob_end_flush_all’, 1 ); in the themes functions. Still happens.
I’m kinda tired of these delays in production with these errors. Last time I reported it I just got back a install manually. No. I would much rather the automatic update feature to be working properly again please.
edit. If I look at that line on that file, it seems to be a function written specifically for php 5. I’m using php 7. Could this be the reason?
edit again – yes it was the php version. php 7.2.10 has zlib compression turned on. Where as php5 has it turned off. So it was a matter of disabling zlib compression in the php ini file of 7.2.10. This was my last restort, all other solutions including increasing post and upload size failed. So it looks like in an update you need to offer support in your wp-includes/functions.php file for php that runs zlib compression it appears that that is the barrier of updating. Updates are failing if zlib is enabled
The topic ‘ob_end_flush(): failed to send buffer everytime I update wordpress’ is closed to new replies.