Laravel error message


Good morning, im building a Laravel system as an academic job, and i receiving this kind of error while i try to use the DOMPDF package to generate the reports:

file_exists(): open_basedir restriction in effect. File(/storage/ssd2/229/4870229/tmp/log.htm) is not within the allowed path(s): (/opt/awex-pages:/storage/ssd5/215/5459215)


Check the paths :slight_smile:


i’ve made a dd test on the base path (returned -> “/storage/ssd5/215/5459215”), but in the my local server is working ok. How can i set the correct path to enable the package to generate the report?


I’ve found it! The dompdf.php uses a temporary directory path to generate the PDF files, and i’ve created a folder for that. Thank you!