0"."/> 0".">

Home  >  Article  >  CMS Tutorial  >  What should I do if ob start fails in phpcms?

What should I do if ob start fails in phpcms?

藏色散人
藏色散人Original
2020-07-11 11:03:562634browse

Solution to the failure of ob start in phpcms: 1. Open the "phpcms/base.php" file and modify the code to "ob_start('ob_gzhandler');"; 2. In "system.php" Find gzip and modify it to "'gzip'=>0".

What should I do if ob start fails in phpcms?

Occurs when installing phpcmsWarning: ob_start(): output handler \'ob_gzhandler\' conflicts with \'zlib

Recommendation: "phpcms tutorial"

1. Solution 1:

Open phpcms/base.php, on line 57, modify it as follows:

if(pc_base::load_config('system','gzip') && function_exists('ob_gzhandler')) {
    //加上如下这段代码
    ob_end_clean();
    ob_start('ob_gzhandler');
} else {
    ob_start();
}

2. Solution 2:

Find gzip in system.php under install_package/caches/configs/ and modify it as follows:

'gzip' => 0, //是否Gzip压缩后输出

The above is the detailed content of What should I do if ob start fails in phpcms?. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn