laravel-dompdf: Permission denied on Windows

That is what it is happening with Windows:

ErrorException in font_metrics.cls.php line 366:
unlink(H:\xampp\htdocs\project\storage\temp//049952fa0c110b2f9e38d468b1a08d06): Permission denied

I tried in every way to change the permission but it was useless.

About this issue

  • Original URL
  • State: closed
  • Created 9 years ago
  • Comments: 20 (2 by maintainers)

Most upvoted comments

I fixed code on file font_metrics.cls.php on line 366 from unlink($local_temp_file);

to

if (!$local_temp_file) { unlink($local_temp_file); return false; }

and it work.