Closed jpmurray closed 3 years ago
There is new Notification classes:
'notifications' => [
\Spatie\Backup\Notifications\Notifications\BackupHasFailedNotification::class => ['mail'],
\Spatie\Backup\Notifications\Notifications\UnhealthyBackupWasFoundNotification::class => ['mail'],
\Spatie\Backup\Notifications\Notifications\CleanupHasFailedNotification::class => ['mail'],
\Spatie\Backup\Notifications\Notifications\BackupWasSuccessfulNotification::class => ['mail'],
\Spatie\Backup\Notifications\Notifications\HealthyBackupWasFoundNotification::class => ['mail'],
\Spatie\Backup\Notifications\Notifications\CleanupWasSuccessfulNotification::class => ['mail'],
],
Update your backup.php config file
Thank you @marechenok . I was so focused on making the Discord notification work, I could not even see this one ! Thanks again !
So I decided to upgrade a site to php 8 and
^7.0
of this package so I can leverage the Discord notification channel. Somehow, no notifications are going through anymore, not even the Slack one that used to work perfectly fine as of last night.Here's the stack trace.
Only thing I did was upgrade to 7.x, then php 8. Now every notification the package tries to send ends up like this.
EDIT: the backups are running and uploading fine. Cleanup doesn't go through because error is thrown before anything, unless the backup process, if I'm seeing things right.