{"record":{"id":"a054f04b502a5895","repo":"octobercms/october","slug":"dash-behavior-does-not-contain-a-definition-for","errorCode":null,"errorMessage":"Dash behavior does not contain a definition for [:field]","messagePattern":"Dash behavior does not contain a definition for \\[:field\\]","errorType":"exception","errorClass":"ApplicationException","httpStatus":null,"severity":"error","filePath":"modules/dashboard/behaviors/DashController.php","lineNumber":103,"sourceCode":"        // Build configuration\n        $this->setConfig($controller->dashConfig ?? [], $this->requiredConfig);\n    }\n\n    /**\n     * validateDash validates the supplied field and initializes the dashboard.\n     * @param string $definition\n     * @return string\n     */\n    protected function validateDash($definition)\n    {\n        $definition = $definition ?: post(self::PARAM_DEFINITION);\n\n        if ($definition && $definition !== $this->definition) {\n            $this->initDash($definition);\n        }\n\n        if (!$definition && !$this->definition) {\n            throw new ApplicationException(__(\"Dash behavior does not contain a definition for [:field]\", ['field' => $definition]));\n        }\n\n        return $definition ?: $this->definition;\n    }\n\n    /**\n     * prepareVars for display\n     */\n    public function prepareVars()\n    {\n        $this->vars['dashDefinition'] = $this->definition;\n        $this->vars['dashWidget'] = $this->dashWidget;\n    }\n\n    /**\n     * initDash\n     */\n    public function initDash($definition = null)","sourceCodeStart":85,"sourceCodeEnd":121,"githubUrl":"https://github.com/octobercms/october/blob/b608633a7e8922487d91a8161499020121c3b3bf/modules/dashboard/behaviors/DashController.php#L85-L121","documentation":"Error \"Dash behavior does not contain a definition for [:field]\" thrown in octobercms/october.","triggerScenarios":"Thrown at modules/dashboard/behaviors/DashController.php:103 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"b608633a7e8922487d91a8161499020121c3b3bf","analyzedAt":"2026-08-21T04:24:57.515Z","schemaVersion":2},"datasetVersion":"2026-08-21T11:28:35.574Z"}