Home > CMS Tutorial > PHPCMS > body text

What should I do if ob start fails in phpcms?

藏色散人
Release: 2020-07-11 11:03:56
Original
2655 people have browsed it

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();
}
Copy after login

2. Solution 2:

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

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

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!

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template