getgrav/grav · error · BadMethodCallException

{class}::{method}() not found.

Error message

{class}::{method}() not found.

What it means

Error "{class}::{method}() not found." thrown in getgrav/grav.

Source

Thrown at system/src/Grav/Common/Media/Traits/ThumbnailMediaTrait.php:141

     * Bubble a function call up to either the superclass function or the parent Medium instance
     *
     * @param  string  $method
     * @param  array  $arguments
     * @param  bool $testLinked
     * @return mixed
     */
    protected function bubble($method, array $arguments = [], $testLinked = true)
    {
        if (!$testLinked || $this->linked) {
            $parent = $this->parent;
            if (null === $parent) {
                return $this;
            }

            $closure = [$parent, $method];

            if (!is_callable($closure)) {
                throw new BadMethodCallException($parent::class . '::' . $method . '() not found.');
            }

            return $closure(...$arguments);
        }

        return parent::{$method}(...$arguments);
    }
}

View on GitHub (pinned to 6040efed04)

When it happens

Trigger: Thrown at system/src/Grav/Common/Media/Traits/ThumbnailMediaTrait.php:141 when the library encounters an invalid state.

Common situations: See trigger scenarios.


AI-assisted analysis of getgrav/grav@6040efed04 (2026-08-17). Data as JSON: /api/errors/57fa8e907c18dba9. Report an issue: GitHub.