octobercms/october · error · ApplicationException

The theme ':name' is not found.

Error message

The theme ':name' is not found.

What it means

Error "The theme ':name' is not found." thrown in octobercms/october.

Source

Thrown at modules/cms/classes/editorextension/HasExtensionThemeCrud.php:38

        $this->assertCmsThemeExists($selectedTheme);

        Theme::setEditTheme($selectedTheme);
    }

    /**
     * assertCmsThemeExists ensures a theme directory exists
     */
    protected function assertCmsThemeExists(string $themeDir)
    {
        $themes = Theme::all();
        foreach ($themes as $theme) {
            if ($theme->getDirName() === $themeDir) {
                return true;
            }
        }

        throw new ApplicationException(__("The theme ':name' is not found.", ['name' => $themeDir]));
    }
}

View on GitHub (pinned to b608633a7e)

When it happens

Trigger: Thrown at modules/cms/classes/editorextension/HasExtensionThemeCrud.php:38 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/9880b2cacf559cdc. Report an issue: GitHub.