Vyren Media Vyren Media - 5 months ago 73
PHP Question

FPDF error: Unexpected end of stream

I have a perfectly working setup of FPFD on my localhost(windows) it generates the pdf files alright. However, when i uploaded to the production environment(Linux), it throws this silly error.

I have been trying to trouble shoot for the past 2hrs now. the error does not give any pointers as to where the stream is suddenly ending. Have posted on their forum but that place looks dead to me.

Please who has used or encountered this error before?

Any help will be greatly appreciated.

Answer Source

After hours and days or researching, I found that a png image I was trying to use was not uploaded successfully....it was partially uploaded....I minified the image and reuploaded, and the error disappeared.