Hi there. First up - thanks again for this AWESOME tool! I swear by OSTicket and don't see myself using anything else. I also tell everyone about it and nudge them in the direction of the paid hosting to support the team.
I am having an issue now which I'm hoping I can get some help with - and maybe a suggestion for future......
I'm in the process of moving from one hosting provider to another. Was checking for ways to migrate the data but couldn't find anything. What I did was export the database from the old provider and import to the new. Install OSTicket and link the database that way. Everything seems to be working fine except printing PDF. Please see details and error output below. I'm not an expert at this stuff - so please bear with me if instructions given need more expansion.
OSTicket Version - v1.12.2
Apache Version - 2.4.39
PHP Version - 7.2.20
MySQL Version - 10.3.16-MariaDB-cll-lve
Fatal error: Uncaught RuntimeException: SplFileInfo::isFile(): open_basedir restriction in effect. File(/tmp/.s.PGSQL.5432) is not within the allowed path(s): (/home/:/home2/:/home4/:/usr/lib/php:/usr/local/lib/php:/tmp) in /public_html/ticket/include/mpdf/vendor/mpdf/mpdf/src/Cache.php:92 Stack trace: #0 /public_html/ticket/include/mpdf/vendor/mpdf/mpdf/src/Cache.php(92): SplFileInfo->isFile() #1 /public_html/ticket/include/mpdf/vendor/mpdf/mpdf/src/Mpdf.php(9392): Mpdf\Cache->clearOld() #2 /public_html/ticket/include/class.pdf.php(51): Mpdf\Mpdf->Output('Ticket-000662.p...', 'S') #3 /public_html/ticket/include/class.ticket.php(3121): mPDFWithLocalImages->output('Ticket-000662.p...', 'S') #4 /public_html/ticket/scp/tickets.php(498): Ticket->pdfExport('Letter', NULL) #5 {main} thrown in /public_html/ticket/include/mpdf/vendor/mpdf/mpdf/src/Cache.php on line 92
Everything else seems to work: email - cron - messaging - search. But the PDF doesn't work. Not sure why.
class.pdf.php / 51 = return parent:😮utput($name, $dest);
cache.php / 92 = && $item->isFile()
mpdf / 9392 = $this->cache->clearOld();
class.ticket.php / 3121 = Http::download($name, 'application/pdf', $pdf->output($name, 'S'));
tickets.php / 498 = } elseif($REQUEST['a'] == 'print' && !$ticket->pdfExport($REQUEST['psize'], $_REQUEST['notes']))
Hopefully that's enough info. Wondering if that HTTP should be changed to HTTPS since the site is HTTPS.....
Thanks in advance. Keep up the good work and kudos to the awesome members 😃 .
EDIT
So I changed the Http in class.ticket.php to Https and got this output.
Fatal error: Uncaught Error: Class 'Https' not found in /public_html/ticket/include/class.ticket.php:3121 Stack trace: #0 /public_html/ticket/scp/tickets.php(498): Ticket->pdfExport('Letter', NULL) #1 {main} thrown in /public_html/ticket/include/class.ticket.php on line 3121
So I changed it back. Maybe there's some setting I'm missing? Or something else should have been changed before/after I did the migrate? Here is a screenshot of the "about" page as well.
Once again - thanks in advance.
EDIT
So. As an update - I did a fresh install without migrating the database just to see what would happen. I got the same errors. Not sure what needs to be done, but it may be a setting or something that I need to change or request the hosting provider to change. So waiting on some instructions on how to get it done. Thanks in advance.
EDIT
Did some tests with the PHP version. Going to run a secondary install and verify some stuff. May be the PHP version on the site that's causing the issue. Not sure. Once tests are done will see. I suspect this because I did another install using PHP 5.6 and it worked. I just couldn't get the database imported. Will write down and document the steps as I go along until/unless someone comes on with more knowledge in this and can provide some assistance.