Hello, until yesterday everything was working fine.
osTicket (v1.18)

This morning, when I try to submit a new ticket, pressing the button causes the system to spin until it reaches an HTTP ERROR 500. The ticket appears to be submitted nonetheless, but if I try to access it later, it returns an error.

From what I could see in the logs, the 500 error is related to the max_execution_time. Despite increasing it from 30 to 180 seconds, the problem persists.

As an additional anomaly, I noticed that in ticket details, the description is pre-filled with the description entered the previous time, which wasn't the case until yesterday.

I have already restarted the Apache server, cleared cookies and cache in the browser, and tested with different browsers.

Do you have any suggestions on what might have happened that suddenly extended the execution times, and how to fix?

    Hi Kevin,
    I checked the Apache logs and OsTicket logs (no events even in debug mode). How do I retrieve the full stack trace you're asking for? Thanks

    edit:
    [Wed Nov 22 16:03:18.150722 2023] [php:error] [pid 1714] [client 192.168.72.243:60083] PHP Fatal error: Maximum execution time of 180 seconds exceeded in /var/www/html/osTicket/upload/include/class.format.php on line 658,

    edit2:
    By changing the max_execution_time to 300 seconds, I instead get this error:

    [Wed Nov 22 16:21:01.483597 2023] [php:error] [pid 2510] [client 192.168.72.243:60616] PHP Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 20480 bytes) in /var/www/html/osTicket/upload/include/class.sch>

      Upgraded to 1.18.1, but same results.

      [Thu Nov 23 08:01:53.641913 2023] [php:error] [pid 3983] [client 192.168.72.243:64768] PHP Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 20480 bytes) in /var/www/html/osTicket/upload/include/class.schedule.php on line 837, referer: http://srvweb/osTicket/upload/scp/tickets.php?a=open&uid=25>
      [Thu Nov 23 08:23:31.935621 2023] [php:error] [pid 906] [client 192.168.72.243:65291] PHP Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 65536 bytes) in Unknown on line 0, referer: http://srvweb/osTicket/upload/scp/tickets.php?a=open&uid=25>
      [Thu Nov 23 08:01:53.642134 2023] [php:error] [pid 3983] [client 192.168.72.243:64768] PHP Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 65536 bytes) in Unknown on line 0, referer: http://srvweb/osTicket/upload/scp/tickets.php?a=open&uid=25>

      [Thu Nov 23 08:23:31.935395 2023] [php:error] [pid 906] [client 192.168.72.243:65291] PHP Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 20480 bytes) in /var/www/html/osTicket/upload/include/class.schedule.php on line 837, referer: http://srvweb/osTicket/upload/scp/tickets.php?a=open&uid=25>
      [Thu Nov 23 08:23:31.935621 2023] [php:error] [pid 906] [client 192.168.72.243:65291] PHP Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 65536 bytes) in Unknown on line 0, referer: http://srvweb/osTicket/upload/scp/tickets.php?a=open&uid=25>
      [Thu Nov 23 08:47:48.294278 2023] [php:error] [pid 903] [client 192.168.72.243:49729] PHP Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 20480 bytes) in /var/www/html/osTicket/upload/include/class.schedule.php on line 837, referer: http://srvweb/osTicket/upload/scp/tickets.php?a=open&uid=25>
      [Thu Nov 23 08:47:48.294458 2023] [php:error] [pid 903] [client 192.168.72.243:49729] PHP Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 20480 bytes) in /var/www/html/osTicket/upload/include/class.ostsession.php on line 129, referer: http://srvweb/osTicket/upload/scp/tickets.php?a=open&uid=25>
      [Thu Nov 23 08:47:53.756643 2023] [core:notice] [pid 887] AH00051: child pid 903 exit signal Segmentation fault (11), possible coredump in /etc/apache2
      [Thu Nov 23 08:51:10.841215 2023] [php:error] [pid 1684] [client 192.168.72.243:49842] PHP Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 20480 bytes) in /var/www/html/osTicket/upload/include/class.schedule.php on line 837, referer: http://srvweb/osTicket/upload/scp/tickets.php?a=open&uid=25>
      [Thu Nov 23 08:51:10.841421 2023] [php:error] [pid 1684] [client 192.168.72.243:49842] PHP Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 20480 bytes) in /var/www/html/osTicket/upload/include/class.ostsession.php on line 129, referer: http://srvweb/osTicket/upload/scp/tickets.php?a=open&uid=25>
      [Thu Nov 23 08:51:11.939702 2023] [core:notice] [pid 887] AH00051: child pid 1684 exit signal Segmentation fault (11), possible coredump in /etc/apache2

        webdex

        Are you using a language pack? If so delete the US Holidays Schedule.

        Cheers.

        Hi, in the date and time options, I changed the default schedule to "none," and now everything seems to be working correctly. The strange thing is that I had never modified this parameter before, so it had been working with US Holidays Schedule until now. Thank you very much!

        Write a Reply...