getgrav/grav · error · InvalidArgumentException
Argument $options is missing 'folder'
Error message
Argument $options is missing 'folder'
What it means
Error "Argument $options is missing 'folder'" thrown in getgrav/grav.
Source
Thrown at system/src/Grav/Framework/Flex/Storage/FolderStorage.php:62
protected $variables = ['FOLDER' => '%1$s', 'KEY' => '%2$s', 'KEY:2' => '%3$s', 'FILE' => '%4$s', 'EXT' => '%5$s'];
/** @var string Filename for the object. */
protected $dataFile;
/** @var string File extension for the object. */
protected $dataExt;
/** @var bool */
protected $prefixed;
/** @var bool */
protected $indexed;
/** @var array */
protected $meta = [];
/**
* {@inheritdoc}
*/
public function __construct(array $options)
{
if (!isset($options['folder'])) {
throw new InvalidArgumentException("Argument \$options is missing 'folder'");
}
$this->initDataFormatter($options['formatter'] ?? []);
$this->initOptions($options);
}
/**
* @return bool
*/
public function isIndexed(): bool
{
return $this->indexed;
}
/**
* @return void
*/
public function clearCache(): voidView on GitHub (pinned to 6040efed04)
When it happens
Trigger: Thrown at system/src/Grav/Framework/Flex/Storage/FolderStorage.php:62 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/114d773fb75cafad.
Report an issue: GitHub.