I can’t create an event and set a Date on it. I tried reinstalling the plugin, wiping all the data and settings. After the reinstall, it worked ok for a few days. Then I created an event without a title (or setting a date). After I created it, I couldn’t change its date. I also couldn’t create new events and set dates on them. The JS error is below:
After working for a few days, I get to the point where I am not able to set/change a date either on a new or an existing event. I don’t know what causes it. The JS console shows this:
Uncaught TypeError: Cannot read properties of null (reading ‘getUTCDay’)
at HTMLBodyElement. (event-post.js?ver=4.6.7:643:26)
at HTMLBodyElement.dispatch (load-scripts.php?c=1&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,moxiejs,plupload&ver=6.6.1:2:40035)
Here is the full trace. It wouldn’t let me submit the ticket when I pasted it in within your bug creation flow…
load-scripts.php?c=1&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,moxiejs,plupload&ver=6.6.1:5 JQMIGRATE: Migrate is installed, version 3.4.1
event-post.js?ver=4.6.7:643 Uncaught TypeError: Cannot read properties of null (reading ‘getUTCDay’)
at HTMLBodyElement.<anonymous> (event-post.js?ver=4.6.7:643:26)
at HTMLBodyElement.dispatch (load-scripts.php?c=1&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,moxiejs,plupload&ver=6.6.1:2:40035)
at v.handle (load-scripts.php?c=1&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,moxiejs,plupload&ver=6.6.1:2:38006)
at Object.trigger (load-scripts.php?c=1&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,moxiejs,plupload&ver=6.6.1:2:70124)
at HTMLBodyElement.<anonymous> (load-scripts.php?c=1&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,moxiejs,plupload&ver=6.6.1:2:70726)
at Function.each (load-scripts.php?c=1&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,moxiejs,plupload&ver=6.6.1:2:3129)
at e.<computed>.each (load-scripts.php?c=1&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,moxiejs,plupload&ver=6.6.1:2:1594)
at e.<computed>.trigger (load-scripts.php?c=1&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,moxiejs,plupload&ver=6.6.1:2:70701)
at HTMLInputElement.onSelect (elements.js?ver=4.6.7:578:16)
at e._selectDate (datepicker.min.js?ver=1.13.3:9:18868)
see video below
We are glad your issue is resolved, if you have any further questions or concerns please create a new ticket.
If you have a moment, we would greatly appreciate if you could kindly leave us a review at Codecanyon. By going to your account > Downloads. We are very grateful for your kind review!
Thank you for your help. It is resolved. It’s weird because it did work fine for a while and I haven’t changed the time/date format in the meantime. Thanks again