Sorry – Another CRON / Google sync to EA Query
Hi Nikola,
My apologies – I already have wp-config.php and wp-cron.php files. However, I do not have a cPanel to access.
My question is how can I access/add new Cron events without cPanel access (Can I access somewhere in myPHP or FTP files)?
For now, I have added WP Control plugin by John Blackbourn & crontributors…. This now gives me visibility of existing cron events like this:
Hook Name Arguments Actions Next Run Recurrence
easyapp_hourly_event None EasyAppointment->delete_reservations() 2019-11-29 21:43:39 (now) Once Hourly
eac_google_sync None EAC_Google_Logic->google_sync() 2019-12-14 20:32:56 (now) Every 5 minutes
It’s the eac_google_sync which is supposed to work but doesn’t work properly. When I click run manually, it fires successfully, but still doesn’t pull events successfully back from the Google calendar into the calendar shown on my website booking form.
My next step is to speak with my host to see if they are restricting anything on their side
Observation…
When editing the event, it states:
Timezone: Europe/London (UTC+0)
The stated time doesn’t seem to match the actual time and I am wondering whether this could cause a discrepancy….
I’ve also found the WP dox here:
SUMMARY:
https://developer.wordpress.org/plugins/cron/
There are sub-sections for scheduling and hooking too, which I’ll ready through.
Let’s try that again…
[2019-12-14 22:16:25.946747] [info] Sync started
[2019-12-14 22:16:25.946892] [debug] Calendars for sync
primary: array(
‘location’ => ‘*’,
‘service’ => ‘*’,
‘worker’ => ‘*’,
)
[2019-12-14 22:16:25.947084] [info] Syncing events for Calendar: primary
[2019-12-14 22:16:25.947129] [info] Sync event within next 0
[2019-12-14 22:16:26.388019] [info] Fetched from Google Calendar 15 events
[2019-12-14 22:16:26.423563] [info] Synced events : 0
[2019-12-14 22:16:26.423636] [info] Total sync events : 0
[2019-12-14 22:16:26.432293] [info] Found 4 events in EA but on on GCal
[2019-12-14 22:16:27.895209] [info] Sync Done
PROGRES…
It appears to be reading events in the calendar now, but not writing them to the database to block out appointment booking slots:
[2019-12-14 22:16:25.946747] [info] Sync started
[2019-12-14 22:16:25.946892] [debug] Calendars for sync
primary: array(
‘location’ => ‘*’,
‘service’ => ‘*’,
‘worker’ => ‘*’,
)
[2019-12-14 22:16:25.947084] [info] Syncing events for Calendar: primary
[2019-12-14 22:16:25.947129] [info] Sync event within next 0
[2019-12-14 22:16:26.388019] [info] Fetched from Google Calendar 15 events
[2019-12-14 22:16:26.423563] [info] Synced events : 0
[2019-12-14 22:16:26.423636] [info] Total sync events : 0
[2019-12-14 22:16:26.432293] [info] Found 4 events in EA but on on GCal
[2019-12-14 22:16:27.895209] [info] Sync Done
[2019-12-14 22:21:19.841214] [info] Sync started
[2019-12-14 22:21:19.841351] [debug] Calendars for sync
primary: array(
‘location’ => ‘*’,
‘service’ => ‘*’,
‘worker’ => ‘*’,
)
[2019-12-14 22:21:19.841559] [info] Syncing events for Calendar: primary
[2019-12-14 22:21:19.841608] [info] Sync event within next 0
[2019-12-14 22:21:20.323618] [info] Fetched from Google Calendar 19 events
[2019-12-14 22:21:20.371920] [info] Synced events : 0
[2019-12-14 22:21:20.371994] [info] Total sync events : 0
[2019-12-14 22:21:20.388605] [info] There are no new appointments needed to be send to Google Calendar
[2019-12-14 22:21:20.388679] [info] Sync Done
Events are still not coming back from Google to EA:
[2019-12-14 22:16:25.946747] [info] Sync started
[2019-12-14 22:16:25.946892] [debug] Calendars for sync
primary: array(
‘location’ => ‘*’,
‘service’ => ‘*’,
‘worker’ => ‘*’,
)
[2019-12-14 22:16:25.947084] [info] Syncing events for Calendar: primary
[2019-12-14 22:16:25.947129] [info] Sync event within next 0
[2019-12-14 22:16:26.388019] [info] Fetched from Google Calendar 15 events
[2019-12-14 22:16:26.423563] [info] Synced events : 0
[2019-12-14 22:16:26.423636] [info] Total sync events : 0
[2019-12-14 22:16:26.432293] [info] Found 4 events in EA but on on GCal
[2019-12-14 22:16:27.895209] [info] Sync Done
[2019-12-14 22:21:19.841214] [info] Sync started
[2019-12-14 22:21:19.841351] [debug] Calendars for sync
primary: array(
‘location’ => ‘*’,
‘service’ => ‘*’,
‘worker’ => ‘*’,
)
[2019-12-14 22:21:19.841559] [info] Syncing events for Calendar: primary
[2019-12-14 22:21:19.841608] [info] Sync event within next 0
[2019-12-14 22:21:20.323618] [info] Fetched from Google Calendar 19 events
[2019-12-14 22:21:20.371920] [info] Synced events : 0
[2019-12-14 22:21:20.371994] [info] Total sync events : 0
[2019-12-14 22:21:20.388605] [info] There are no new appointments needed to be send to Google Calendar
[2019-12-14 22:21:20.388679] [info] Sync Done
[2019-12-14 22:26:06.681361] [info] Sync started
[2019-12-14 22:26:06.690470] [debug] Calendars for sync
primary: array(
‘location’ => ‘*’,
‘service’ => ‘*’,
‘worker’ => ‘*’,
)
[2019-12-14 22:26:06.690784] [info] Syncing events for Calendar: primary
[2019-12-14 22:26:06.690888] [info] Sync event within next 0
[2019-12-14 22:26:07.068228] [info] Fetched from Google Calendar 19 events
[2019-12-14 22:26:07.134001] [info] Synced events : 0
[2019-12-14 22:26:07.134087] [info] Total sync events : 0
[2019-12-14 22:26:07.151213] [info] There are no new appointments needed to be send to Google Calendar
[2019-12-14 22:26:07.151298] [info] Sync Done
[2019-12-14 22:31:39.425456] [info] Sync started
[2019-12-14 22:31:39.425580] [debug] Calendars for sync
primary: array(
‘location’ => ‘*’,
‘service’ => ‘*’,
‘worker’ => ‘*’,
)
[2019-12-14 22:31:39.425754] [info] Syncing events for Calendar: primary
[2019-12-14 22:31:39.425805] [info] Sync event within next 0
[2019-12-14 22:31:39.782552] [info] Fetched from Google Calendar 19 events
[2019-12-14 22:31:39.883579] [info] Synced events : 0
[2019-12-14 22:31:39.883660] [info] Total sync events : 0
[2019-12-14 22:31:39.897018] [info] There are no new appointments needed to be send to Google Calendar
[2019-12-14 22:31:39.897109] [info] Sync Done
—-
Next step – I’ve seen a comment here about adding in a specific row in “advanced”. Previously, I’ve had nothing set as I thought this was a catch-all. but comments here indicate different:
https://easy-appointments.com/support/problems-with-2-way-sync-w-google-calendar/
Sadly, this didn’t work so I’ve deleted the specified calendar again under “advanced”. I’ll continue to check a few items, but any suggestions would be a huge help
—
[2019-12-14 22:16:25.946747] [info] Sync started
[2019-12-14 22:16:25.946892] [debug] Calendars for sync
primary: array(
‘location’ => ‘*’,
‘service’ => ‘*’,
‘worker’ => ‘*’,
)
[2019-12-14 22:16:25.947084] [info] Syncing events for Calendar: primary
[2019-12-14 22:16:25.947129] [info] Sync event within next 0
[2019-12-14 22:16:26.388019] [info] Fetched from Google Calendar 15 events
[2019-12-14 22:16:26.423563] [info] Synced events : 0
[2019-12-14 22:16:26.423636] [info] Total sync events : 0
[2019-12-14 22:16:26.432293] [info] Found 4 events in EA but on on GCal
[2019-12-14 22:16:27.895209] [info] Sync Done
[2019-12-14 22:21:19.841214] [info] Sync started
[2019-12-14 22:21:19.841351] [debug] Calendars for sync
primary: array(
‘location’ => ‘*’,
‘service’ => ‘*’,
‘worker’ => ‘*’,
)
[2019-12-14 22:21:19.841559] [info] Syncing events for Calendar: primary
[2019-12-14 22:21:19.841608] [info] Sync event within next 0
[2019-12-14 22:21:20.323618] [info] Fetched from Google Calendar 19 events
[2019-12-14 22:21:20.371920] [info] Synced events : 0
[2019-12-14 22:21:20.371994] [info] Total sync events : 0
[2019-12-14 22:21:20.388605] [info] There are no new appointments needed to be send to Google Calendar
[2019-12-14 22:21:20.388679] [info] Sync Done
[2019-12-14 22:26:06.681361] [info] Sync started
[2019-12-14 22:26:06.690470] [debug] Calendars for sync
primary: array(
‘location’ => ‘*’,
‘service’ => ‘*’,
‘worker’ => ‘*’,
)
[2019-12-14 22:26:06.690784] [info] Syncing events for Calendar: primary
[2019-12-14 22:26:06.690888] [info] Sync event within next 0
[2019-12-14 22:26:07.068228] [info] Fetched from Google Calendar 19 events
[2019-12-14 22:26:07.134001] [info] Synced events : 0
[2019-12-14 22:26:07.134087] [info] Total sync events : 0
[2019-12-14 22:26:07.151213] [info] There are no new appointments needed to be send to Google Calendar
[2019-12-14 22:26:07.151298] [info] Sync Done
[2019-12-14 22:31:39.425456] [info] Sync started
[2019-12-14 22:31:39.425580] [debug] Calendars for sync
primary: array(
‘location’ => ‘*’,
‘service’ => ‘*’,
‘worker’ => ‘*’,
)
[2019-12-14 22:31:39.425754] [info] Syncing events for Calendar: primary
[2019-12-14 22:31:39.425805] [info] Sync event within next 0
[2019-12-14 22:31:39.782552] [info] Fetched from Google Calendar 19 events
[2019-12-14 22:31:39.883579] [info] Synced events : 0
[2019-12-14 22:31:39.883660] [info] Total sync events : 0
[2019-12-14 22:31:39.897018] [info] There are no new appointments needed to be send to Google Calendar
[2019-12-14 22:31:39.897109] [info] Sync Done
[2019-12-14 22:36:01.498948] [info] Sync started
[2019-12-14 22:36:01.499099] [debug] Calendars for sync
primary: array(
‘location’ => ‘*’,
‘service’ => ‘*’,
‘worker’ => ‘*’,
)
[2019-12-14 22:36:01.499294] [info] Syncing events for Calendar: primary
[2019-12-14 22:36:01.499345] [info] Sync event within next 0
[2019-12-14 22:36:01.988163] [info] Fetched from Google Calendar 19 events
[2019-12-14 22:36:02.027796] [info] Synced events : 0
[2019-12-14 22:36:02.027976] [info] Total sync events : 0
[2019-12-14 22:36:02.036973] [info] There are no new appointments needed to be send to Google Calendar
[2019-12-14 22:36:02.037076] [info] Sync Done
[2019-12-14 22:41:14.565825] [info] Sync started
[2019-12-14 22:41:14.570651] [debug] Calendars for sync
primary: array(
‘location’ => ‘*’,
‘service’ => ‘*’,
‘worker’ => ‘*’,
)
[2019-12-14 22:41:14.570950] [info] Syncing events for Calendar: primary
[2019-12-14 22:41:14.571028] [info] Sync event within next 0
[2019-12-14 22:41:14.793252] [info] Fetched from Google Calendar 19 events
[2019-12-14 22:41:14.818510] [info] Synced events : 0
[2019-12-14 22:41:14.818660] [info] Total sync events : 0
[2019-12-14 22:41:14.821465] [info] There are no new appointments needed to be send to Google Calendar
[2019-12-14 22:41:14.821733] [info] Sync Done
FYI: The page is here: https://www.melaniejonesspiritualmedium.com/services/#booking
I’ve booked the 28th December as a complete day but it isn’t blocking the EA calendar online.
Fetched from Google Calendar 19 events Synced events : 0 Total sync events : 0It get 19 events but don't do anything with those. Best regards, Nikola
- Successful install
- Successful website booking
- successful Google calendar post
- successful Google calendar cancellation
- successful website cancellation
- Adding define( 'DISABLE_WP_CRON', true ); directly under the command define( 'DB_COLLATE', '' ); to the wp-config.php file
- Visiting cron-job.org, creating an account and setting up an external cron schedule to include:
- Title - free text to describe your job
- Address - full URL of your wp-cron.php file, usually something like:
https://www.INSERT-YOUR-DOMAIN-HERE.com/wp-cron.php - Authentication - I've left this blank with successful results
- Schedule - every 5 minutes for me, but I may change to every 15 minutes later
- Notifications - when the cronjob will be disabled
- Request Method - GET
- Common - Enable cronjob & Save responses
Thanks for that update 🙂
Please login or Register to submit your answer