andacata / HybridIgniter

HybridAuth - CodeIgniter integration
139 stars 84 forks source link

404 Page Not Found #8

Closed emulsion-io closed 11 years ago

emulsion-io commented 11 years ago

I use the last version of this code,

But i had a bug, the url : monsite.fr/hauth/login/Facebook

I have this error : 404 Page Not Found

Ii try to add a route, but this didnt work .

The log sees nothing :

INFO -- 89.91.233.34 -- 2012-12-18T17:16:37+01:00 -- Hybrid_Auth::initialize(). Hybrid_Auth called from: http://gs.prodaction.pro/hauth/login/Facebook
DEBUG -- 89.91.233.34 -- 2012-12-18T17:16:37+01:00 -- Hybrid_Auth initialize. dump current session:  -- 
INFO -- 89.91.233.34 -- 2012-12-18T17:16:37+01:00 -- Hybrid_Auth initialize: check if any error is stored on the endpoint...
INFO -- 89.91.233.34 -- 2012-12-18T17:16:37+01:00 -- Hybrid_Auth initialize: no error found. initialization succeed.
andacata commented 11 years ago

It's a new installation or an upgrade from previous version of HybridIgniter?

It's failing only with Facebook or with all of providers?

emulsion-io commented 11 years ago

It's a new installation of HybridIgniter.

With all of providers.

andacata commented 11 years ago

Have you read the https://github.com/andacata/HybridIgniter/issues/1 issue?

emulsion-io commented 11 years ago

If i try : /hauth/login/Facebook

DEBUG - 2012-12-18 19:00:19 --> controllers.HAuth.login(OpenID) called
DEBUG - 2012-12-18 19:00:19 --> controllers.HAuth.login: loading HybridAuthLib
DEBUG - 2012-12-18 19:00:19 --> Helper loaded: url_helper
DEBUG - 2012-12-18 19:00:19 --> HybridAuthLib Class Initalized
ERROR - 2012-12-18 19:00:19 --> 404 Page Not Found --> /hauth/login/OpenID

If i try directly : /hauth/endpoint

DEBUG - 2012-12-18 19:04:26 --> Controller Class Initialized
DEBUG - 2012-12-18 19:04:26 --> controllers.HAuth.endpoint called.
INFO  - 2012-12-18 19:04:26 --> controllers.HAuth.endpoint: $_REQUEST: Array
(
)

DEBUG - 2012-12-18 19:04:26 --> controllers.HAuth.endpoint: the request method is GET, copying REQUEST array into GET array.
DEBUG - 2012-12-18 19:04:26 --> controllers.HAuth.endpoint: loading the original HybridAuth endpoint script.

If i try directly for test : /hauth/endpoint?hauth.start=facebook&hauth.time=1335053295

DEBUG - 2012-12-18 19:06:38 --> controllers.HAuth.endpoint called.
INFO  - 2012-12-18 19:06:38 --> controllers.HAuth.endpoint: $_REQUEST: Array
(
    [hauth_start] => facebook
    [hauth_time] => 1335053295
)

DEBUG - 2012-12-18 19:06:38 --> controllers.HAuth.endpoint: the request method is GET, copying REQUEST array into GET array.
DEBUG - 2012-12-18 19:06:38 --> controllers.HAuth.endpoint: loading the original HybridAuth endpoint script.
andacata commented 11 years ago

It's very confusing to me that if your request is "/hauth/login/Facebook" the log is saying "controllers.HAuth.login(OpenID) called"

andacata commented 11 years ago

I've found the bug: using the deprecated serviceEnabled method, and this method were buggy.

Try again and tell me if it works.

Sorry for the inconvenience.

emulsion-io commented 11 years ago

it works.

Problem solved.

andacata commented 11 years ago

Thanks a lot.