octobercms/october · error · ApplicationException

Dash behavior does not contain a definition for [:field]

Error message

Dash behavior does not contain a definition for [:field]

What it means

Error "Dash behavior does not contain a definition for [:field]" thrown in octobercms/october.

Source

Thrown at modules/dashboard/behaviors/DashController.php:103

        // Build configuration
        $this->setConfig($controller->dashConfig ?? [], $this->requiredConfig);
    }

    /**
     * validateDash validates the supplied field and initializes the dashboard.
     * @param string $definition
     * @return string
     */
    protected function validateDash($definition)
    {
        $definition = $definition ?: post(self::PARAM_DEFINITION);

        if ($definition && $definition !== $this->definition) {
            $this->initDash($definition);
        }

        if (!$definition && !$this->definition) {
            throw new ApplicationException(__("Dash behavior does not contain a definition for [:field]", ['field' => $definition]));
        }

        return $definition ?: $this->definition;
    }

    /**
     * prepareVars for display
     */
    public function prepareVars()
    {
        $this->vars['dashDefinition'] = $this->definition;
        $this->vars['dashWidget'] = $this->dashWidget;
    }

    /**
     * initDash
     */
    public function initDash($definition = null)

View on GitHub (pinned to b608633a7e)

When it happens

Trigger: Thrown at modules/dashboard/behaviors/DashController.php:103 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/a054f04b502a5895. Report an issue: GitHub.