phpcms出现ob start失败的解决办法:1、打开“phpcms/base.php”文件,并修改代码为“ob_start('ob_gzhandler');”;2、在“system.php”中找到gzip并修改为“'gzip'=>0”。
安装phpcms时出现Warning: ob_start(): output handler 'ob_gzhandler' conflicts with 'zlib
1、 解决方法一:
打开phpcms/base.php,在第57行,修改如下:
if(pc_base::load_config('system','gzip') && function_exists('ob_gzhandler')) {
//加上如下这段代码
ob_end_clean();
ob_start('ob_gzhandler');
} else {
ob_start();
}
2、解决方法二:
在install_package/caches/configs/下的system.php中找到gzip,修改如下:
'gzip' => 0, //是否Gzip压缩后输出
以上就是phpcms出现ob start失败怎么办的详细内容,更多请关注米米素材网其它相关文章!
发表评论