octobercms/october · error · ApplicationException

Invalid AJAX handler name: :name.

Error message

Invalid AJAX handler name: :name.

What it means

Error "Invalid AJAX handler name: :name." thrown in octobercms/october.

Source

Thrown at modules/backend/classes/Controller.php:552

                 *         }
                 *     });
                 *
                 */
                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);
        }

        if ($this->hasAssetsDefined()) {
            foreach ($this->getAssetPathsWithAttributes() as $type => $paths) {
                $response->asset($type, $paths);
            }

View on GitHub (pinned to b608633a7e)

When it happens

Trigger: Thrown at modules/backend/classes/Controller.php:552 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/d0df7aa0e18b2a36. Report an issue: GitHub.