getgrav/grav · error · InvalidArgumentException
Invalid output type
Error message
Invalid output type
What it means
Error "Invalid output type" thrown in getgrav/grav.
Source
Thrown at system/src/Grav/Common/Scheduler/Scheduler.php:424
$this->failed_jobs = [];
$this->output_schedule = [];
return $this;
}
/**
* Get the scheduler verbose output.
*
* @param string $type Allowed: text, html, array
* @return string|array The return depends on the requested $type
*/
public function getVerboseOutput($type = 'text')
{
return match ($type) {
'text' => implode("\n", $this->output_schedule),
'html' => implode('<br>', $this->output_schedule),
'array' => $this->output_schedule,
default => throw new InvalidArgumentException('Invalid output type'),
};
}
/**
* Remove all queued Jobs.
*
* @return $this
*/
public function clearJobs()
{
$this->jobs = [];
return $this;
}
/**
* Helper to get the full Cron command
*View on GitHub (pinned to 6040efed04)
When it happens
Trigger: Thrown at system/src/Grav/Common/Scheduler/Scheduler.php:424 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of getgrav/grav@6040efed04 (2026-08-17).
Data as JSON: /api/errors/5e5b62589e57b45c.
Report an issue: GitHub.