Cron sync problem with google calendar

SupportCron sync problem with google calendar
bashibosh Staff asked 6 years ago
Hi, I've set up EA for access to google calendar and if I add an appointment in EA, it appears in google calendar. However, if I add or modify something in google calendar, it does not sync with EA. One thing I notice is that when running the cron job, it doesn't display any message to say the job has completed, which I would usually expect. I've followed the instructions in https://easy-appointments.com/documentation/connect-system-scheduler-cron/
and on the WP guide for testing, but hitting a brick wall. Any ideas please? Thanks John  
1 Answers
Nikola Loncar Staff answered 6 years ago
Hi John, looks like some settings are missing. Those changes must be imported to EA after sync. Do you have any message at top of the Extension settings page like Cron is not running or similar?
Best regards, Nikola
bashibosh Staff replied 6 years ago

Hi Nikola,
There is a message:
“Your Cron background tasks are not running properly! Last cron run was on 10th September 2018 11:00 am and it should run on every 5 minutes!
Please follow official WordPress guide on Hooking WP-Cron Into the System Task Scheduler.”

I’ve added “define(‘DISABLE_WP_CRON’, true);” to wp-config.php, set up a cron job on my hosts control panel and followed the instructions for simple testing, which seemed to work.

Regards
John

bashibosh Staff replied 6 years ago

Hi Nikola,
I meant to add that during the cron test as recommended by WP (add the line “echo ”; print_r( _get_cron_array() ); echo ”;”), I get the result of the cron test at the top of the Connect page.

Regards
John

Nikola Loncar Staff replied 6 years ago

Hi John, looks like some settings are not correct. Some hosting even block Cron execution in case it is to often. Try setting cron on 15 minutes interval and set same value for EA Extension sync.

Best regards,
Nikola

bashibosh Staff replied 6 years ago

Hi Nikola,
I’ve tried that, but no change.