hi everyone
i was testing bacula and bacularis to use them when i try restore backup in
step 2 - select backup to restore if i press next button without select job
this error 👇 appears but when select job it's fine
you can solve it by appear text to select job next to Next button
I want to share this error with you and thanks all 🌹
++++++++++++++++++++++++++++++++++++++++++
TypeError
Description

count(): Argument #1 ($value) must be of type Countable|array, string given
Source File

/var/www/bacularis/protected/vendor/bacularis/bacularis-web/Web/Pages/RestoreWizard.php
(684)

0673:             ];
0674:             if ($this->EnableCopyJobRestore->Checked) {
0675:                 $params['inc_copy_job'] = 1;
0676:             }
0677:             $query = '?' . http_build_query($params);
0678:             $jobs_recent = $this->getModule('api')->get([
0679:                 'jobs',
0680:                 'recent',
0681:                 $this->GroupBackupToRestore->SelectedValue,
0682:                 $query
0683:             ]);
0684:             if (count($jobs_recent->output) > 0) {
0685:                 $ids = $jobs_recent->output;
0686:                 if (count($ids) > 0) {
0687:                     $jobid = $ids[0];
0688:                     $job = $this->getModule('api')->get(
0689:                         ['jobs', $jobid]
0690:                     )->output;
0691:                     if (is_object($job)) {
0692:                         $this->setRestoreJob($jobid, $job->name,
$job->type, $job->endtime, $job->jobstatus);
0693:                     }
0694:                 }
0695:                 $jobids = implode(',', $ids);
0696:             }

Stack Trace

#0
/var/www/bacularis/protected/vendor/bacularis/bacularis-web/Web/Pages/RestoreWizard.php(528):
RestoreWizard->getElementaryBackup()
#1
/var/www/bacularis/protected/vendor/bacularis/bacularis-web/Web/Pages/RestoreWizard.php(757):
RestoreWizard->prepareBrowserContent()
#2
/var/www/bacularis/protected/vendor/bacularis/bacularis-web/Web/Pages/RestoreWizard.php(229):
RestoreWizard->goToPath()
#3 ${PradoFramework}/TComponent.php(1253): RestoreWizard->wizardNext()
#4 ${PradoFramework}/Web/UI/WebControls/TWizard.php(675):
Prado\TComponent->raiseEvent()
#5 ${PradoFramework}/Web/UI/WebControls/TWizard.php(1342):
Prado\Web\UI\WebControls\TWizard->onNextButtonClick()
#6 ${PradoFramework}/Web/UI/TControl.php(1511):
Prado\Web\UI\WebControls\TWizard->bubbleEvent()
#7 ${PradoFramework}/Web/UI/WebControls/TLinkButton.php(331):
Prado\Web\UI\TControl->raiseBubbleEvent()
#8 ${PradoFramework}/Web/UI/WebControls/TLinkButton.php(306):
Prado\Web\UI\WebControls\TLinkButton->onCommand()
#9 ${PradoFramework}/Web/UI/TPage.php(956):
Prado\Web\UI\WebControls\TLinkButton->raisePostBackEvent()
#10 ${PradoFramework}/Web/UI/TPage.php(286):
Prado\Web\UI\TPage->raisePostBackEvent()
#11 ${PradoFramework}/Web/UI/TPage.php(218):
Prado\Web\UI\TPage->processPostBackRequest()
#12 ${PradoFramework}/Web/Services/TPageService.php(547):
Prado\Web\UI\TPage->run()
#13 ${PradoFramework}/Web/Services/TPageService.php(465):
Prado\Web\Services\TPageService->runPage()
#14 ${PradoFramework}/TApplication.php(1262):
Prado\Web\Services\TPageService->run()
#15 ${PradoFramework}/TApplication.php(386):
Prado\TApplication->runService()
#16 ${DocumentRoot}/index.php(43): Prado\TApplication->run()
#17 {main}
_______________________________________________
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users

Reply via email to