Flarum项目调试中,经常出现报错
Unable to emit response; headers already sent in php://input:1
不知道什么原因导致的,有谁碰到过没?怎么解?
不知道哪个环节出错了,连回个贴都会出现,怀疑是哪个插件引发的
{“data”:{“type”:“posts”,“attributes”:{“content”:“GoodGoodGoodGoodGood”},“relationships”:{“discussion”:{“data”:{“type”:“discussions”,“id”:“22”}}}}}
Fatal error: Uncaught Laminas\HttpHandlerRunner\Exception\EmitterException: Unable to emit response; headers already sent in php://input:1 in /data/www/flarum/vendor/laminas/laminas-httphandlerrunner/src/Exception/EmitterException.php:15 Stack trace: #0 /data/www/flarum/vendor/laminas/laminas-httphandlerrunner/src/Emitter/SapiEmitterTrait.php(38): Laminas\HttpHandlerRunner\Exception\EmitterException::forHeadersSent(‘php://input’, 1) #1 /data/www/flarum/vendor/laminas/laminas-httphandlerrunner/src/Emitter/SapiEmitter.php(21): Laminas\HttpHandlerRunner\Emitter\SapiEmitter->assertNoPreviousOutput() #2 /data/www/flarum/vendor/laminas/laminas-httphandlerrunner/src/RequestHandlerRunner.php(75): Laminas\HttpHandlerRunner\Emitter\SapiEmitter->emit(Object(Flarum\Api\JsonApiResponse)) #3 /data/www/flarum/vendor/flarum/core/src/Http/Server.php(45): Laminas\HttpHandlerRunner\RequestHandlerRunner->run() #4 /data/www/flarum/public/index.php(26): Flarum\Http\Server->listen() #5 {main} thrown in /data/www/flarum/vendor/laminas/laminas-httphandlerrunner/src/Exception/EmitterException.php on line 15