21,886
社区成员
发帖
与我相关
我的任务
分享
Uncaught error with message 'E_WARNING: Cannot modify header information - headers already sent by (output started at E:\AppServ\www\phpwind\upload\src\extensions\pwpick\service\srv\helper\AdminOutputHelper.php:323)'
The server encountered an internal error and failed to process your request. Please try again later. If this error is temporary, reloading the page might resolve the problem.
If you are able to contact the administrator report this error message.(http://www.windframework.com/)
这个报错信息是phpwind自己搞出来的,他自己有个函数专门搞这个
/**
* 错误视图渲染
*
* @param array $__vars
*/
private function render($__vars, $errorcode, $errDir, $errPage) {
@extract($__vars, EXTR_REFS);
unset($__vars);
ob_start();
$this->getResponse()->setStatus($errorcode);
$this->getResponse()->sendHeaders();
require $errDir . '/' . $errPage . '.htm';
exit();
}
看到$this->getResponse()->sendHeaders();这行了吗?我前面有输出了,他再搞这行就出错了。我被他报错在 ob_flush();这个误导了。
谢谢大家的关注。echo 'sd';
ob_flush();
flush();
这段代码的前面加上一行什么代码让他出错。你会加什么代码?
function flush_buffers(){
ob_end_flush();
ob_flush();
flush();
ob_start();
}