{"record":{"id":"fe061ffc06ff3f78","repo":"getgrav/grav","slug":"unable-to-find-one-of-the-following-templates-s","errorCode":null,"errorMessage":"Unable to find one of the following templates: \"%s\".","messagePattern":"Unable to find one of the following templates: \"(.+?)\"\\.","errorType":"exception","errorClass":"LoaderError","httpStatus":null,"severity":"error","filePath":"system/src/Grav/Common/Twig/TwigEnvironment.php","lineNumber":102,"sourceCode":"            }\n            if ($name instanceof TemplateWrapper) {\n                return $name;\n            }\n\n            // Optimization: Avoid throwing an exception when it would be ignored anyway.\n            if (1 !== $count) {\n                /** @var LoaderInterface|ExistsLoaderInterface $loader */\n                $loader = $this->getLoader();\n                if (!$loader->exists($name)) {\n                    continue;\n                }\n            }\n\n            // Throws LoaderError: Unable to find template \"%s\".\n            return $this->load($name);\n        }\n\n        throw new LoaderError(sprintf('Unable to find one of the following templates: \"%s\".', implode('\", \"', $names)));\n    }\n}\n","sourceCodeStart":84,"sourceCodeEnd":105,"githubUrl":"https://github.com/getgrav/grav/blob/6040efed04efa69b8209448ed81308e7c24147c2/system/src/Grav/Common/Twig/TwigEnvironment.php#L84-L105","documentation":"Error \"Unable to find one of the following templates: \"%s\".\" thrown in getgrav/grav.","triggerScenarios":"Thrown at system/src/Grav/Common/Twig/TwigEnvironment.php:102 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"}