Google Calendar Syncing

SupportGoogle Calendar Syncing
harald_struwe Staff asked 7 years ago
I have a multisite installation on my website. Easy calendar is network installed, but set up for each subsite. The EA internal calendar works fine, also WooCommerce integration seems to work OK. However, the calendar syncronisation with Google calendar does not work. I managed to set up the token (even though it did only work by me modifying the request string, as it dropped the client name). But nevertheless, the syncronisation does not work. Appointments are not transferred at all, in neither direction. Any solution to the problem would be appreciated.
10 Answers
Nikola Loncar Staff answered 7 years ago
Hi, have you added the mapping in Advanced Calendars sync section? Best regards, Nikola
harald_struwe Staff replied 7 years ago

Hi Nicola,
There seems to be a problem with the token – as I said earlier, I thought I had found a way around, but probably, it did not implement the pairing correctly.

Anyway, when I hit “Add Calendar” in the Advanced Calendars sync section it first shows “Loading Google calendar …” followed by “Please check your token!”. If I then go to “Remove token” it says deleted and when I follow up by “Authorize” it opens up an empty browser window and nothing happens.
Thanks for your help.
Best regards,
Harald

harald_struwe Staff answered 7 years ago
Hi Nicola,
There seems to be a problem with the token – as I said earlier, I thought I had found a way around, but probably, it did not implement the pairing correctly. Anyway, when I hit “Add Calendar” in the Advanced Calendars sync section it first shows “Loading Google calendar …” followed by “Please check your token!”. If I then go to “Remove token” it says deleted and when I follow up by “Authorize” it opens up an empty browser window and nothing happens.
Thanks for your help.
Best regards,
Harald
marco_tesch Staff replied 7 years ago

same issue on my site.
I use a Mac and Safari asks everytime if the password should be saved now or later.
If i click on later, the Googlekeys will be overwritten with passwords of my website.
maybe this is the problem?

marco_tesch Staff answered 7 years ago
Hi Nikola, on my site, the token is also permanently lost.   I found the following error in the log:   Start your code here AH01071: Got error \'PHP message: PHP Fatal error: Uncaught Google_Auth_Exception: Error refreshing the OAuth2 token, message: \'{\\n \"error\" : \"invalid_request\",\\n \"error_description\" : \"Missing required parameter: refresh_token\"\\n}\' in /var/www/vhosts/mydomain/new/wp-content/plugins/easy-appointments-connect/vendor/google/apiclient/src/Google/Auth/OAuth2.php:364\\nStack trace:\\n#0 /var/www/vhosts/mydomain/new/wp-content/plugins/easy-appointments-connect/vendor/google/apiclient/src/Google/Auth/OAuth2.php(277): Google_Auth_OAuth2->refreshTokenRequest(Array)\\n#1 /var/www/vhosts/mydomain/new/wp-content/plugins/easy-appointments-connect/vendor/google/apiclient/src/Google/Client.php(457): Google_Auth_OAuth2->refreshToken(NULL)\\n#2 /var/www/vhosts/mydomain/new/wp-content/plugins/easy-appointments-connect/src/google_event_helper.php(38): Google_Client->refreshToken(NULL)\\n#3 /var/www/vhosts/mydomain/new/wp-content/plugins/easy-appointments-connect/src/google_logic.php(435): EAC_Google_Event_Helper->get_google_...\\n\', referer: https://mydomain/wp-admin/admin.php?page=easy_app_connectand Start your code here Got error \'PHP message: \\nPHP message: \\n\', referer: https://dachbox4you.de/wp-admin/admin.php?page=easy_app_top_level the update from the connector is already installed ( 0.9.2 )
marco_tesch Staff answered 7 years ago
Hi Nikola, on my site, the token is also permanently lost. I found the following error in the log: AH01071: Got error \’PHP message: PHP Fatal error: Uncaught Google_Auth_Exception: Error refreshing the OAuth2 token, message: \'{\\n \”error\” : \”invalid_request\”,\\n \”error_description\” : \”Missing required parameter: refresh_token\”\\n}\’ in /var/www/vhosts/mydomain/new/wp-content/plugins/easy-appointments-connect/vendor/google/apiclient/src/Google/Auth/OAuth2.php:364\\nStack trace:\\n#0 /var/www/vhosts/mydomain/new/wp-content/plugins/easy-appointments-connect/vendor/google/apiclient/src/Google/Auth/OAuth2.php(277): Google_Auth_OAuth2->refreshTokenRequest(Array)\\n#1 /var/www/vhosts/mydomain/new/wp-content/plugins/easy-appointments-connect/vendor/google/apiclient/src/Google/Client.php(457): Google_Auth_OAuth2->refreshToken(NULL)\\n#2 /var/www/vhosts/mydomain/new/wp-content/plugins/easy-appointments-connect/src/google_event_helper.php(38): Google_Client->refreshToken(NULL)\\n#3 /var/www/vhosts/mydomain/new/wp-content/plugins/easy-appointments-connect/src/google_logic.php(435): EAC_Google_Event_Helper->get_google_…\\n\’, referer: https://mydomain/wp-admin/admin.php?page=easy_app_connect and Got error \’PHP message: \\nPHP message: \\n\’, referer: https://dachbox4you.de/wp-admin/admin.php?page=easy_app_top_level the update from the connector is already installed ( 0.9.2 )
marco_tesch Staff answered 7 years ago
Hi Nikola, any update on this? I have to delete and re-authorize the token several times a day.   thank you
Nikola Loncar Staff replied 7 years ago

I know what it the issue in your case. Please remove token and re-authorize again but do that couple of times until you see Dialog with Message are that you allowing App you access your Calendar. You have token but you are missing refresh token there. This will fix that issue 🙂

Best regards,
Nikola

tsv Staff answered 7 years ago
Bonjour, J'ai bien suivit les paramètres mais j'ai une erreur 500 "Cette page ne fonctionne pas Impossible de traiter cette demande via monsite.com à l'heure actuelle.
HTTP ERROR 500" Comment résoudre le problème ? Merci par avance
Nikola Loncar Staff answered 7 years ago
Hi tsv, can you please tell me where do you have 500 ERROR? While trying to authorize Google Account? Best regards, Nikola
Nikola Loncar Staff answered 7 years ago
@Marco @Harald you should see this dialog when you authorize app. If you don't see it instead it closed right away please remove token and try again. Do that until you see similar dialog like this: Dialog in this example App is called EasyAppointments - Connect but in your case it will be the name of your's created App. Main thing is part that requests access to Google Calendar data. Best regards, Nikola
marco_tesch Staff replied 7 years ago

Hi Nikola,

Thanks for reply. I have authorized it again, including this dialogue, will see within the next days and came back with feedback.

Marco

Nikola Loncar Staff replied 7 years ago

You’re welcome. It should be fine now. Reason is when you don’t see that dialog you will get token without refresh part so it will only last for two hours. If you have refresh part then it can be used without time limitation. 🙂

Best regards,
Nikola

tsv Staff answered 7 years ago
Thank you for your answers Yes it is by the authorization that I have this error 500, I know what I should have because I already authorized other system on my Google account
Nikola Loncar Staff replied 7 years ago

Maybe you are missing CURL extension for PHP. Can you please check error log file on your hosting?

Best regards,
Nikola

tsv Staff replied 7 years ago

I have already used this function for a backup plugin, and I have not encountered this problem, so I do not think it comes from the CURL extension

Nikola Loncar Staff replied 7 years ago

Can you please check if there anything in error log file regarding that?

Best regards,
Nikola

tsv Staff replied 7 years ago

I do not have anything in the log

tsv Staff answered 7 years ago
Still no solution ? I would like the problem to be fixed, because it annoys me a lot to buy a plugin that does not work. So either it's resolved or it's a refund. Thank you
Nikola Loncar Staff replied 7 years ago

Hi, can you please create a temp access account so I can check what is going on there in admin panel. You can send it to nikolanbg[at]gmail[dot]com

Best regards,
Nikola