Please upgrade here. These earlier versions are no longer being updated and have security issues.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.

OpenID Plugin issue?

edited June 2012 in Vanilla 2.0 - 2.8

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

  • peregrineperegrine MVP
    edited June 2012 Answer ✓

    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 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.

Answers

  • Chris_Withers said:
    Invalid request. 137: if(!$this->hostExists($url)) { 138: throw new ErrorException('Invalid request.'); 139: }

    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.

  • peregrineperegrine MVP
    edited June 2012 Answer ✓

    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 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.

Sign In or Register to comment.