ravage84 / SwissPaymentSlipTcpdf

A PHP class for creating Swiss Payment Slips in PDF format using TCDF
MIT License
7 stars 5 forks source link

Tcpdf Exeption unlinking unexistent file #10

Closed dduers closed 4 years ago

dduers commented 4 years ago

Hello, thank you for the library!

Not shure this is actually a tecnickcom/tcpdf problem ... When creating a orange paymentslip with the orange graphic included the pdf creation fails, because tecnickcom/tcpdf tries to delete a temporary file. The problem does not exists, when creating the paymentslip without the graphic.

unlink(C:\xampp\tmp/__tcpdf_3a46767c57fb621130de3fd07a3df1e0_imgmask_alpha_cfa558e0c9ec44149b0310ce46a8ae62): No such file or directory

The file really does not exist. The error exists for my Windows dev environment and also for the unix based production environment.

[C:/xampp/htdocs/domain3.local/vendor/tecnickcom/tcpdf/tcpdf.php:7801] unlink()
[C:/xampp/htdocs/domain3.local/vendor/tecnickcom/tcpdf/tcpdf.php:2022] TCPDF->_destroy()
[C:/xampp/htdocs/domain3.local/vendor/tecnickcom/tcpdf/tcpdf.php:7822] TCPDF->__destruct()
[C:/xampp/htdocs/domain3.local/vendor/tecnickcom/tcpdf/tcpdf.php:3007] TCPDF->_destroy()
[C:/xampp/htdocs/domain3.local/vendor/tecnickcom/tcpdf/tcpdf.php:7585] TCPDF->Close()
[C:/xampp/htdocs/domain3.local/app/classes/model/bill.php:503] TCPDF->Output()
[C:/xampp/htdocs/domain3.local/app/classes/controller/order.php:671] classes\model\bill->createBillTcPdf()
[C:/xampp/htdocs/domain3.local/app/classes/controller/order.php:120] classes\controller\order->createBillPDF()

When uncommenting the line 7794 in tcpdf.php everything works fine. tcpdf_hack

Regards, Daniel

dduers commented 4 years ago

There is already an issue open @ tecnickcom/tcpdf ...