We recently upgraded to 1.12.5 and have noticed the Date Picker doesn't pop up on any Help Topics that have a form field of type Date and Time.

osTicket Version: v1.12.5 (933bb1f) Up to date
Web Server Software: Microsoft-IIS/8.5
MySQL Version: 5.7.17
PHP Version: 7.3.9

On the agent login and creating new/viewing, the 'Due date' field works, but anything else (non default) doesn't (no little calendar icon).

On user front end, if any Help Topic that contains Date and Time field, no pop up and the form does not submit and gives a Cannot handle this request error.

PHP error message:
PHP Fatal error: Uncaught Error: Call to a member function setTimezone() on null in C:\inetpub\wwwroot\include\class.forms.php:4512
Stack trace:
#0 C:\inetpub\wwwroot\include\class.forms.php(3863): DatetimePickerWidget->getValue()
#1 C:\inetpub\wwwroot\include\class.forms.php(1310): Widget->parseValue()
#2 C:\inetpub\wwwroot\include\class.forms.php(636): FormField->getWidget()
#3 C:\inetpub\wwwroot\include\class.forms.php(909): FormField->getClean()
#4 C:\inetpub\wwwroot\include\class.dynamic_forms.php(1137): FormField->getFilterData()
#5 C:\inetpub\wwwroot\include\class.ticket.php(3463): DynamicFormEntry->getFilterData()
#6 C:\inetpub\wwwroot\include\class.ticket.php(3648): Ticket::filterTicketData('Web', Array, Array, NULL)
#7 C:\inetpub\wwwroot\open.php(42): Ticket::create(Array, Array, 'Web')
#8 {main}
thrown in C:\inetpub\wwwroot\include\class.forms.php on line 4512

Also get a javascript error on the page with date fields (even on the agent scp/tickets.php screen):
Uncaught TypeError: $.translate_format is not a function
at HTMLDocument.<anonymous> (<anonymous>:8:35)
at e (jquery-3.4.0.min.js?a5d898b:2)
at t (jquery-3.4.0.min.js?a5d898b:2)

Any ideas what this could be?

Honestly I would recommend that you upgrade to the latest stable (1.14.1), clear your browser cache, and retest. The version that you are running.

Write a Reply...