DOMPDF: Unable to stream pdf: headers already sent

后端 未结 10 2270
夕颜
夕颜 2020-12-18 06:45

This question has been raised hundred of times in various fora; some have been solved, some not. I checked plenty of resources, but my issue could not be resolved. I am gene

10条回答
  •  时光取名叫无心
    2020-12-18 07:26

    I had this issue, with no apparent output when viewing the source. The problem for me was that I had flushed the output, even though there was none except the headers, and that blocked streaming the output giving the "headers already sent" message. Which was true. My fix was to remove the flush() and ob_flush() statements, and the streaming output then worked.

提交回复
热议问题