0"."/> 0".">
Home > Article > CMS Tutorial > What should I do if ob start fails in phpcms?
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".
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!