KnpLabs / snappy

PHP library allowing thumbnail, snapshot or PDF generation from a url or a html page. Wrapper for wkhtmltopdf/wkhtmltoimage

Home Page:https://knplabs.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

unlink exception Knp\\Snappy\\AbstractGenerator->removeTemporaryFiles during generator destruct

Chuuone opened this issue · comments

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 '@'.

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

commented

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.