{"record":{"id":"60769f68b23ef9f7","repo":"typecho/typecho","slug":"33","errorCode":"33","errorMessage":"这个目标地址不存在","messagePattern":"这个目标地址不存在","errorType":"exception","errorClass":"IXR\\Exception","httpStatus":null,"severity":"error","filePath":"var/Widget/XmlRpc.php","lineNumber":1687,"sourceCode":"    public function pingbackPing(string $source, string $target): int\n    {\n        /** 检查目标地址是否正确*/\n        $pathInfo = Common::url(substr($target, strlen($this->options->index)), '/');\n        $post = Router::match($pathInfo);\n\n        /** 检查源地址是否合法 */\n        $params = parse_url($source);\n        if (false === $params || !in_array($params['scheme'], ['http', 'https'])) {\n            throw new Exception(_t('源地址服务器错误'), 16);\n        }\n\n        if (!Common::checkSafeHost($params['host'])) {\n            throw new Exception(_t('源地址服务器错误'), 16);\n        }\n\n        /** 这样可以得到cid或者slug*/\n        if (!($post instanceof Archive) || !$post->have() || !$post->is('single')) {\n            throw new Exception(_t('这个目标地址不存在'), 33);\n        }\n\n        if ($post) {\n            /** 检查是否可以ping*/\n            if ($post->allowPing) {\n\n                /** 现在可以ping了，但是还得检查下这个pingback是否已经存在了*/\n                $pingNum = $this->db->fetchObject($this->db->select(['COUNT(coid)' => 'num'])\n                    ->from('table.comments')\n                    ->where(\n                        'table.comments.cid = ? AND table.comments.url = ? AND table.comments.type <> ?',\n                        $post->cid,\n                        $source,\n                        'comment'\n                    ))->num;\n\n                if ($pingNum <= 0) {\n                    try {","sourceCodeStart":1669,"sourceCodeEnd":1705,"githubUrl":"https://github.com/typecho/typecho/blob/56f4c6f33955a87969c399b5d5912d7f9fd7347c/var/Widget/XmlRpc.php#L1669-L1705","documentation":"Error \"这个目标地址不存在\" thrown in typecho/typecho.","triggerScenarios":"Thrown at var/Widget/XmlRpc.php:1687 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":"56f4c6f33955a87969c399b5d5912d7f9fd7347c","analyzedAt":"2026-08-21T01:52:37.175Z","schemaVersion":2},"datasetVersion":"2026-08-21T03:17:12.404Z"}