file_exists():open_basedir限制生效。 文件(/tmp/log.htm)不在允许的路径中:

I am generating PDF file using DOMPDF in CodeIgniter, it works fine in localhost. But it gives me the following error after uploading the files to the server.

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

Filename: src/Dompdf.php

Line Number: 714

This is my code

$htmlcontent= $this->load->view('admin/test',$data,true);           
$this->pdf->loadHtml($htmlcontent);
$this->pdf->render();           
$this->pdf->stream("report.pdf",array("Attachment=>0"));

I have followed many answers from google but I couldn't fix my problem. please how can i resolve this??

Try going to the file, to line 714 and changing tmp to home/admin/tmp