Unable to Download Invoices as PDF in 1.5.2

Just installed 1.5.2

And this is what keeps popping up when trying to Download Invoice as PDF

An uncaught Exception was encountered

Type: Mpdf\MpdfException

Message: Temporary files directory "/var/www/html/ip/vendor/mpdf/mpdf/src/Config/../../tmp" is not writable

Filename: /var/www/html/ip/vendor/mpdf/mpdf/src/Cache.php

Line Number: 17

Backtrace:

File: /var/www/html/ip/vendor/mpdf/mpdf/src/Mpdf.php
Line: 930
Function: __construct

File: /var/www/html/ip/application/helpers/mpdf_helper.php
Line: 39
Function: __construct

File: /var/www/html/ip/application/helpers/pdf_helper.php
Line: 103
Function: pdf_create

File: /var/www/html/ip/application/modules/guest/controllers/View.php
Line: 106
Function: generate_invoice_pdf

File: /var/www/html/ip/index.php
Line: 327
Function: require_once

create this directory if it does not exist and make it writable…?

I would create it, but /…/…/ isn’t exactly a directory

/…/… means two directories back. would be var/www/html/ip/vendor/mpdf/mpdf/tmp then.

1 Like

Awesome. Fixed the issue.