octobercms/october · error · SystemException
Action is not found in the controller
Error message
Action %s is not found in the controller %s
What it means
Thrown by execPageAction when the resolved action name does not exist as a method on the backend controller (actionExists returns false). In debug mode this surfaces as a detailed exception; it means the URL segment mapped to an action the controller class does not define.
Solutions
- Add the missing public action method to the controller class
- Check the URL/route spelling for the action segment
- Ensure the method is public and not named with a reserved prefix, and that the controller is the intended one for the route
Defensive patterns
Strategy: validation
When it happens
Trigger: Thrown at modules/backend/classes/Controller.php:401 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/93e8ef202fcecaac.
Report an issue: GitHub.
Appendix: source
Thrown at modules/backend/classes/Controller.php:401
}
$this->suppressView = true;
$this->execPageAction($this->action, $this->params);
}
/**
* This method is used internally.
* Invokes the controller action and loads the corresponding view.
* @param string $actionName Specifies a action name to execute.
* @param array $parameters A list of the action parameters.
*/
protected function execPageAction($actionName, $parameters)
{
$result = null;
if (!$this->actionExists($actionName)) {
if (System::checkDebugMode()) {
throw new SystemException(sprintf(
"Action %s is not found in the controller %s",
$actionName,
get_class($this)
));
}
else {
Response::make(View::make('backend::404'), 404);
}
}
// Execute the action
$result = $this->makeCallMethod($this, $actionName, $parameters);
// Expecting \Response and \RedirectResponse
if ($result instanceof \Symfony\Component\HttpFoundation\Response) {
return $result;
}
View on GitHub (pinned to b608633a7e)