• Resolved wykananda

    (@wykananda)


    Calendars are not rendering for me in version 20240103 – just an empty placeholder. The data-config html attribute appears to be being assigned “null” and causing the function listed below to fail. This happens even if I replace my custom config with the default in the Gutenberg block.

    Here’s one of the pages where the failure is occurring -> Calendar

    Here’s the HTML that’s being generated for the calendar:
    <div data-calendarids="[&quot;mywebsite.com_f7tv84tnvqojte8vnv778gc9qo@group.calendar.google.com&quot;]" data-filter="" data-eventpopup="true" data-eventlink="true" data-eventdescription="true" data-eventlocation="true" data-eventattachments="true" data-eventattendees="false" data-eventcreator="false" data-eventcalendarname="false" data-hidefuture="false" data-hidepassed="false" data-config="null" data-locale="en_US" data-theme="pgc-light" class="pgc-calendar"></div>

    Here’s the error appearing in the browser console – Function castObjectAttributes(obj) is being fed a null config:

    main.js:73 Uncaught TypeError: Cannot convert undefined or null to object
    at Function.keys ()
    at i (main.js:73:16)
    at main.js:166:9
    at NodeList.forEach ()
    at HTMLDocument. (main.js:103:29)

    Please let me know if I can provide you with any other info to help fix it.

    Kind regards,
    Wyk

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • Plugin Author michielve

    (@michielve)

    Hi, yes I see this as well. This should now be fixed in version 20240104. But unfortunately you will have to save the pages with calendars before this fix will work.

Viewing 1 replies (of 1 total)
  • The topic ‘Calendars not rendering / javascript error in version 20240103’ is closed to new replies.