octobercms/october · error · SystemException
backend::lang.widget.not_bound
Error message
backend::lang.widget.not_bound
What it means
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 '::').
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
Defensive patterns
Strategy: try-catch
When it happens
Trigger: Thrown at modules/backend/classes/Controller.php:546 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/de2e9b648e5bd649.
Report an issue: GitHub.
Appendix: source
Thrown at modules/backend/classes/Controller.php:546
* $this->controller->bindEvent('ajax.beforeRunHandler', function ((string) $handler) {
* if (strpos($handler, '::')) {
* [$componentAlias, $handlerName] = explode('::', $handler);
* if ($componentAlias === $this->getBackendWidgetAlias()) {
* return $this->backendControllerProxy->runAjaxHandler($handler);
* }
* }
* });
*
*/
if ($event = $this->fireSystemEvent('backend.ajax.beforeRunHandler', [$handler])) {
$response = ajax()::wrap($event);
}
else {
$response = $this->callAjaxAction($this->action, $this->params);
}
}
catch (ComponentNotFound $ex) {
throw new SystemException(Lang::get('backend::lang.widget.not_bound', ['name'=>$this->getAjaxRequest()->component]));
}
catch (MassAssignmentException $ex) {
throw new SystemException(Lang::get('backend::lang.model.mass_assignment_failed', ['attribute' => $ex->getMessage()]));
}
catch (HandlerNameInvalid $ex) {
throw new ApplicationException(Lang::get('backend::lang.ajax_handler.invalid_name', ['name'=>$handler]));
}
catch (HandlerNotFound $ex) {
throw new ApplicationException(Lang::get('backend::lang.ajax_handler.not_found', ['name'=>e($handler)]));
}
}
catch (ValidationException $ex) {
Flash::error($ex->getMessage());
$response = ajax()->invalidFields($ex->errors());
}
catch (Throwable $ex) {
report($ex);
$response = ajax()->exception($ex);View on GitHub (pinned to b608633a7e)