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

Ajax form assign ticket doesnt work because of failed template info

I've just started using osTicket, and my current install has a problem with the ajax field for claiming and reassigning tickets.
See the image, the ajax field is empty.
image

I started digging into the problem, and seem to have the same issue as someone on github.
Some server info in the attached screenshots.
image
Server Information
osTicket Versionv1.10 (901e5ea) —  Up to date
Web Server SoftwareApache/2.4.18 (Ubuntu)
MySQL Version5.7.19
PHP Version7.0.22-0ubuntu0.16.04.1

Similar question has been posted on: https://github.com/osTicket/osTicket/issues/3434
Which has a dirty fix, see screenshot.
image

This (dirty) fixes the issue, but i am still wondering what i might have missed or how to properly correct the issue.
image

Thanks,

Comments

  • Php error log:

    [Wed Sep 06 17:07:32.028509 2017] [:error] [pid 1564] [client 1.2.3.4:27982] FastCGI: server "/usr/lib/cgi-bin/php7-fcgi" stderr: PHP message: PHP Fatal error:  Uncaught Exception: TransferForm: Unknown template style  in /var/www/service.domain.com/include/class.forms.php:4252, referer: http://service.domain.com/scp/tickets.php?id=28
    [Wed Sep 06 17:07:32.028575 2017] [:error] [pid 1564] [client 1.2.3.4:27982] FastCGI: server "/usr/lib/cgi-bin/php7-fcgi" stderr: Stack trace:, referer: http://service.domain.com/scp/tickets.php?id=28
    [Wed Sep 06 17:07:32.028580 2017] [:error] [pid 1564] [client 1.2.3.4:27982] FastCGI: server "/usr/lib/cgi-bin/php7-fcgi" stderr: #0 /var/www/service.domain.com/include/staff/templates/transfer.tmpl.php(43): TransferForm->render(Array), referer: http://service.domain.com/scp/tickets.php?id=28
    [Wed Sep 06 17:07:32.028583 2017] [:error] [pid 1564] [client 1.2.3.4:27982] FastCGI: server "/usr/lib/cgi-bin/php7-fcgi" stderr: #1 /var/www/service.domain.com/include/ajax.tickets.php(416): include('/var/www/servic...'), referer: http://service.domain.com/scp/tickets.php?id=28
    [Wed Sep 06 17:07:32.028599 2017] [:error] [pid 1564] [client 1.2.3.4:27982] FastCGI: server "/usr/lib/cgi-bin/php7-fcgi" stderr: #2 /var/www/service.domain.com/include/class.dispatcher.php(145): TicketsAjaxAPI->transfer('28'), referer: http://service.domain.com/scp/tickets.php?id=28
    [Wed Sep 06 17:07:32.028601 2017] [:error] [pid 1564] [client 1.2.3.4:27982] FastCGI: server "/usr/lib/cgi-bin/php7-fcgi" stderr: #3 /var/www/service.domain.com/include/class.dispatcher.php(38): UrlMatcher->dispatch('28/transfer', Array), referer: http://service.domain.com/scp/tickets.php?id=28
    [Wed Sep 06 17:07:32.028604 2017] [:error] [pid 1564] [client 1.2.3.4:27982] FastCGI: server "/usr/lib/cgi-bin/php7-fcgi" stderr: #4 /var/www/service.domain.com/include/class.dispatcher.php(120): Dispatcher->resolve('28/transfer', Array), referer: http://service.domain.com/scp/tickets.php?id=28
    [Wed Sep 06 17:07:32.028606 2017] [:error] [pid 1564] [client 1.2.3.4:27982] FastCGI: server "/usr/lib/cgi-bin/php7-fcgi" stderr: #5 /var/www/service.domain.com/include/class.dispatcher.php(38): UrlMatcher->dispatch('/tickets/28/tra...', NULL), referer: http://service.domain.com/scp/tickets.php?id=28
    [Wed Sep 06 17:07:32.028609 2017] [:error] [pid 1564] [client 1.2.3.4:27982] FastCGI: server "/usr/lib/cgi-bin/php7-fcgi" stderr: #6 /var/www/service.domain.com/scp/ajax.php(262): Dispatcher->resolve('/tickets/28/tra...'), referer: http://service.domain.com/scp/tickets.php?id=28
    [Wed Sep 06 17:07:32.028611 2017] [:error] [pid 1564] [client 1.2.3.4:27982] FastCGI: server "/usr/lib/cgi-bin/php7-fcgi" stderr: #7 {main}, referer: http://service.domain.com/scp/tickets.php?id=28
    [Wed Sep 06 17:07:32.028613 2017] [:error] [pid 1564] [client 1.2.3.4:27982] FastCGI: server "/usr/lib/cgi-bin/php7-fcgi" stderr:   thrown in /var/www/service.domain.com/include/class.forms.php on line 4252, referer: http://service.domain.com/scp/tickets.php?id=28

  • edited September 6
    I would avoid PHP 7.x and mySQL 5.7 at the moment.
    I think PHP 5.6 and mySQL 5.5.x or 5.6.x is a good choice.. 
  • I have similar issues and had to give up. The catch is modern distros aren't exactly offering PHP 5 anymore.

    In the case of Debian and Ubuntu, you'd likely have to compile yourself.
  • Kind of solved;

    I am now able to run osTicket on php7 (see specs above). Adjustments needed:
    You will come across warnings as described on: https://github.com/osTicket/osTicket/issues/3033

    That fix introduces the problem that i described above, you can fix that with: https://github.com/osTicket/osTicket/pull/3266#issuecomment-237512537

    Another problem was that all field are disabled for most forms. There are a couple of topics on that. Goto admin panel, manage, forms, built-in forms, change visibility by clikcing on the "config" button
Sign In or Register to comment.