You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After upgrading to the latest version "1.4.8.0" from "1.4.19", i am having a very strange issue with automatic deletion of cache files.
This seems to happen when someone chooses to generate a PDF file which results in deleting all the files located at "cache" folder used to the selected area, eg specific images of the module used.
This strange behaviour is happening both at admin backend, eg from "modules" -> "list" -> select a module and then click at "PDF" bottom at the bottom of the page, or the frontend eg when a user exports the results of a test as "PDF".
Thank you for Tcexam and for any help if possible
The text was updated successfully, but these errors were encountered:
This happens in shared/tcpdf/tcpdf.php around line: 7826
in function _destroy()
I've commented the code bellow and I have no deletes of the generated .png files.
if (isset($this->imagekeys)) {
foreach($this->imagekeys as $file) {
if (strpos($file, K_PATH_CACHE) === 0 && TCPDF_STATIC::file_exists($file)) {
@unlink($file);
}
}
}
Although I don't like this option that much, cause it also does not delete on Error
I think best solution is to change
register_shutdown_function(array($this, '_destroy'), true);
to
register_shutdown_function(array($this, '_destroy'), true, true);
After upgrading to the latest version "1.4.8.0" from "1.4.19", i am having a very strange issue with automatic deletion of cache files.
This seems to happen when someone chooses to generate a PDF file which results in deleting all the files located at "cache" folder used to the selected area, eg specific images of the module used.
This strange behaviour is happening both at admin backend, eg from "modules" -> "list" -> select a module and then click at "PDF" bottom at the bottom of the page, or the frontend eg when a user exports the results of a test as "PDF".
Thank you for Tcexam and for any help if possible
The text was updated successfully, but these errors were encountered: