donjakobo / A3M

A3M - Bootstrapped - A CodeIgniter OpenID/Oauth boilerplate library utilizing Twitter Bootstrap UI
Other
107 stars 53 forks source link

404 Error on Social Accounts #128

Closed gelinger777 closed 8 years ago

gelinger777 commented 9 years ago

When We try to go into social account login after activation in /account/account.php

we get 404 error.

I have tried to

*/ function provider_enabled($provider) { phpinfo();

    print_r($this->setup);
    die();
    return isset($this->setup['providers'][$provider]) && $this->setup['providers'][$provider]['enabled'];
}

in hybrid_auth lib in /libraries folder, and it seems assignment of array is not happening fully and from the config file only the $config['third_party_auth'] = array( // set on "base_url" the relative url that point to HybridAuth Endpoint 'base_url' => '/account/connect_end/',

The base URL part is taken, and the part

"providers" =>

is totally ignored.

How we can overcome this issue?

Best regards

samuelsh commented 9 years ago

@maridansoft Hi, I had the same issue. Following changes in config.php fixed it:

$autoload['packages'] = array(APPPATH.'third_party/Hybrid'); ... $autoload['config'] = array("account/account.php");

gelinger777 commented 9 years ago

Still An uncaught Exception was encountered

Type: Exception

Message: Authentication failed! Twitter returned an error. 401 Unauthorized.

Filename: /var/www/admin/data/www/offerhub.ovh/application/third_party/Hybrid/Auth.php

Line Number: 158

Backtrace:

File: /var/www/admin/data/www/offerhub.ovh/application/third_party/Hybrid/Auth.php Line: 41 Function: initialize

File: /var/www/admin/data/www/offerhub.ovh/application/libraries/account/Hybrid_auth_lib.php Line: 40 Function: __construct

File: /var/www/admin/data/www/offerhub.ovh/application/controllers/account/Connect_end.php Line: 22 Function: __construct

File: /var/www/admin/data/www/offerhub.ovh/index.php Line: 292 Function: require_once

gelinger777 commented 9 years ago

It seems a twitter server time issue, which I cant figure out how to fix :(

StorytellerCZ commented 9 years ago

There was a fix for Twitter recently in HybridAuth, will be included in the next pull. If that doesn't solve the issue then we'll have to look again.

gelinger777 commented 9 years ago

would it be also in 3rd beta?

StorytellerCZ commented 9 years ago

Eventually. Tonight I'm releasing new version of HybridAuth and if time permits it will be there tonight.

gelinger777 commented 9 years ago

You rock man!

gelinger777 commented 9 years ago

@AdwinTrave still after fresh install the 404 thing is still there.

StorytellerCZ commented 9 years ago

Back from the hell of finals. I will be looking into this in the coming weeks.

gelinger777 commented 9 years ago

any news on this?

StorytellerCZ commented 8 years ago

Looking at the code it looks like that the library thinks that the given provider is not enabled. Which means that the setup is not happening correctly.

StorytellerCZ commented 8 years ago

OK, found the issue and fixed it!