{"record":{"id":"145928e959e17c4e","repo":"octobercms/october","slug":"cms-lang-theme-active-not-found","errorCode":null,"errorMessage":"cms::lang.theme.active.not_found","messagePattern":"cms::lang\\.theme\\.active\\.not_found","errorType":"exception","errorClass":"CmsException","httpStatus":null,"severity":"error","filePath":"modules/cms/classes/Controller.php","lineNumber":127,"sourceCode":"     * @var \\Cms\\Classes\\PartialWatcher partialWatcher, used internally.\n     */\n    protected $partialWatcher;\n\n    /**\n     * @var bool pageCycled\n     */\n    protected $pageCycled = false;\n\n    /**\n     * __construct the controller.\n     * @param \\Cms\\Classes\\Theme $theme Specifies the CMS theme.\n     * If the theme is not specified, the current active theme used.\n     */\n    public function __construct($theme = null)\n    {\n        $this->theme = $theme ?: Theme::getActiveTheme();\n        if (!$this->theme) {\n            throw new CmsException(Lang::get('cms::lang.theme.active.not_found'));\n        }\n\n        $this->assetPath = $this->getThemeAssetRelativePath();\n        $this->assetUrlPath = $this->getThemeAssetUrl();\n        $this->router = new Router($this->theme);\n        $this->initTwigEnvironment();\n\n        self::$instance = $this;\n    }\n\n    /**\n     * run finds and serves the requested page URL.\n     * If the page cannot be found, returns the page with the URL /404.\n     * If the /404 page doesn't exist, returns the system 404 page.\n     * If the parameter is null, the current URL used. If it is not provided then '/' is used.\n     * Returns the response to the provided URL.\n     *\n     * @param string|null $url","sourceCodeStart":109,"sourceCodeEnd":145,"githubUrl":"https://github.com/octobercms/october/blob/b608633a7e8922487d91a8161499020121c3b3bf/modules/cms/classes/Controller.php#L109-L145","documentation":"Error \"cms::lang.theme.active.not_found\" thrown in octobercms/october.","triggerScenarios":"Thrown at modules/cms/classes/Controller.php:127 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"}