将网站上传到服务器时出现错误:
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
答案 0 :(得分:0)
我发现了此轨迹here,但不确定为什么我的服务器环境突然开始暴露此问题,显然问题已经存在了一段时间。
解决方法是将其添加到主题主题的functions.php的最后一行:
//added to fix zlib bug - see: https://core.trac.wordpress.org/ticket/18525
remove_action( 'shutdown', 'wp_ob_end_flush_all', 1 );