getgrav/grav · error · RuntimeException
Storage path is not defined
Error message
Storage path is not defined
What it means
Error "Storage path is not defined" thrown in getgrav/grav.
Source
Thrown at system/src/Grav/Framework/Flex/Storage/SimpleStorage.php:407
* @return array
*/
public function parseKey(string $key, bool $variations = true): array
{
return [
'key' => $key,
];
}
protected function save(): void
{
if (null === $this->data) {
$this->buildIndex();
}
try {
$path = $this->getStoragePath();
if (!$path) {
throw new RuntimeException('Storage path is not defined');
}
$file = $this->getFile($path);
if ($this->prefix) {
$data = new Data((array)$file->content());
$content = $data->set($this->prefix, $this->data)->toArray();
} else {
$content = $this->data;
}
$file->save($content);
$this->modified = (int)$file->modified(); // cast false to 0
} catch (RuntimeException $e) {
throw new RuntimeException(sprintf('Flex save(): %s', $e->getMessage()));
} finally {
if (isset($file)) {
$file->free();
unset($file);
}
}View on GitHub (pinned to 6040efed04)
When it happens
Trigger: Thrown at system/src/Grav/Framework/Flex/Storage/SimpleStorage.php:407 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/ef4299f6bf3d9afe.
Report an issue: GitHub.