Forum

Ask, reply and learn. Join the community of Akaunting.

New Discussion

Dompdf error

Mathijs Constantin   ( User )

Commented 6 years ago

file_exists(): open_basedir restriction in effect. File(/tmp/log.htm) is not within the allowed path(s): (/home/websecret/web/websecret.com/public_html:/home/websecret/tmp)


 


I get this error when trying to download a PDF as customer, anyone knows a solution?

Mathijs Constantin   ( User )

Commented 6 years ago

Happens not only as customer but also as any other role by just using the 'Download PDF' button.

Denis Dulici   ( Admin )

Commented 6 years ago

Mathijs, that happens when the file/folder permissions are strict and don't allow Akaunting to create the PDF file. I would advise contacting your hosting company for further support.

Mathijs Constantin   ( User )

Commented 6 years ago

I'm hosting it on my own VPS using vestacp, which file should I give more permissions?

Denis Dulici   ( Admin )

Commented 6 years ago

You should give permissions to the "storage/app/temp" folder.

Mathijs Constantin   ( User )

Commented 6 years ago

I don't have that folder.


I do have a /home/websecret/tmp though where log.html is in.


But the dompdf is trying to access /home/websecret/web/websecret.com/public_html:/home/websecret/tmp which seems to be the wrong location is there is no such folder in the public_html and I guess the file does not have permission to go out of the public_html. Any way to fix this?

Please login or register to leave a response.

Showing 1 to 6 of 6 discussions