我在一台主机上出错,而​​在另一台主机上出错

时间:2012-10-23 17:04:01

标签: php xml

可悲的是,一个插件给我带来了麻烦。它在一个网站上运行良好,但在另一个网站上给我一个错误。 这是错误:
simplexml_load_file()[function.simplexml-load-file]:http://steamcommunity.com/profiles/76561197971691194/?xml=1:1:解析器错误:文档为空

第116行的Steam / ControllerPublic / Register.php中的XenForo_Application :: handlePhpError()

如果我去那里,这就是代码:

// Get User Profile Data
$id = $session->get('steam_id');
$xml = simplexml_load_file("http://steamcommunity.com/profiles/{id}/?xml=1");
if(!empty($xml)) {
$username = $xml->steamID;
$avatar = $xml->avatarFull;

该链接有效,您可以尝试自己,让我们说到这里:steamcommunity.com/profiles/76561197971691194或http://steamcommunity.com/profiles/76561198041253738

真的需要帮助,这是阻止我启动网站的唯一因素!

1 个答案:

答案 0 :(得分:2)

这可能意味着您的主机阻止了出站HTTP请求 请他们停止,或找一个更好的主人。