{"record":{"id":"c331dfb8cb53b9f0","repo":"getgrav/grav","slug":"2","errorCode":"2","errorMessage":"Package <cyan>$slug</cyan> is required in an older version by package <cyan>$dependent_package</cyan>. This package needs a newer version, and because of this it cannot be installed. The <cyan>$dependent_package</cyan> package must be updated to use a newer release of <cyan>$slug</cyan>.","messagePattern":"Package <cyan>\\$slug</cyan> is required in an older version by package <cyan>\\$dependent_package</cyan>\\. This package needs a newer version, and because of this it cannot be installed\\. The <cyan>\\$dependent_package</cyan> package must be updated to use a newer release of <cyan>\\$slug</cyan>\\.","errorType":"exception","errorClass":"RuntimeException","httpStatus":null,"severity":"error","filePath":"system/src/Grav/Common/GPM/GPM.php","lineNumber":1002,"sourceCode":"     * @return bool\n     * @throws RuntimeException\n     */\n    public function checkNoOtherPackageNeedsThisDependencyInALowerVersion($slug, $version_with_operator, $ignore_packages_list)\n    {\n        // check if any of the currently installed package need this in a lower version than the one we need. In case, abort and tell which package\n        $dependent_packages = $this->getPackagesThatDependOnPackage($slug);\n        $version = $this->calculateVersionNumberFromDependencyVersion($version_with_operator);\n\n        if (count($dependent_packages)) {\n            foreach ($dependent_packages as $dependent_package) {\n                $other_dependency_version_with_operator = $this->getVersionOfDependencyRequiredByPackage($dependent_package, $slug);\n                $other_dependency_version = $this->calculateVersionNumberFromDependencyVersion($other_dependency_version_with_operator);\n\n                // check version is compatible with the one needed by the current package\n                if ($this->versionFormatIsNextSignificantRelease($other_dependency_version_with_operator)) {\n                    $compatible = $this->checkNextSignificantReleasesAreCompatible($version, $other_dependency_version);\n                    if (!$compatible && !in_array($dependent_package, $ignore_packages_list, true)) {\n                        throw new RuntimeException(\n                            \"Package <cyan>$slug</cyan> is required in an older version by package <cyan>$dependent_package</cyan>. This package needs a newer version, and because of this it cannot be installed. The <cyan>$dependent_package</cyan> package must be updated to use a newer release of <cyan>$slug</cyan>.\",\n                            2\n                        );\n                    }\n                }\n            }\n        }\n\n        return true;\n    }\n\n    /**\n     * Check the passed packages list can be updated\n     *\n     * @param array $packages_names_list\n     * @return void\n     * @throws Exception\n     */","sourceCodeStart":984,"sourceCodeEnd":1020,"githubUrl":"https://github.com/getgrav/grav/blob/6040efed04efa69b8209448ed81308e7c24147c2/system/src/Grav/Common/GPM/GPM.php#L984-L1020","documentation":"Error \"Package <cyan>$slug</cyan> is required in an older version by package <cyan>$dependent_package</cyan>. This package needs a newer version, and because of this it cannot be installed. The <cyan>$dependent_package</cyan> package must be updated to use a newer release of <cyan>$slug</cyan>.\" thrown in getgrav/grav.","triggerScenarios":"Thrown at system/src/Grav/Common/GPM/GPM.php:1002 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"}