Ubuntu 20
Maria 10.3
PHP 7.3
Apache
1.15.8

So I recently upgraded from 1.15.6 to .8 and have started getting reports that the date picker is having a weird glitch. I have confirmed this in Firefox and Chrome in both the SCP and user side. If you have a date selection field open, it doesn't appear how it used to. The background is translucent and the calendar is pushed down over where the selection window would be. I am at a loss as to what may have caused this since the only thing done was upgrade OS Ticket. I see no errors in the either of the log files.

Edit---If I run a debugger on the window, I get the following error

404
Not Found

css/ui-lightness/jquery-ui-1.10.3.custom.min.css?fe1d1f8

edit #2 --- So I found that version 1.15.8 the filename is jquery-ui-1.13.1.custom.min.css . In my previous version of OS Ticket, it is jquery-ui-1.10.3.custom.min.css. So something is telling it to still look for 1.10 instead of 1.13, but I am not sure where that would be controlled at. I also dont know if this is the issue or not.

  • So both the header.inc.php is where the Jquery settings are. I modified it so that it would have the name of our ticketing system instead of the standard osTicket and of course it also controls the version which is what broke when I went to version 1.15.8. So this was a self inflicted wound.

Ok, that is the issue. I copied back 1.10 and the date picker looks normal again in the SCP. So where do I go tell the system to look for the newer 1.13 version of the file instead of 1.10?

edit--- Well, I didnt debug the client side. its looking for version 1.12

Loading failed for the <script> with source “https://domain.com/js/jquery-ui-1.12.1.custom.min.js?fe1d1f8”.

jQuery.Deferred exception: $(...).datepicker is not a function @https://domain.com/open.php line 2 > injectedScript:3:51
e@https://domain.com/js/jquery-3.5.1.min.js?fe1d1f8:2:30005
Deferred/then/l/</t<@https://domain.com/js/jquery-3.5.1.min.js?fe1d1f8:2:30307

    Hi Kevin,

    adding those files to the images folder did not solve the issue. The client side Is still looking for jquery-ui-1.12.1 where the date picker field is. If I click on the date picker in the client portal, nothing happens. In the console window ( F12 window), I get the following errors. I added 1.10 back to the folder and that seemed to solve the issue on the SCP portal.

    jQuery.Deferred exception: $(...).datepicker is not a function @https://troubletickets.domain.com/open.php# line 2 > injectedScript:3:51

    Loading failed for the <script> with source “https://troubletickets.domain.com/js/jquery-ui-1.12.1.custom.min.js?fe1d1f8”.

    Uncaught TypeError: $(...).datepicker is not a function
    <anonymous> https://troubletickets.domain.com/open.php# line 2 > injectedScript:3

    edit--- I have restarted Apache and the server itself

      Daedalus01

      Sounds like the code files weren't fully replaced with the new code files. When I grep for jquery-ui-1.10.3 and jquery-ui-1.12.1 I do not see any results on v1.15.8 nor v1.16.3. They were all replaced with jquery-ui-1.13.1 on the code side.

      Cheers.

        I do have some modified files such as printing templates and the login.php. When I downloaded the new version, I got it right off the OS ticket site. I will download the files again and see if I get a different result, but this is the version

        Unfortunately, that did not work. I downloaded clean files and still get the same result. Can you tell me what files might have had references to older versions of the jquery ui to where I can check my modified files. Here is the list of files I modified. I'm starting to suspect it might have to do something with the client files since that seems to be the only side that is broken this time. The SCP side date picker is working fine.

        /upload/login.php
        /upload/scp/admin.inc.php
        /upload/scp/settings.php
        /upload/scp/staff.inc.php
        /upload/include/class.ticket.php
        /upload/include/client/footer.inc.php
        /upload/include/client/header.inc.php
        /upload/include/client/login.inc.php
        /upload/include/client/open.inc.php
        /upload/include/client/templates/ticket-print.tmpl.php
        /upload/include/staff/header.inc.php
        /upload/include/staff/login.header.php
        /upload/include/staff/login.tpl.php
        /upload/include/staff/templates/ticket-print.tmpl.php

        KevinTheJedi So it is something with some or all of those files I listed. So far, Im pretty sure its just the /client/header.inc.php. I see tons of references to jquery ui in that.

          KevinTheJedi

          I was trying to see if you could tell me which of the files that I modified would have the references to the JQuery verison information. I found it so far in the header.inc.php file. I forgot that I had a comparison plugin and set both files side by side to find the differences.

          So both the header.inc.php is where the Jquery settings are. I modified it so that it would have the name of our ticketing system instead of the standard osTicket and of course it also controls the version which is what broke when I went to version 1.15.8. So this was a self inflicted wound.

          Write a Reply...