Cannot read property 'getUTCFullYear' of null, pages with calendars are not loading

Wappler Version : 3.5.2
Operating System : Windows 10
Setup: PHP, Docker Local

Expected behavior

What do you think should happen?

My application that contains calendars on it should load correctly instead of a showing a blank page.

Actual behavior

What actually happens?

When trying to load a page with a calendar on it I get the following console error:

main.min.js:formatted:3138 Uncaught TypeError: Cannot read property 'getUTCFullYear' of null
    at e.getMarkerYear (main.min.js:formatted:3138)
    at e.startOfWeek (main.min.js:formatted:3342)
    at e.startOf (main.min.js:formatted:3324)
    at d (main.min.js:formatted:3643)
    at e.buildRangeFromDuration (main.min.js:formatted:3653)
    at e.buildCurrentRangeInfo (main.min.js:formatted:3610)
    at e.build (main.min.js:formatted:3576)
    at main.min.js:formatted:3759
    at er (main.min.js:formatted:3765)
    at e.reduce (main.min.js:formatted:4666)

The page does not load and is just blank.

How to reproduce

Starting with a blank page, create a title and add a calendar to the page:

Load the page in Google Chrome and you see this:

Remove the calendar from the page:

My application was working in the prior version so I’m fairly confident this has to do with the new version.

Is there a way to roll back to the prior version until this is fixed?

Looks like the latest App Connect build was not bundled with the Wappler update. Here the correct file:

dmxAppConnect.zip (22.2 KB)

@patrick, thank you for your help.

I renamed the original dmxAppConnect.js and replaced it with the version above.

Redeployed. Emptied cache with a hard reload and am getting the same error.

Do you have a link where I can check it?

Unfortunately, the app is currently local.

I can share the GitHub repo with you if that’s helpful.

I got exactly the same error in my testing and it should be solved with the updated file.

Weird. I replaced the file as you said to. Do I need to restart Wappler or Docker Desktop? Maybe reinstall Wappler?

Wappler has the wrong file, so reinstalling Wappler won’t help. Replace the file in the dmxAppConnect folder of your project.

That’s what I’m doing.

Here is the file in the folder:

File deleted:

File extracted from Download folder into \dmxAppConnect:

Page doesn’t load. Am I missing something?

When I open the file in Wappler, I see the file version is 1.9.20 @build 2020-11-11 18:43:12

Not sure if this is helpful, but when I hover over the error, it’s pointing to the fullcalendar plugin:

I have exactly the same issue with the new release (Mac OS Catalina). Replacing dmxAppConnect.js doesn’t help.

Fixed in Wappler 3.5.3

Thank you @patrick and @Teodor.

Unfortunately, after updating, it looks like I’m getting the same error.

Thanks. Works for me now.

@stormvision, can you confirm all you did was just update the application and it worked? Did you do anything else?

Hi @nepatriot,
I had to do the following steps:

  1. Delete my modified (the old) dmxCalendar.js
  2. Save my index.html to let Wappler automatically create the new dmxCalendar.js
  3. Reload Design View of my index.html

Then the calendar worked again.
After I replaced the new dmxCalendar.js with my old (modified) one it worked also fine again.