突然之间,我得到了使用Light的错误消息。
致命错误:默认异常'ErrorException‘与消息’找不到服务器!‘在/home/a3422801/public_html/LoginAssignment/php/openid.php:463堆栈跟踪中:#0 /home/a3422801/public_html/LoginAssignment/php/openid.php(595):LightOpenID->/home/a3422801/public_html/LoginAssignment/php/openid.php(595):() #1 /home/a3422801/public_html/LoginAssignment/index.php(9):LightOpenID->authUrl() #2 {main}抛入第463行的/home/a3422801/public_html/LoginAssignment/php/openid.php中
...and -- openid.php中相关代码的小片段
if ($server) {
# We found an OpenID2 OP Endpoint
if ($delegate) {
# We have also found an OP-Local ID.
$this->identity = $delegate;
}
$this->server = $server;
return $server;
}
throw new ErrorException('No servers found!');我不知道问题出在哪里--这是最近的问题。有没有人知道OpenID最近发生了一些变化。我很乐意提供更多所需的代码。我是新手登录和PHP一般,所以我道歉,如果这是非常含糊的。
这个谷歌登录与一个FB登录相结合,如果这有任何影响-但正如我说的,这是正确的运作。
发布于 2012-06-11 07:51:09
我也遇到了同样的问题,并通过比较我使用的OpenID URL和StackOverflow上的URL解决了这个问题。原来我没有使用https。直到最近,这还不是一个问题,但现在似乎是必要的。
因此,请确保您使用的是以下URL:https://www.google.com/accounts/o8/id
在改变这一点后,它在我的网站上再次工作。
https://stackoverflow.com/questions/10904117
复制相似问题