我检查了我的Apache的错误日志在我的WordPress网站,每次我更新一篇文章(选择帖子,点击'更新'),我得到这个错误:WordPress的PHP警告:parse_url(:/ /:80 /博客/ xmlrpc.php)
[Wed Apr 06 11:35:21 2011] [error] [client 127.0.0.1] PHP Warning: parse_url(://:80/blog/xmlrpc.php): Unable to parse URL in /home/webuser/public_html/domain.com/public/wp-includes/class-http.php on line 241
它看起来没有得到一个有效的URL传递给parse_url函数。任何人都知道我应该在哪里解决这个问题?
该网站似乎加载和更新很好,但这个错误让我担心。感谢您的帮助!
编辑1:我查过线241 /wp-includes/class-http.php和下面的代码:
236 // Allow plugins to short-circuit the request
237 $pre = apply_filters('pre_http_request', false, $r, $url);
238 if (false !== $pre)
239 return $pre;
240
241 $arrURL = parse_url($url);
ehm ...看241'上的'/home/webuser/public_html/domain.com/public/wp-includes/class-http.php? – KingCrunch 2011-04-06 17:03:26
在访问日志中查找相同的时间戳(在一秒或两秒钟内)以查找导致错误的请求的URL。应该让你知道在哪里看。 – 2011-04-06 17:04:00
@King:这就是错误记录的地方,但它只是一个处理函数,并且其他地方生成了错误的URL。 – 2011-04-06 17:04:33