{"record":{"id":"7c5a0123c7166523","repo":"octobercms/october","slug":"system-lang-updates-theme-not-found","errorCode":"system::lang.updates.theme_not_found","errorMessage":"Theme not found","messagePattern":"Theme not found","errorType":"exception","errorClass":"ApplicationException","httpStatus":null,"severity":"warning","filePath":"modules/system/controllers/Market.php","lineNumber":142,"sourceCode":"        }\n    }\n\n    /**\n     * theme\n     */\n    public function theme($urlCode = null, $tab = null)\n    {\n        try {\n            $this->pageTitle = 'system::lang.updates.details_title_theme';\n            $this->pageSize = 950;\n            $this->addJs('/modules/system/assets/js/pages/market.details.js');\n            $this->addCss('/modules/system/assets/css/pages/market.css');\n\n            $code = $this->slugToCode($urlCode);\n            $product = new ProductDetail($code, true);\n\n            if (!$product->exists()) {\n                throw new ApplicationException(Lang::get('system::lang.updates.theme_not_found'));\n            }\n\n            $this->vars['projectDetails'] = UpdateManager::instance()->getProjectDetails();\n            $this->vars['activeTab'] = $tab ?: 'readme';\n            $this->vars['urlCode'] = $urlCode;\n            $this->vars['product'] = $product;\n        }\n        catch (Exception $ex) {\n            $this->handleError($ex);\n        }\n    }\n\n    /**\n     * onBrowseProject\n     */\n    public function onBrowseProject()\n    {\n        $project = UpdateManager::instance()->requestBrowseProject();","sourceCodeStart":124,"sourceCodeEnd":160,"githubUrl":"https://github.com/octobercms/october/blob/b608633a7e8922487d91a8161499020121c3b3bf/modules/system/controllers/Market.php#L124-L160","documentation":"Backend marketplace detail action Market::theme() (URL backend/system/market/theme/<slug>) is the theme counterpart of plugin(): slugToCode() derives the product code, ProductDetail($code, true) queries the marketplace with the theme flag, and when the product does not exist it throws system::lang.updates.theme_not_found ('Theme not found'), caught by handleError($ex).","triggerScenarios":"Opening backend/system/market/theme/<author-theme-slug> for a theme the gateway cannot find: theme removed/renamed on the marketplace, malformed slug that does not map back to Author.Theme, or empty gateway details.","commonSituations":"Old bookmarks to delisted themes; typos in the theme code; building theme detail URLs from stale data.","solutions":["Search the theme again from the Updates > Themes browser and use the regenerated link","Confirm the theme still exists on octobercms.com and match its exact Author.Theme code","Check that your code builds the slug from the current Author.Theme identifier"],"exampleFix":null,"handlingStrategy":"validation","validationCode":"$product = new \\System\\Classes\\ProductDetail($code, true);\nif (!$product->exists()) {\n    // do not link/redirect to the theme detail page for this code\n}","typeGuard":null,"tryCatchPattern":null,"preventionTips":["Build theme detail URLs from fresh marketplace data","Treat the controller's handleError rendering as the last line of defense, not the plan","Validate the slug maps back to Author.Theme before issuing redirects"],"tags":["marketplace","theme","backend","not-found"],"backgroundTag":"resource-not-found","analyzedSha":"b608633a7e8922487d91a8161499020121c3b3bf","analyzedAt":"2026-08-21T04:24:57.515Z","schemaVersion":2},"datasetVersion":"2026-08-21T11:28:35.574Z"}