octobercms/october · error · CmsException
cms::lang.theme.active.not_found
Error message
cms::lang.theme.active.not_found
What it means
Error "cms::lang.theme.active.not_found" thrown in octobercms/october.
Source
Thrown at modules/cms/classes/Controller.php:127
* @var \Cms\Classes\PartialWatcher partialWatcher, used internally.
*/
protected $partialWatcher;
/**
* @var bool pageCycled
*/
protected $pageCycled = false;
/**
* __construct the controller.
* @param \Cms\Classes\Theme $theme Specifies the CMS theme.
* If the theme is not specified, the current active theme used.
*/
public function __construct($theme = null)
{
$this->theme = $theme ?: Theme::getActiveTheme();
if (!$this->theme) {
throw new CmsException(Lang::get('cms::lang.theme.active.not_found'));
}
$this->assetPath = $this->getThemeAssetRelativePath();
$this->assetUrlPath = $this->getThemeAssetUrl();
$this->router = new Router($this->theme);
$this->initTwigEnvironment();
self::$instance = $this;
}
/**
* run finds and serves the requested page URL.
* If the page cannot be found, returns the page with the URL /404.
* If the /404 page doesn't exist, returns the system 404 page.
* If the parameter is null, the current URL used. If it is not provided then '/' is used.
* Returns the response to the provided URL.
*
* @param string|null $urlView on GitHub (pinned to b608633a7e)
When it happens
Trigger: Thrown at modules/cms/classes/Controller.php:127 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of octobercms/october@b608633a7e (2026-08-21).
Data as JSON: /api/errors/145928e959e17c4e.
Report an issue: GitHub.