octobercms/october · error · ApplicationException

The theme ':name' is not found.

Error message

The theme ':name' is not found.

What it means

Lookup guard in Themes::findThemeObject: the theme name from the request (post 'theme') or argument could not be loaded as a valid CmsTheme, so any theme operation (fields form, duplicate, export) that resolves the theme first is aborted.

Solutions

  1. Verify the theme directory exists and is valid
  2. Send the correct theme dir name in the request
  3. Clear caches if a recently created theme is not resolving
Defensive patterns

Strategy: validation

When it happens

Trigger: Thrown at modules/cms/controllers/Themes.php:481 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/74af73dddb7289e4. Report an issue: GitHub.

Appendix: source

Thrown at modules/cms/controllers/Themes.php:481

    }

    //
    // Util
    //

    /**
     * findThemeObject
     */
    protected function findThemeObject($name = null)
    {
        if ($name === null) {
            $name = post('theme');
        }

        $theme = $name ? CmsTheme::load($name) : null;

        if (!$theme || !$theme->isValid()) {
            throw new ApplicationException(__("The theme ':name' is not found.", ['name' => $name]));
        }

        return $theme;
    }
}

View on GitHub (pinned to b608633a7e)