Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

In this Discussion

osTicket v1.10 (stable) and Maintenance Release v1.9.15 are now available! Go get it now

support for PHP 7.x

My web host recently upgraded all of the hosting accounts PHP version to use PHP 7.x but with that upgrade OSTicket stopped working. When using 7.1 the site wont let me login and when using 7.0 I can login and everything seems to work as expected except that when the system auto creates a ticket from email the ticket is created in blank, none of the text in the email is added. I manually downgraded to 5.x and it is working again as expected.

Is there any fix I can apply to use PHP 7.x or does this involve changes to the coding of OSTicket?

Comments

  • osTicket 1.10+ [current being 1.10.1] already supports php7.x  It does not support php7.1.x. I'm not sure what the differences are between the two but yes it is my understanding that it requires changes to the core files of osTicket.
  • Thanks! I will upgrade my OSTicket instalation then and let you know the results.
  • I updated the system to OSTicket 1.10.1 and PHP 7.0.21 and now the tickets that come in by email are created but the text of the email is created as (empty) as displayed in the attachment.

    If i change back to PHP 5.6 then everything starts working as expected.

    Please Advise.
    serverdata.JPG
    656 x 203 - 28K
    ticketinfo.JPG
    669 x 118 - 17K
  • Try using the fix suggested here, upgrade to PHP 7.0, and test again. Cheers.
  • edited November 4
    I changed line 648 as described putting:
      $input = preg_replace_callback('/=([a-f0-9]{2})/i', function($m) { return chr(hexdec($m[0])); }, $input)
    upgraded to php 7.0.21 again and after sending a few test emails it seems that the issue is resolved.

    Thanks!
Sign In or Register to comment.