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/Page/Medium/Link.php:87
'attributes' => $this->attributes,
'handler' => is_array($innerElement) ? 'element' : 'line',
'text' => $innerElement
];
}
/**
* Forward the call to the source element
*
* @param string $method
* @return mixed
*/
#[\ReturnTypeWillChange]
public function __call($method, mixed $args)
{
$object = $this->source;
$callable = [$object, $method];
if (!is_callable($callable)) {
throw new BadMethodCallException($object::class . '::' . $method . '() not found.');
}
$object = call_user_func_array($callable, $args);
if (!$object instanceof MediaLinkInterface) {
// Don't start nesting links, if user has multiple link calls in his
// actions, we will drop the previous links.
return $this;
}
$this->source = $object;
return $object;
}
}
View on GitHub (pinned to 6040efed04)
When it happens
Trigger: Thrown at system/src/Grav/Common/Page/Medium/Link.php:87 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/e2ca9b59181cb674.
Report an issue: GitHub.