{"record":{"id":"73275929a3e9e0c1","repo":"typecho/typecho","slug":"16","errorCode":"16","errorMessage":"源地址服务器错误","messagePattern":"源地址服务器错误","errorType":"exception","errorClass":"IXR\\Exception","httpStatus":null,"severity":"error","filePath":"var/Widget/XmlRpc.php","lineNumber":1678,"sourceCode":"\n    /**\n     * pingbackPing\n     *\n     * @param string $source\n     * @param string $target\n     * @return int\n     * @throws \\Exception\n     */\n    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')","sourceCodeStart":1660,"sourceCodeEnd":1696,"githubUrl":"https://github.com/typecho/typecho/blob/56f4c6f33955a87969c399b5d5912d7f9fd7347c/var/Widget/XmlRpc.php#L1660-L1696","documentation":"Error \"源地址服务器错误\" thrown in typecho/typecho.","triggerScenarios":"Thrown at var/Widget/XmlRpc.php:1678 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"}