getgrav/grav · error · RuntimeException
The cache/gpm folder is not writable. Please check the folde
Error message
The cache/gpm folder is not writable. Please check the folder permissions.
What it means
Error "The cache/gpm folder is not writable. Please check the folder permissions." thrown in getgrav/grav.
Source
Thrown at system/src/Grav/Common/GPM/GPM.php:684
* @param string $search Can be either the slug or the name
* @param bool $ignore_exception True if should not fire an exception (for use in Twig)
* @return Remote\Package|false Package if found, FALSE if not
*/
public function findPackage($search, $ignore_exception = false)
{
$search = strtolower($search);
$found = $this->getRepositoryPlugin($search) ?? $this->getRepositoryTheme($search);
if ($found) {
return $found;
}
$themes = $this->getRepositoryThemes();
$plugins = $this->getRepositoryPlugins();
if (null === $themes || null === $plugins) {
if (!is_writable(GRAV_ROOT . '/cache/gpm')) {
throw new RuntimeException('The cache/gpm folder is not writable. Please check the folder permissions.');
}
if ($ignore_exception) {
return false;
}
throw new RuntimeException('GPM not reachable. Please check your internet connection or check the Grav site is reachable');
}
foreach ($themes as $slug => $theme) {
if ($search === $slug || $search === $theme->name) {
return $theme;
}
}
foreach ($plugins as $slug => $plugin) {
if ($search === $slug || $search === $plugin->name) {
return $plugin;View on GitHub (pinned to 6040efed04)
When it happens
Trigger: Thrown at system/src/Grav/Common/GPM/GPM.php:684 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/7b07b3906f9d64fd.
Report an issue: GitHub.