{"record":{"id":"9880b2cacf559cdc","repo":"octobercms/october","slug":"the-theme-name-is-not-found","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/classes/editorextension/HasExtensionThemeCrud.php","lineNumber":38,"sourceCode":"\n        $this->assertCmsThemeExists($selectedTheme);\n\n        Theme::setEditTheme($selectedTheme);\n    }\n\n    /**\n     * assertCmsThemeExists ensures a theme directory exists\n     */\n    protected function assertCmsThemeExists(string $themeDir)\n    {\n        $themes = Theme::all();\n        foreach ($themes as $theme) {\n            if ($theme->getDirName() === $themeDir) {\n                return true;\n            }\n        }\n\n        throw new ApplicationException(__(\"The theme ':name' is not found.\", ['name' => $themeDir]));\n    }\n}\n","sourceCodeStart":20,"sourceCodeEnd":41,"githubUrl":"https://github.com/octobercms/october/blob/b608633a7e8922487d91a8161499020121c3b3bf/modules/cms/classes/editorextension/HasExtensionThemeCrud.php#L20-L41","documentation":"Error \"The theme ':name' is not found.\" thrown in octobercms/october.","triggerScenarios":"Thrown at modules/cms/classes/editorextension/HasExtensionThemeCrud.php:38 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"}