{"record":{"id":"b0ab31e630fc238e","repo":"octobercms/october","slug":"a-widget-class-name-name-has-not-been-registere-b0ab31","errorCode":null,"errorMessage":"A widget class name ':name' has not been registered","messagePattern":"A widget class name ':name' has not been registered","errorType":"exception","errorClass":"SystemException","httpStatus":null,"severity":"error","filePath":"modules/backend/widgets/form/HasFormWidgets.php","lineNumber":72,"sourceCode":"                return $field->getOptionsFromModel($this->model, $fieldOptions, $this->data);\n            });\n        }\n\n        // Create form widget instance\n        $widgetConfig = $this->makeConfig($field->config);\n        $widgetConfig->alias = $this->alias . studly_case($this->nameToId($field->fieldName));\n        $widgetConfig->sessionKey = $this->getSessionKey();\n        $widgetConfig->sessionKeySuffix = $this->sessionKeySuffix;\n        $widgetConfig->previewMode = $this->previewMode;\n        $widgetConfig->model = $this->model;\n        $widgetConfig->data = $this->data;\n        $widgetConfig->parentForm = $this;\n\n        $widgetName = $widgetConfig->widget;\n        $widgetClass = $this->widgetManager->resolveFormWidget($widgetName);\n\n        if (!class_exists($widgetClass)) {\n            throw new SystemException(Lang::get(\n                'backend::lang.widget.not_registered',\n                ['name' => $widgetClass]\n            ));\n        }\n\n        $widget = $this->makeFormWidget($widgetClass, $field, $widgetConfig);\n\n        return $this->formWidgets[$field->fieldName] = $widget;\n    }\n\n    /**\n     * isFormWidget checks if a field type is a widget or not\n     */\n    protected function isFormWidget(string $fieldType): bool\n    {\n        if (!$fieldType) {\n            return false;\n        }","sourceCodeStart":54,"sourceCodeEnd":90,"githubUrl":"https://github.com/octobercms/october/blob/b608633a7e8922487d91a8161499020121c3b3bf/modules/backend/widgets/form/HasFormWidgets.php#L54-L90","documentation":"Error \"A widget class name ':name' has not been registered\" thrown in octobercms/october.","triggerScenarios":"Thrown at modules/backend/widgets/form/HasFormWidgets.php:72 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"}