duanbu1421 2014-05-28 15:27
浏览 200

Laravel错误:ob_end_flush():无法发送zlib输出压缩缓冲区(0)

Every time I have an error, for example: trying to access a property of a non-object, I get this message:

ob_end_flush(): failed to send buffer of zlib output compression (0)

open: /home/admin/domains/mysite/vendor/symfony/http-foundation/Symfony/Component/HttpFoundation/Response.php

$previous = null;
$obStatus = ob_get_status(1);
while (($level = ob_get_level()) > 0 && $level !== $previous) {
    $previous = $level;
    if ($obStatus[$level - 1]) {
        if (version_compare(PHP_VERSION, '5.4', '>=')) {
            if (isset($obStatus[$level - 1]['flags']) && ($obStatus[$level - 1]['flags'] & PHP_OUTPUT_HANDLER_REMOVABLE)) {
                ob_end_flush();
            }
        }
    }
}

I tried setting in php.ini:

zlib.output_compression = Off
zlib.output_handler =

but it does not help.

I am using Laravel 4.1

Does anyone know how to resolve this?

  • 写回答

3条回答 默认 最新

  • du27271 2015-10-18 16:03
    关注

    If your are using @secction in your view then use @stop bellow the section to stop the section area

    评论

报告相同问题?

悬赏问题

  • ¥20 求个正点原子stm32f407开发版的贪吃蛇游戏
  • ¥15 正弦信号发生器串并联电路电阻无法保持同步怎么办
  • ¥15 划分vlan后,链路不通了?
  • ¥20 求各位懂行的人,注册表能不能看到usb使用得具体信息,干了什么,传输了什么数据
  • ¥15 Vue3 大型图片数据拖动排序
  • ¥15 Centos / PETGEM
  • ¥15 划分vlan后不通了
  • ¥20 用雷电模拟器安装百达屋apk一直闪退
  • ¥15 算能科技20240506咨询(拒绝大模型回答)
  • ¥15 自适应 AR 模型 参数估计Matlab程序