{"record":{"id":"6a2e3acc60856c7f","repo":"getgrav/grav","slug":"1","errorCode":"1","errorMessage":"Dependency <cyan>{$package_yaml['name']}</cyan> requires version <cyan>{$dependencyVersion}</cyan>, but <cyan>{$dependency_slug} {$blocked['version']}</cyan> requires {$requires}. Update {$needs} first, then try again.","messagePattern":"Dependency <cyan>(.+?)</cyan> requires version <cyan>(.+?)</cyan>, but <cyan>(.+?) (.+?)</cyan> requires (.+?)\\. Update (.+?) first, then try again\\.","errorType":"exception","errorClass":"RuntimeException","httpStatus":null,"severity":"error","filePath":"system/src/Grav/Common/GPM/GPM.php","lineNumber":1136,"sourceCode":"                        && !$this->firstVersionIsLower($blocked['version'], $dependencyVersion)) {\n                        $needs = [];\n                        $gravMin = $this->extractMinConstraintVersion($blocked['grav'] ?? null);\n                        if ($gravMin && version_compare($gravMin, GRAV_VERSION, '>')) {\n                            $needs['Grav'] = $gravMin;\n                        }\n                        $phpMin = $this->extractMinConstraintVersion($blocked['php'] ?? null);\n                        if ($phpMin && version_compare($phpMin, PHP_VERSION, '>')) {\n                            $needs['PHP'] = $phpMin;\n                        }\n\n                        if ($needs) {\n                            $requires = [];\n                            $current = ['Grav' => GRAV_VERSION, 'PHP' => PHP_VERSION];\n                            foreach ($needs as $what => $min) {\n                                $requires[] = \"<cyan>{$what} {$min}</cyan> (you have {$current[$what]})\";\n                            }\n\n                            throw new RuntimeException(\n                                'Dependency <cyan>' . $package_yaml['name'] . '</cyan> requires version <cyan>'\n                                . $dependencyVersion . '</cyan>, but <cyan>' . $dependency_slug . ' '\n                                . $blocked['version'] . '</cyan> requires ' . implode(' and ', $requires)\n                                . '. Update ' . implode(' and ', array_keys($needs)) . ' first, then try again.',\n                                1\n                            );\n                        }\n                    }\n\n                    //throw an exception if a required version cannot be found in the GPM yet\n                    throw new RuntimeException(\n                        'Dependency <cyan>' . $package_yaml['name'] . '</cyan> is required in version <cyan>' . $dependencyVersion . '</cyan> which is higher than the latest release, <cyan>' . $latestRelease . '</cyan>. Try running `bin/gpm -f index` to force a refresh of the GPM cache',\n                        1\n                    );\n                }\n\n                if ($this->firstVersionIsLower($currentlyInstalledVersion, $dependencyVersion)) {\n                    $dependencies[$dependency_slug] = 'update';","sourceCodeStart":1118,"sourceCodeEnd":1154,"githubUrl":"https://github.com/getgrav/grav/blob/6040efed04efa69b8209448ed81308e7c24147c2/system/src/Grav/Common/GPM/GPM.php#L1118-L1154","documentation":"Error \"Dependency <cyan>{$package_yaml['name']}</cyan> requires version <cyan>{$dependencyVersion}</cyan>, but <cyan>{$dependency_slug} {$blocked['version']}</cyan> requires {$requires}. Update {$needs} first, then try again.\" thrown in getgrav/grav.","triggerScenarios":"Thrown at system/src/Grav/Common/GPM/GPM.php:1136 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"6040efed04efa69b8209448ed81308e7c24147c2","analyzedAt":"2026-08-17T05:07:31.593Z","schemaVersion":2},"datasetVersion":"2026-08-17T09:17:11.063Z"}