问题描述:
回复,发布帖子时,出现“糟糕,出错啦!请刷新页面重试。”的问题复现
已启用的插件如下
报错内容:
`Warning: Invalid argument supplied for foreach() in /www/wwwroot/bbs/vendor/flarum/core/src/Forum/Content/Discussion.php on line 90
Fatal error: Uncaught Laminas\HttpHandlerRunner\Exception\EmitterException: Output has been emitted previously; cannot emit response in /www/wwwroot/bbs/vendor/laminas/laminas-httphandlerrunner/src/Exception/EmitterException.php:24 Stack trace: #0 /www/wwwroot/bbs/vendor/laminas/laminas-httphandlerrunner/src/Emitter/SapiEmitterTrait.php(40): Laminas\HttpHandlerRunner\Exception\EmitterException::forOutputSent() #1 /www/wwwroot/bbs/vendor/laminas/laminas-httphandlerrunner/src/Emitter/SapiEmitter.php(27): Laminas\HttpHandlerRunner\Emitter\SapiEmitter->assertNoPreviousOutput() #2 /www/wwwroot/bbs/vendor/laminas/laminas-httphandlerrunner/src/RequestHandlerRunner.php(98): Laminas\HttpHandlerRunner\Emitter\SapiEmitter->emit(Object(Laminas\Diactoros\Response\HtmlResponse)) #3 /www/wwwroot/bbs/vendor/flarum/core/src/Http/Server.php(44): Laminas\HttpHandlerRunner\RequestHandlerRunner->run() #4 /www/wwwroot/bbs/public/index.php(26): Flarum\Http\Server->listen() #5 {main} thrown in /www/wwwroot/bbs/vendor/laminas/laminas-httphandlerrunner/src/Exception/EmitterException.php on line 24`
已尝试的解决办法:
已按原贴的解决方法禁用 Pusher