Lightbox Section.id Error

I have a working Scheduler Calendar. I decided to move my files into a different directory structure. I updated all the paths to the codebase files. Now when I run my page everything loads correctly and my events appear on the calendar. However when I open a lightbox I get the following error.

var header = document.getElementById(section.id);
ERROR: Unable to get property ‘id’ of undefined or null reference

I have double check all file paths and confirmed that all files are loading without error. Can someone point me in the right direction as to why the section.id is not found.

Hi,

It’s not obvious when you use this method (when onLightbox event occurs?) and why ‘id’ is undefined this time.
It will be very helpful if you can create a demo where the issue can be reproduced using DHTMLX snippet system docs.dhtmlx.com/scheduler/snippet/27003f1a
or at least show your code.

The thing is my code works perfectly fine if I revert back to the original path where the codebase folder is in the root directory. Is there some reason codebase needs to be in root. If I move the codebase folder inside another folder and then repoint all my paths then I experience this problem. I have checked that all files are loading correctly using the new path so do not understand why I would get the Sectiion.id error. Unless there are some internal paths built in that require codebase in root.

Hi,

It is not required that codebase was in root. But seems after moving the folder you haven’t access to file with section array. Unfortunately I can’t suggest you anything special to solve the issue because don’t know how your structure is organized.