{"record":{"id":"de2e9b648e5bd649","repo":"octobercms/october","slug":"backend-lang-widget-not-bound","errorCode":null,"errorMessage":"backend::lang.widget.not_bound","messagePattern":"backend::lang\\.widget\\.not_bound","errorType":"exception","errorClass":"SystemException","httpStatus":null,"severity":"error","filePath":"modules/backend/classes/Controller.php","lineNumber":546,"sourceCode":"                 *     $this->controller->bindEvent('ajax.beforeRunHandler', function ((string) $handler) {\n                 *         if (strpos($handler, '::')) {\n                 *             [$componentAlias, $handlerName] = explode('::', $handler);\n                 *             if ($componentAlias === $this->getBackendWidgetAlias()) {\n                 *                 return $this->backendControllerProxy->runAjaxHandler($handler);\n                 *             }\n                 *         }\n                 *     });\n                 *\n                 */\n                if ($event = $this->fireSystemEvent('backend.ajax.beforeRunHandler', [$handler])) {\n                    $response = ajax()::wrap($event);\n                }\n                else {\n                    $response = $this->callAjaxAction($this->action, $this->params);\n                }\n            }\n            catch (ComponentNotFound $ex) {\n                throw new SystemException(Lang::get('backend::lang.widget.not_bound', ['name'=>$this->getAjaxRequest()->component]));\n            }\n            catch (MassAssignmentException $ex) {\n                throw new SystemException(Lang::get('backend::lang.model.mass_assignment_failed', ['attribute' => $ex->getMessage()]));\n            }\n            catch (HandlerNameInvalid $ex) {\n                throw new ApplicationException(Lang::get('backend::lang.ajax_handler.invalid_name', ['name'=>$handler]));\n            }\n            catch (HandlerNotFound $ex) {\n                throw new ApplicationException(Lang::get('backend::lang.ajax_handler.not_found', ['name'=>e($handler)]));\n            }\n        }\n        catch (ValidationException $ex) {\n            Flash::error($ex->getMessage());\n            $response = ajax()->invalidFields($ex->errors());\n        }\n        catch (Throwable $ex) {\n            report($ex);\n            $response = ajax()->exception($ex);","sourceCodeStart":528,"sourceCodeEnd":564,"githubUrl":"https://github.com/octobercms/october/blob/b608633a7e8922487d91a8161499020121c3b3bf/modules/backend/classes/Controller.php#L528-L564","documentation":"Thrown in execAjaxHandlers when an AJAX request targets a handler belonging to a component/widget alias that is not bound to the current page/controller. The ComponentNotFound catch converts it into the localized 'widget not bound' error, naming the missing component. The faulty input is the component alias portion of the handler name (the part before '::').","triggerScenarios":"Thrown at modules/backend/classes/Controller.php:546 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Ensure the component or backend widget providing the handler is actually attached/bound to the page or controller issuing the request","Check the handler name string for a stale or misspelled component alias","Register the widget proxy (ajax.beforeRunHandler event) in the controller so the component's handlers are routable"],"exampleFix":null,"handlingStrategy":"try-catch","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"b608633a7e8922487d91a8161499020121c3b3bf","analyzedAt":"2026-08-21T04:24:57.515Z","contentChangedAt":"2026-08-21T04:24:57.515Z","schemaVersion":2},"datasetVersion":"2026-09-23T08:17:48.524Z"}