OpenID Plugin issue?
Forum was chugging along quite happily. I hadn't made any changes whatsoever in the last couple of weeks. Yesterday, quite suddenly, users began reporting issues using the facebook and google authenticators. I tried google myself, and sure enough:
Invalid request. The error occurred on or near: /var/www/forum/plugins/OpenID/class.lightopenid.php 134: 135: protected function request($url, $method='GET', $params=array()) 136: { 137: if(!$this->hostExists($url)) { 138: throw new ErrorException('Invalid request.'); 139: } 140: 141: $params = http_build_query($params, '', '&'); 142: switch($method) { Backtrace: [/var/www/forum/plugins/OpenID/class.lightopenid.php:272] LightOpenID->request(); [/var/www/forum/plugins/OpenID/class.lightopenid.php:504] LightOpenID->discover(); [/var/www/forum/plugins/OpenID/class.openid.plugin.php:170] LightOpenID->authUrl(); [/var/www/forum/library/core/class.pluginmanager.php:713] OpenIDPlugin->EntryController_OpenID_Create(); [/var/www/forum/library/core/class.dispatcher.php:313] Gdn_PluginManager->CallNewMethod(); [/var/www/forum/index.php:53] Gdn_Dispatcher->Dispatch();
Best Answer
-
peregrine MVP
Underdog is pointing you how to debug and understand what is going on if you are interested.
the message says - if you read it.
The error occurred on or near:
/var/www/forum/plugins/OpenID/class.lightopenid.php
this is a possible place to start to debug. You could try protected function request($url, $method='GET', $params=array()) 136: { 137: if(!$this->hostExists($url)) { echo $url; or possibly (don't know which would work better) throw new ErrorException('Invalid request.' . $url);
apparently the host it is seeking doesn't exist.
I haven't studied the code - but if url is pointing to some other site and
they change their urls or there is a tcp/ip or dns problem - it seems
like a plausible error, without you changing or doing anythingI may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.
0
Answers
Focus on the piece of code above : ^^
if(!$this->hostExists($url)) {
There was an error rendering this rich post.
How so? I don't understand what would have just stopped working suddenly without me changing anything. I also don't know what that piece of code is checking for.
Underdog is pointing you how to debug and understand what is going on if you are interested.
the message says - if you read it.
The error occurred on or near:
/var/www/forum/plugins/OpenID/class.lightopenid.php
apparently the host it is seeking doesn't exist.
I haven't studied the code - but if url is pointing to some other site and
they change their urls or there is a tcp/ip or dns problem - it seems
like a plausible error, without you changing or doing anything
I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.
It was a dns issue.