laravel-admin-extensions / backup

An admin interface for managing backups
http://laravel-admin.org/
MIT License
75 stars 40 forks source link

doesn't work on Laravel 8.80.0 and admin 1.8.14 #27

Open Tamaditi opened 2 years ago

Tamaditi commented 2 years ago

Laravel-admin version: 1.8.14 Laravel Framework: 8.80.0

gives me error:

TypeError In BackupDestinationStatusFactory.php line 11 :
Argument 1 passed to Spatie\Backup\Tasks\Monitor\BackupDestinationStatusFactory::createForMonitorConfig() must be of the type array, null given, called in D:\laragon\www\ERP\vendor\laravel-admin-ext\backup\src\Backup.php on line 15

Log Error:

Argument 1 passed to Spatie\Backup\Tasks\Monitor\BackupDestinationStatusFactory::createForMonitorConfig() must be of the type array, null given, called in D:\laragon\www\ERP\vendor\laravel-admin-ext\backup\src\Backup.php on line 15 {"userId":1,"exception":"[object] (TypeError(code: 0): Argument 1 passed to Spatie\\Backup\\Tasks\\Monitor\\BackupDestinationStatusFactory::createForMonitorConfig() must be of the type array, null given, called in D:\\laragon\\www\\ERP\\vendor\\laravel-admin-ext\\backup\\src\\Backup.php on line 15 at D:\\laragon\\www\\ERP\\vendor\\spatie\\laravel-backup\\src\\Tasks\\Monitor\\BackupDestinationStatusFactory.php:11)
PanNinan commented 2 years ago

@Tamaditi try this: add "monitorBackups" => [], in backup config file

hh0210 commented 5 months ago

class Backup extends Extension { public function getExists() { $monitor_backups = config('backup.monitorBackups') ?? config('backup.monitor_backups'); $statuses = BackupDestinationStatusFactory::createForMonitorConfig($monitor_backups);