Admin Calendar Not Working on IIS 10

Forum dedicated to Mods for HESK created by Mike Koch

Moderator: mkoch227

Post Reply
hummela
Posts: 3
Joined: Fri Jun 04, 2021 6:05 pm

Admin Calendar Not Working on IIS 10

Post by hummela »

Mods for HESK version: 2020.1.1
HESK version: 2.8.6
Hosting company: self-hosted

Write your message below:

When setting up a brand new installation of HESK/Mods For Hesk, it seems that the Admin Calendar does not work when used with Windows IIS server.

When trying to load the Admin Calendar page, an error pops up saying "An error occurred when trying to load events". No console error happens, nor is there a log generated in the Mods for HESK message log when loading the page. You can click to create an event and it shows up, but upon reload, the event disappears. When clicking on the event (before reloading), the following is sent in the console:

Code: Select all

Uncaught TypeError: Cannot read property 'length' of undefined
    at displayEditModal (mods-for-hesk-calendar.js:516)
    at HTMLAnchorElement.eventClick (mods-for-hesk-calendar.js:83)
    at Ot.W [as trigger] (fullcalendar.min.js:6)
    at Et.e.constructor.trigger (fullcalendar.min.js:8)
    at Et.e.constructor.handleSegClick (fullcalendar.min.js:7)
    at HTMLAnchorElement.<anonymous> (fullcalendar.min.js:7)
    at HTMLDivElement.dispatch (jquery-2.2.4.min.js?v=53:3)
    at HTMLDivElement.r.handle (jquery-2.2.4.min.js?v=53:3)
displayEditModal @ mods-for-hesk-calendar.js:516
eventClick @ mods-for-hesk-calendar.js:83
W @ fullcalendar.min.js:6
trigger @ fullcalendar.min.js:8
handleSegClick @ fullcalendar.min.js:7
(anonymous) @ fullcalendar.min.js:7
dispatch @ jquery-2.2.4.min.js?v=53:3
r.handle @ jquery-2.2.4.min.js?v=53:3
The public calendar works just fine. All the events that cannot be shown in the Admin side show successfully. I have tried with both FireFox and Chrome and they both give the same error.

I stood up a new Linux box and installed a LAMP server on there, and the calendar works just fine. Unfortunately due to other requirements, the HESK server has to stay on the IIS box. Is there perhaps a permission error? Or is this some Windows incompatibility? IIS_IUSRS has full control over the HESK folder. The IIS box is running PHP 7.4.20 and the LAMP box is running PHP 7.4.3.
mkoch227
Posts: 666
Joined: Wed Jul 04, 2012 3:37 pm

Re: Admin Calendar Not Working on IIS 10

Post by mkoch227 »

If you get an error message, then either the API response or IIS logs would most likely have something to say what went wrong.

However, Mods for HESK support has permanently ended. Since this is a fresh install, I highly encourage you to install HESK 3 and use that instead, as we'll be adding features over there :)
Mike, Lead Developer of Image HESK: A surprisingly simple, user-friendly and FREE help desk software with integrated knowledgebase.
hummela
Posts: 3
Joined: Fri Jun 04, 2021 6:05 pm

Re: Admin Calendar Not Working on IIS 10

Post by hummela »

Unfortunately, unless I am looking in the complete wrong place, it is not throwing any errors in the API response or the IIS logs. Even turning on HESK debugging has given no clues as to what is wrong. Unfortunately, Javascript is one of my weaknesses as well.

I do know that Mods for HESK has been discontinued, but we were looking forward to using the calendar function. It seems there is no equivalent in HESK 3. Was hoping that there might have been a known issue that someone has seen before since everything else seems to work just fine.
hummela
Posts: 3
Joined: Fri Jun 04, 2021 6:05 pm

Re: Admin Calendar Not Working on IIS 10

Post by hummela »

Just wanted to say I figured it out, and it is not an IIS error after all.

Apparently the Admin Calendar requires the date format to be Y-m-d H:i:s instead of what we customized it as m/d/Y h:iA. It appears that changing the Y-m-d breaks something, as no matter what format I put it into, the admin calendar refuses to load events. Can change the time settings all we want though!
Post Reply