Problems with setting up Connect add-on and Google Calendar

SupportProblems with setting up Connect add-on and Google Calendar
matthew_valentine Staff asked 6 years ago
Hi Nikola, I've been setting up EA and I'm really impressed with it so far. I seem to have run into issues with the Connect add-on though, specifically with Google Calendar, and was hoping you could assist. (I've looked over the forum and I haven't seen the same issue.) What happens is when the user clicks Submit on the form, no 'Done' indicator or re-direct page appears, it just sort of hangs. The dev console shows a 500 internal server error on jquery.js (with references to frontend-bootstrap.js). The appointment does get created however in the EA appointments list, but nothing is added on the Google calendar. A confirmation email does get sent, but the Confirm / Cancel links lead to error pages (fatal / uncaught ArgumentCountError). Since the plugin worked perfectly prior to installing the Connect add-on, I'm not sure where to look. I've checked the configuration on both EA and the Google developer console, and everything looks as it should (after following the setup video's instructions). If you could give me some help with this I'd appreciate it.
matthew_valentine Staff replied 6 years ago

One thing to add in case it’s useful, uninstalling the add-on makes EA start working perfectly again.

3 Answers
Nikola Loncar Staff answered 6 years ago
Hi, simple test is to check if you can set Advanced Calendars sync in Extension settings. Can you see your calendars there in dropdown? Best regards, Nikola
matthew_valentine Staff replied 6 years ago

Hi Nikola, thanks for getting back to me. Yes, I can see the calendars – primary and a second calendar I made to test.

matthew_valentine Staff replied 6 years ago

Also I just tested the second calendar using the Advanced Calendar Sync settings to see if it would change the behavior of the form, however the result is the same (upon clicking Submit, the button greys and the cursor changes to disabled, but no further response occurs after that).

matthew_valentine Staff replied 6 years ago

Thought I’d try Jonathan’s approach below to see if it produced a different result on my setup, same behavior unfortunately. Also in case it’s useful, I’m seeing this error in the Firefox console:
TypeError: response.responseJSON is null (frontend-bootstrap.js:848:17)

Nikola Loncar Staff replied 6 years ago

Hi Matthew do you have any errors inside error log on your site? If you want I can take a look on your site if you provide me with access rights?

Best regards,
Nikola

matthew_valentine Staff replied 6 years ago

Hi Nikola, I’ve checked the cPanel error log which isn’t reporting anything, and the sync log in the Connect settings looks like Jonathan’s – no errors, but nothing seems to be syncing either. I appreciate the offer for you taking a look, what manner of access rights do you need? And how should I send them to you?

Nikola Loncar Staff replied 6 years ago

Can you create a temp access for me. You can send it to nikolanbg[at]gmail[dot]com .

Best regards,
Nikola

matthew_valentine Staff replied 6 years ago

Thanks Nikola, I’ve sent you an email with the details.

Jonathan_Jewett Staff answered 6 years ago
I am having the same issue.  On submit, it just hangs.  I get the admin email, but customer is no longer getting the email.  The Google calendar sync is no longer working either.  I've been using this for over a year with no issues.  Last week or two, I've been having nothing but problems with it.  I tried uninstalling and reinstalling, as well as disabling other plugins, even though I haven't added any plugins for quite some time.  I can see the calendars from the drop down, but it isn't syncing.  Nothing at all is displaying in the log file either.  The log file says that 157 events were fetched from Google, but nothing is saved, so seemingly it is importing the same ones over and over again without saving them to the database.  Is not saving new appointments back to google either. Sync event within next 0
[2018-09-07 3:54:32.557990] [info] Fetched from Google Calendar 157 events
[2018-09-07 3:54:32.570365] [info] Synced events : 0
[2018-09-07 3:54:32.570395] [info] Syncing events for Calendar: primary
[2018-09-07 3:54:32.570421] [info] Sync event within next 0
[2018-09-07 3:54:32.841706] [info] Fetched from Google Calendar 101 events
[2018-09-07 3:54:32.849039] [info] Synced events : 0
[2018-09-07 3:54:32.849066] [info] Total sync events : 0
[2018-09-07 3:54:32.849148] [info] There are no new appointments needed to be send to Google Calendar
[2018-09-07 3:54:32.849164] [info] Sync Done
Jonathan_Jewett Staff answered 6 years ago
Apparently setting it to Any service or Any worker does not work any more.  Selecting a specific worker and service allows it to sync finally.
Nikola Loncar Staff replied 6 years ago

Yes, it’s always best to map those calendars in Advance sync options. If that is not the case then email address of event creator must match workers email address etc.

Best regards,
Nikola