安装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压缩后输出

 

相关文章

本教程操作系统:Windows10系统、phpcms 9版本、Dell G3电脑...
PHPcms访问特点:单一入口模式。无论访问任何一个模块或者功...
例如:{pc:contentaction="position"posid="...
首先,上图之中的红色框框是没有的,我们想要给他加上,当然...
头部<metaname="keywords"content="{$SEO...
做网站时用的到的简单的栏目导航()phpcms多个栏目catidin(9,...