barryvdh / laravel-snappy

Laravel Snappy PDF
MIT License
2.63k stars 290 forks source link

unlink exception during Knp\Snappy\AbstractGenerator->removeTemporaryFiles() #441

Closed Chuuone closed 3 years ago

Chuuone commented 3 years ago

The issue im coming across is the exception below. Il make it clear that this exception does not break any code other than simply throw an unnecessary exception. Has this exception been come across? A solution could be to use an error control operator '@' PHP.net

Translated: "unlink(/tmp/knp_snappy60dd082604fd23.40978709.html): The file or folder doesn't exist."

Message:
unlink(/tmp/knp_snappy60dd082604fd23.40978709.html): Filen eller katalogen finns inte

File:
/vendor/laravel/framework/src/Illuminate/Filesystem/Filesystem.php

Line:
270

DATA
------------------------------
paths:
Array
(
    [0] => /tmp/knp_snappy60dd082604fd23.40978709.html
)

success:
1

path:
/tmp/knp_snappy60dd082604fd23.40978709.html

TRACE #1
------------------------------
File:
/vendor/laravel/framework/src/Illuminate/Filesystem/Filesystem.php

Line:
270

Function:
unlink

TRACE #2
------------------------------
File:
/vendor/barryvdh/laravel-snappy/src/IlluminateSnappyPdf.php

Line:
77

Function:
Illuminate\\Filesystem\\Filesystem->delete

TRACE #3
------------------------------
File:
/vendor/knplabs/knp-snappy/src/Knp/Snappy/AbstractGenerator.php

Line:
436

Function:
Barryvdh\\Snappy\\IlluminateSnappyPdf->unlink

TRACE #4
------------------------------
File:
/vendor/knplabs/knp-snappy/src/Knp/Snappy/AbstractGenerator.php

Line:
60

Function:
Knp\\Snappy\\AbstractGenerator->removeTemporaryFiles

TRACE #5
------------------------------
Function:
Knp\\Snappy\\AbstractGenerator->__destruct
Chuuone commented 3 years ago

Closing as i am referencing the issue to the wrong repository.