Appointements deleted from Google Calendar are not being deleted in the plugin

SupportAppointements deleted from Google Calendar are not being deleted in the plugin
giovanni_truppa_cineseries Staff asked 6 years ago
Hi, I just purchased the Google Calendar extension for your plugin and I found it really amazing, everything works as I want it to except one thing: when I delete an appointment in Google Calendar, it's not being correctly deleted in easy appointments. Everything else syncs perfectly, it's just deleting from GC that won't work, can you help me with this? Thanks a lot, Giovanni
7 Answers
Nikola Loncar Staff answered 6 years ago
Hi Giovanni, have you mapped that Google Calendar to Worker inside EA Extension settings (advance sync options). Also you must select default location and service. Best regards, Nikola
giovanni_truppa_cineseries Staff replied 6 years ago

Hi Nikola,

thank you for your prompt answer, unfortunately all calendars are correctly mapped, and default location/service is set, in fact all appointments have been synced correctly from GC to Easy Appointments, and assigned to the right worker. Only deleting from GC won’t delete the appointment in Easy Appointments, that’s my only issue, creating appointments works just fine both ways,

Thank you for your help,
Alessio

Nikola Loncar Staff answered 6 years ago
Hi Alessio, by default appointments that are deleted inside Google Calendar are canceled inside EA. Can you please check if that is not the case here. You can change it to deleting instead of canceling it. Best regards, Nikola
will_eggers Staff replied 6 years ago

Hi Nikola,

I’m really stuck and cannot seem to get this working smoothly. I too am having the problem described here. Summary of issues:

If I setup with only primary calendar then I get:
– Creation of an appointment successfully sync’s and appears on Google Calendar.
– Nothing else then works, if I delete or cancel from either direction it does not Sync through.
– Reinstall did not fix
– Setting up with a different google profile did not fix
– I have all defaults set for the location and service
– I have tried both EA to cancel and EA to delete options.

If I setup advanced sync options with either the primary calendar or a secondary calendar then I end up with all the same issues above, but also with duplication of events each time with a new ID. These events duplicate only in EA and not in Google, and continue to duplicate until I delete the event from Google.

Any help would be great. I’m no expert but it seems like when it’s sync’n or comparing event ID’s it’s not able to tell what matches ?

– Will

Nikola Loncar Staff replied 6 years ago

Hi Will if you want I can take a look at the settings. Just create a temp access for me nikolanbg[at]gmail[dot]com

Best regards,
Nikola

will_eggers Staff replied 6 years ago

Thanks Nikola, that would be great. I’ve just setup the account for you.

giovanni_truppa_cineseries Staff replied 6 years ago

Hi Nikola,

I also tried both cancelling and deleting options, appointments are still not being deleted. Also, I see that if I go to the appointments menu I see a lot (like hundreds) of non-existing appointments listed. This doesn’t seem to affect the frontend timetable but it’s really strange.. I’m emailing you a temporary account details too..

giovanni_truppa_cineseries Staff replied 6 years ago

Please be careful because it is a live site,

Thank you for your help,
Alessio

will_eggers Staff replied 6 years ago

Hi Nikola, Just wondering if you received the email with account details?

Nikola Loncar Staff replied 6 years ago

Hi Will, yes I am. I will take a look during the day and let you know of the result. Sorry for waiting 🙁

Best regards,
Nikola

Nikola Loncar Staff answered 6 years ago
Hi Giovanni, looks like you should connect your WP site Cron with System Scheduler on your hosting. Do you have CPanel? You have tutorial how to do that here: https://easy-appointments.com/documentation/connect-system-scheduler-cron/ Best regards, Nikola
will_eggers Staff replied 6 years ago

Hi Nikola,

Do you think I could be having the same issue? I have been testing by visiting and setting new appointments and also using powershell to activate the wordpress cron. ?

Is there something specific that the system scheduler cron does differently or is my problem not related to this?

– Will

giovanni_truppa_cineseries Staff replied 6 years ago

Hi Nikola

I set up a cron job and disabled wp-cron, but nothing changed.

I had a look at the log, every event synced has a NULL id, is this correct?

Also, if I open the “appointments” tab, the browser almost freezes, than after 10 seconds or so it loads thousand of non-existing appointments. Luckily the do not show up in the frontend and seem to have no side effect, but something is weird.

will_eggers Staff answered 6 years ago
Hi Nikola, Did you manage to have a look and any idea what i'm doing wrong? I really want to get this up and running and really can't see where I've gone wrong in the settings.
will_eggers Staff replied 6 years ago

Not sure if this makes any difference, but I noticed a spelling mistake inside Main.php.
$wpdb->query(“ALTER TABLE {$table_prefix}ea_connect_links ADD INDEX `googe_event_id` (`google_event_id` ASC)”);

“googe” event id ?

will_eggers Staff answered 6 years ago
Hi Nikola, I\'ve done some more digging around and found a couple of things: The ea_connect_links table was not created during install so I\'ve manually created one ( not sure if I\'ve done it right but now I\'m actually able to fetch the google event id which seems like progress.  I found this error in the google.cron code:   $app_id = $helper->get_appintment_id($event->getId()); - Not sure if the missing o in appointment is required ?
Nikola Loncar Staff answered 6 years ago
Hi Will new version is released. Please update :) Best regards, Nikola
giovanni_truppa_cineseries Staff replied 6 years ago

Hi Nikola,

I updated the plugin, but nothing changed, I even tried deactivating/reactivating the plugin, but still deleting an appointment in GC won’t deleted/cancel the appointement in EA

Nikola Loncar Staff replied 6 years ago

Hi Giovanni, I will need to take a look again into admin part. Can you please give me access to it?

Best regards,
Nikola

giovanni_truppa_cineseries Staff replied 6 years ago

Hi Nikola,

the admin account I created for you is still active, you can use the same credentials,

thank you for your help,
Giovanni

giovanni_truppa_cineseries Staff answered 6 years ago
Hi Nikola, any news on this issue? Thank you for your help, Giovanni