{"record":{"id":"e2ca9b59181cb674","repo":"getgrav/grav","slug":"class-method-not-found-e2ca9b","errorCode":null,"errorMessage":"{class}::{method}() not found.","messagePattern":"(.+?)::(.+?)\\(\\) not found\\.","errorType":"exception","errorClass":"BadMethodCallException","httpStatus":null,"severity":"error","filePath":"system/src/Grav/Common/Page/Medium/Link.php","lineNumber":87,"sourceCode":"            'attributes' => $this->attributes,\n            'handler' => is_array($innerElement) ? 'element' : 'line',\n            'text' => $innerElement\n        ];\n    }\n\n    /**\n     * Forward the call to the source element\n     *\n     * @param string $method\n     * @return mixed\n     */\n    #[\\ReturnTypeWillChange]\n    public function __call($method, mixed $args)\n    {\n        $object = $this->source;\n        $callable = [$object, $method];\n        if (!is_callable($callable)) {\n            throw new BadMethodCallException($object::class . '::' . $method . '() not found.');\n        }\n\n        $object = call_user_func_array($callable, $args);\n        if (!$object instanceof MediaLinkInterface) {\n            // Don't start nesting links, if user has multiple link calls in his\n            // actions, we will drop the previous links.\n            return $this;\n        }\n\n        $this->source = $object;\n\n        return $object;\n    }\n}\n","sourceCodeStart":69,"sourceCodeEnd":102,"githubUrl":"https://github.com/getgrav/grav/blob/6040efed04efa69b8209448ed81308e7c24147c2/system/src/Grav/Common/Page/Medium/Link.php#L69-L102","documentation":"Error \"{class}::{method}() not found.\" thrown in getgrav/grav.","triggerScenarios":"Thrown at system/src/Grav/Common/Page/Medium/Link.php:87 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"6040efed04efa69b8209448ed81308e7c24147c2","analyzedAt":"2026-08-17T05:07:31.593Z","schemaVersion":2},"datasetVersion":"2026-08-17T09:17:11.063Z"}