octobercms/october · error · BadMethodCallException

cms::lang.component.method_not_found

Error message

cms::lang.component.method_not_found

What it means

Error "cms::lang.component.method_not_found" thrown in octobercms/october.

Source

Thrown at modules/cms/classes/ComponentBase.php:367

    /**
     * __call dynamically handles calls into the controller instance.
     * @param string $method
     * @param array $parameters
     * @return mixed
     */
    public function __call($method, $parameters)
    {
        try {
            return parent::__call($method, $parameters);
        }
        catch (BadMethodCallException $ex) {
        }

        if (method_exists($this->controller, $method)) {
            return call_user_func_array([$this->controller, $method], $parameters);
        }

        throw new BadMethodCallException(Lang::get('cms::lang.component.method_not_found', [
            'name' => get_class($this),
            'method' => $method
        ]));
    }

    /**
     * __toString returns the component's alias, used by __SELF__
     */
    public function __toString()
    {
        return $this->alias;
    }

    //
    // Internals
    //

    /**

View on GitHub (pinned to b608633a7e)

When it happens

Trigger: Thrown at modules/cms/classes/ComponentBase.php:367 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/14ae915bde1787a5. Report an issue: GitHub.