Hello Team,
I would like to share some issues we're currently facing. I would appreciate it if you could check this on high priority as one of our existing clients is facing this.
we have a functionality to export a PDF but we have encountered an issue.
In this pdf we also use the images created at the time of export.
And the function used for creating the image sugar functions which is
$UploadStream = new UploadStream();
$ifp = $UploadStream->stream_open('123456789' . $id . $final_ext, "wb");
$UploadStream->stream_write(base64_decode($image_data[1]));
$UploadStream->stream_close();
These images will be created in upload folder during PDF generation. Sometimes, the PDFs are created and exported successfully, but occasionally, we receive a 500/TCPDF image not found error.
We discovered that the images created in the upload folder during PDF generation are sometimes corrupted, which causes the PDF creation to fail.
Here attaching the video link and screenshot as well.
www.awesomescreenshot.com/.../28605318
In this video, you can see that the first time the PDF downloads perfectly, but on the second attempt, we get an error. In the upload folder, one file is created corrupted, which causes the 500 error.
I am also sharing the error.log file, which contains the error log when the PDF export fails.
