Cron job fatal error reminders.php

PHP Fatal error: Uncaught TypeError: Argument 2 passed to Reminder::isDecline() must be an instance of SugarBean, boolean given, called in /var/www/vhosts/ama-atm/modules/Reminders/Reminder.php on line 208 and defined in /var/www/vhosts/ama-atm/modules/Reminders/Reminder.php:378
Stack trace:
#0 /var/www/vhosts/ama-atm/modules/Reminders/Reminder.php(208): Reminder::isDecline(Object(Meeting), false)
#1 /var/www/vhosts/ama-atm/modules/Reminders/Reminder.php(184): Reminder::getEmailReminderInviteesRecipients(‘769f7880-ad15-2…’, true)
#2 /var/www/vhosts/ama-atm/modules/Activities/EmailReminder.php(97): Reminder::sendEmailReminders(Object(EmailReminder), Object(Administration))
#3 /var/www/vhosts/ama-atm/modules/Schedulers/_AddJobsHere.php(424): EmailReminder->process()
#4 /var/www/vhosts/ama-atm/modules/SchedulersJobs/SchedulersJob.php(536): sendEmailReminders(Object(SchedulersJob))
#5 /var/www/vhosts/ama-atm/include/SugarQueue/SugarCronJobs.php(188): SchedulersJob->runJob()
#6 /var/www/vhosts/ama-atm/include/SugarQueue/SugarCro in /var/www/vhosts/ama-atm/modules/Reminders/Reminder.php on line 378

I notice my cronjob coming back with this error. Can someone please help.

Please post your versions of OS, PHP and SuiteCRM, this will really help us help you. Thanks

php 7, nginx, Version 7.8.3
Sugar Version 6.5.24 (Build 509)

Thanks. I’ll assume that’s on Linux.

Do you know exactly which meeting is generating that failed reminder? I would like to try and reproduce that problem here in my system, with the same data.

And is your outbound email working properly?

1 Like

Yes it was some stray data that was causing it to mess up. I delete the meeting and all its related entries from the db, problem solved.