{"record":{"id":"0f5c4c8e9abb41fa","repo":"octobercms/october","slug":"the-theme-name-is-not-found-0f5c4c","errorCode":null,"errorMessage":"The theme ':name' is not found.","messagePattern":"The theme ':name' is not found\\.","errorType":"exception","errorClass":"ApplicationException","httpStatus":null,"severity":"error","filePath":"modules/cms/controllers/ThemeOptions.php","lineNumber":168,"sourceCode":"    {\n        $theme = $this->findThemeObject($dirName);\n\n        return ThemeData::forTheme($theme);\n    }\n\n    /**\n     * findThemeObject\n     */\n    protected function findThemeObject($name = null)\n    {\n        if ($name === null) {\n            $name = post('theme');\n        }\n\n        $theme = $name ? CmsTheme::load($name) : null;\n\n        if (!$theme || !$theme->isValid()) {\n            throw new ApplicationException(__(\"The theme ':name' is not found.\", ['name' => $name]));\n        }\n\n        return $theme;\n    }\n}\n","sourceCodeStart":150,"sourceCodeEnd":174,"githubUrl":"https://github.com/octobercms/october/blob/b608633a7e8922487d91a8161499020121c3b3bf/modules/cms/controllers/ThemeOptions.php#L150-L174","documentation":"Error \"The theme ':name' is not found.\" thrown in octobercms/october.","triggerScenarios":"Thrown at modules/cms/controllers/ThemeOptions.php:168 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"}