Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Tamaditi opened this issue May 9, 2022 · 2 comments
Open

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

Tamaditi opened this issue May 9, 2022 · 2 comments

Comments

@Tamaditi
Copy link

Tamaditi commented May 9, 2022

**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
Copy link

PanNinan commented May 31, 2022

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

@hh0210
Copy link

hh0210 commented Jun 22, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants