getgrav/grav · error · RuntimeException
Flex saveFile(%s): %s
Error message
Flex saveFile(%s): %s
What it means
Error "Flex saveFile(%s): %s" thrown in getgrav/grav.
Source
Thrown at system/src/Grav/Framework/Flex/Storage/FolderStorage.php:445
if (is_string($oldKey) && $oldKey !== $key) {
$isCopy = $row['__META']['copy'] ?? false;
if ($isCopy) {
$this->copyRow($oldKey, $key);
} else {
$this->renameRow($oldKey, $key);
}
}
$this->prepareRow($row);
unset($row['__META'], $row['__ERROR']);
$path = $this->getPathFromKey($key);
$file = $this->getFile($path);
$file->save($row);
} catch (RuntimeException $e) {
throw new RuntimeException(sprintf('Flex saveFile(%s): %s', $path ?? $key, $e->getMessage()));
} finally {
/** @var UniformResourceLocator $locator */
$locator = Grav::instance()['locator'];
$locator->clearCache();
if (isset($file)) {
$file->free();
unset($file);
}
}
$row['__META'] = $this->getObjectMeta($key, true);
return $row;
}
/**
* @param File $fileView on GitHub (pinned to 6040efed04)
When it happens
Trigger: Thrown at system/src/Grav/Framework/Flex/Storage/FolderStorage.php:445 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/fbe9be6e9965c712.
Report an issue: GitHub.