{"record":{"id":"351103cd1c40270e","repo":"octobercms/october","slug":"cms-lang-layout-not-found-name-351103","errorCode":null,"errorMessage":"cms::lang.layout.not_found_name","messagePattern":"cms::lang\\.layout\\.not_found_name","errorType":"exception","errorClass":"October\\Rain\\Exception\\SystemException","httpStatus":null,"severity":"error","filePath":"modules/system/traits/ViewMaker.php","lineNumber":160,"sourceCode":"     * makeLayout renders a layout\n     * @param string $name Specifies the layout name.\n     * If this parameter is omitted, the $layout property will be used.\n     * @param array $params Parameter variables to pass to the view.\n     * @param bool $throwException Throw an exception if the layout is not found\n     * @return mixed The layout contents, or false.\n     */\n    public function makeLayout($name = null, $params = [], $throwException = true)\n    {\n        $layout = $name ?? $this->layout;\n        if (!$layout) {\n            return '';\n        }\n\n        $layoutPath = $this->getViewPath($layout, $this->layoutPath);\n\n        if (!File::exists($layoutPath)) {\n            if ($throwException) {\n                throw new SystemException(Lang::get('cms::lang.layout.not_found_name', ['name' => $layoutPath]));\n            }\n\n            return false;\n        }\n\n        return $this->makeFileContents($layoutPath, $params);\n    }\n\n    /**\n     * makeLayoutPartial renders a layout partial\n     * @param string $partial The view to load.\n     * @param array $params Parameter variables to pass to the view.\n     * @return string The layout partial contents\n     */\n    public function makeLayoutPartial($partial, $params = [])\n    {\n        if (!File::isLocalPath($partial) && !File::isPathSymbol($partial)) {\n            $folder = strpos($partial, '/') !== false ? dirname($partial) . '/' : '';","sourceCodeStart":142,"sourceCodeEnd":178,"githubUrl":"https://github.com/octobercms/october/blob/b608633a7e8922487d91a8161499020121c3b3bf/modules/system/traits/ViewMaker.php#L142-L178","documentation":"Error \"cms::lang.layout.not_found_name\" thrown in octobercms/october.","triggerScenarios":"Thrown at modules/system/traits/ViewMaker.php:160 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":"b608633a7e8922487d91a8161499020121c3b3bf","analyzedAt":"2026-08-21T04:24:57.515Z","schemaVersion":2},"datasetVersion":"2026-08-21T11:28:35.574Z"}