Google Calendar Sync Failed Cron Run

I’ve used the Google Calendar sync for years. Sometimes the sync gets corrupted and often I just delete the last sync date and the last sync ID and remove the calendar from Google. Then on the next job it recreates itself.

I have been experiencing lately it only syncs one record and then fails cron run.

I’m not getting any 500 errors or anything else to diagnose. Anyone else have this issue? Ideas?

The only recurring PHP error I get it this one, not sure it’s related, but it seems to appear as often as the cron runs:

[21-Mar-2025 13:59:06 UTC] PHP Deprecated: Automatic conversion of false to array is deprecated in xxxxxxxxxxxxx/include/php-sql-parser.php on line 564

“Deprecated” errors are never the problem, they are just notes to developers regarding future problems.

I think you’ll have to add some more logging or debug the cron job, to get some more information… otherwise, it’s a mystery…

1 Like

I added this to my php.ini to suppress the warnings and it’s now working!

Maybe the errors reporting were inturrupting the job.

error_reporting = E_ALL & ~E_DEPRECATED & ~E_NOTICE

Ouch. That’s possible. But it is also a bug, it makes no sense to let PHP messages leak into the data… the oldest parts of SugarCRM did that kind of thing, I guess this is still from those days…