Have you updated to the most recent version? Google withdrew support for V2 of the Calendar API on 17 November and the widget was updated.
https://ww.wp.xz.cn/support/topic/google-calendar-widget-no-longer-works?replies=7
Thread Starter
rmd624
(@rmd624)
I have updated the widget with the recent version and i’m still having trouble. I noticed the update to the widget was posted tonight and I still can’t get it to work with all new updates included.
Plugin Author
Poco
(@poco)
Unfortunately, it won’t work in some browsers by default if you open a local HTML page. It requires CORS support (so that it can download files from a different domain) and browsers like chrome block cross domain access from a local HTML file by default. Search for “allow cors support from local file on <your browser here>” to find out how to enable it.
Of that doesn’t work then post it to a server. If that doesn’t work then post the link here so that I can look at it.
Thread Starter
rmd624
(@rmd624)
Thanks for getting back to me. I appreciate it. I have posted to a server. I uploaded all the files as included in the google-calendar-widget.zip file. It can be found at http://revwildcatbaseball.com/calendar-widget/examples/stand_alone.html.
I’ve double checked the API key and so forth to make sure it’s correct. I noticed my API key expires after 24 hours, does that sound right?
The widget will be used on the index page for that domain in the end and I have tried the code there as well with no luck either. I wanted to try the widget separately first so there couldn’t be any outside variables affecting functionality. I’m not a pro coder by any means but i’m usually able to get the job done or know where to troubleshoot and get help. Anything you can do to help is greatly appreciated.
Plugin Author
Poco
(@poco)
Found it. The issue is the parameters your page is passing in.
There are 3 calendar parameters before the title format.
This is your current call.
ko_calendar.loadCalendarDefered(
'AIzaSyBprTmQrdRTyRq6wMleKhEieKHtegtG0Ks',
'ko_calendar-widget_title',
'ko_calendar-widget_events',
5,
false,
'[email protected]',
'[STARTTIME - ][TITLE]'
);
It should be this…
ko_calendar.loadCalendarDefered(
'AIzaSyBprTmQrdRTyRq6wMleKhEieKHtegtG0Ks',
'ko_calendar-widget_title',
'ko_calendar-widget_events',
5,
false,
'[email protected]',
'',
'',
'[STARTTIME - ][TITLE]'
);
Thread Starter
rmd624
(@rmd624)
Thank you so much!!! The widget is working just fine now. I can’t believe I missed those two calendar parameters.