[Support request] PDF and ZIP ticket report error

    • March 8, 2023 at 2:14 pm #15494
      ablovatto
      Participant

      Dear Support,

      My Osticket is working perfectly. However i’m facing a problem when generate ticket PDF. 

      In PDF System returns:

      Fatal error: Uncaught Mpdf\MpdfException: Invalid input characters. Did you set $mpdf->in_charset properly? in /var/www/vhosts/pensegrand.com.br/httpdocs/grandconstrutora/osticket/include/mpdf/vendor/mpdf/mpdf/src/Mpdf.php:26035 Stack trace: #0 /var/www/vhosts/pensegrand.com.br/httpdocs/grandconstrutora/osticket/include/mpdf/vendor/mpdf/mpdf/src/Mpdf.php(13185): Mpdf\Mpdf->purify_utf8() #1 /var/www/vhosts/pensegrand.com.br/httpdocs/grandconstrutora/osticket/include/class.pdf.php(50): Mpdf\Mpdf->WriteHTML() #2 /var/www/vhosts/pensegrand.com.br/httpdocs/grandconstrutora/osticket/include/class.pdf.php(101): mPDFWithLocalImages->WriteHtml() #3 /var/www/vhosts/pensegrand.com.br/httpdocs/grandconstrutora/osticket/include/class.pdf.php(78): Ticket2PDF->_print() #4 /var/www/vhosts/pensegrand.com.br/httpdocs/grandconstrutora/osticket/include/class.ticket.php(3590): Ticket2PDF->__construct() #5 /var/www/vhosts/pensegrand.com.br/httpdocs/grandconstrutora/osticket/scp/tickets.php(525): Ticket->pdfExport() #6 {main} thrown in /var/www/vhosts/pensegrand.com.br/httpdocs/grandconstrutora/osticket/include/mpdf/vendor/mpdf/mpdf/src/Mpdf.php on line 26035

       

      In ZIP System returns:

      Fatal error: Uncaught Mpdf\MpdfException: Invalid input characters. Did you set $mpdf->in_charset properly? in /var/www/vhosts/pensegrand.com.br/httpdocs/grandconstrutora/osticket/include/mpdf/vendor/mpdf/mpdf/src/Mpdf.php:26035 Stack trace: #0 /var/www/vhosts/pensegrand.com.br/httpdocs/grandconstrutora/osticket/include/mpdf/vendor/mpdf/mpdf/src/Mpdf.php(13185): Mpdf\Mpdf->purify_utf8() #1 /var/www/vhosts/pensegrand.com.br/httpdocs/grandconstrutora/osticket/include/class.pdf.php(50): Mpdf\Mpdf->WriteHTML() #2 /var/www/vhosts/pensegrand.com.br/httpdocs/grandconstrutora/osticket/include/class.pdf.php(101): mPDFWithLocalImages->WriteHtml() #3 /var/www/vhosts/pensegrand.com.br/httpdocs/grandconstrutora/osticket/include/class.pdf.php(78): Ticket2PDF->_print() #4 /var/www/vhosts/pensegrand.com.br/httpdocs/grandconstrutora/osticket/include/class.export.php(882): Ticket2PDF->__construct() #5 /var/www/vhosts/pensegrand.com.br/httpdocs/grandconstrutora/osticket/include/class.export.php(970): TicketZipExporter->addTicket() #6 /var/www/vhosts/pensegrand.com.br/httpdocs/grandconstrutora/osticket/include/class.ticket.php(3600): TicketZipExporter->download() #7 /var/www/vhosts/pensegrand.com.br/httpdocs/grandconstrutora/osticket/scp/tickets.php(528): Ticket->zipExport() #8 {main} thrown in /var/www/vhosts/pensegrand.com.br/httpdocs/grandconstrutora/osticket/include/mpdf/vendor/mpdf/mpdf/src/Mpdf.php on line 26035

      In Osticket older version, PDF and ZIP ticket report works perfectly. 

      System is hosted in Amazon Lightsail.

      Waiting for your reply. Thanks.

       

       

      osTicket v1.16.3 // osTicket-1.16.3-Awesome-101
      PHP 8.0.28 // MySQL 10.3.38 // Apache web server

You must be logged in to reply to this topic.