Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issues #3

Closed
ragingdave opened this issue Jul 8, 2012 · 10 comments
Closed

Issues #3

ragingdave opened this issue Jul 8, 2012 · 10 comments
Assignees

Comments

@ragingdave
Copy link

Ran the install as outlined.
There is no logging of errors/debug info even though the file log file is web-writable.
any call to the controller hauth results in a 404.

And just a general question.....when is the config file used as it doesn't seem to be loaded anywhere.
Also, should there be a view file for this or does it just work?

Running Latest codeigniter.

@rfdeelstra
Copy link

You can try to debug within the catch statement in controllers > hauth.php with: echo $e->getMessage();
You probably have to config it correctly, for example, if you try to login with Facebook, you will receive the following message if you have not configured it correctly:
Your application id and secret are required in order to connect to Facebook.

@andacata
Copy link
Owner

Sorry for the delayed response. I lost my job and I have been out of the world for a while.

This library is a little glue dot between HybridAuth and CodeIgniter, so knowledge of both are required to avoid some problems.

In reference to your problem, I'll start answering your general question. This may lead us to the real problem.

The configuration file is located inside the folder where all the configuration files are stored in CodeIgniter: /application/config/

When a library is loaded, CodeIgniter looks for a file with the same name inside the config folder, passing it to the library class constructor (in this case the __construct method inside the HybridAuthLib class). See section "Passing Parameters When Initializing Your Class" here: http://codeigniter.com/user_guide/general/creating_libraries.html

Check if you have all the correct settings in the config file and then I'll continue investigating.

Best regards,
Angel.

@ghost ghost assigned andacata Jul 14, 2012
@ragingdave
Copy link
Author

Ok so stupid me set up routing where it blocked other controllers from working.....so at least it is semi-working however
now it seems to stop either mid processing or maybe I don't have something set-up right....now it hangs on example.com/hauth/endpoint/hauth/endpoint?hauth.start=Facebook&hauth.time=1344274282....
it has only a blank page and there are no errors in the log

@andacata
Copy link
Owner

andacata commented Aug 6, 2012

Inside the URL you attached, the /hauth/endpoint part is included
twice. Can you check this?

Angel-Daniel Calderón Tamayo
andoagatas@gmail.com
@andacata

De: DaveMC08
reply@reply.github.com
Enviado: lunes, 06 de agosto de 2012 19:35
Para: andacata andoagatas@gmail.com
Asunto: Re: [HybridIgniter] Issues (#3)
Ok so stupid me set up routing where it blocked other controllers from
working.....so at least it is semi-working however
now it seems to stop either mid processing or maybe I don't have
something set-up right....now it hangs on
example.com/hauth/endpoint/hauth/endpoint?hauth.start=Facebook&hauth.time=1344274282....
it has only a blank page and there are no errors in the log


Reply to this email directly or view it on GitHub:
#3 (comment)

@ragingdave
Copy link
Author

So Again..my fault not sure what I changed but a fresh copy of hybridigniter got the I think correct page....but something still seems wrong...I now get directed to
http://pissport.coxiedesigns.com/hauth/endpoint?hauth.start=Facebook&hauth.time=1344365889

but there is no login pop-up only a link to sourceforge.net for hybridauth
also to note I am getting this

INFO -- 136.183.182.72 -- 2012-08-07T12:58:40-07:00 -- Hybrid_Auth::authenticate( Facebook ), User not connected to the provider. Try to authenticate..

thanks for the help I know I have been somewhat of a pain

@ragingdave
Copy link
Author

also I think this is kind of the same problem as issue 1 however i get
ERROR - 2012-08-07 15:55:51 --> 404 Page Not Found --> hauth/endpoint&hauth.start=Facebook&hauth.time=1344380150
rather than just hauth/endpoint

@ragingdave
Copy link
Author

also here is I believe the relevant part of the log...notice the last 404 does not mention what was not found

DEBUG - 2012-08-07 19:24:24 --> Config Class Initialized
DEBUG - 2012-08-07 19:24:24 --> Hooks Class Initialized
DEBUG - 2012-08-07 19:24:24 --> Utf8 Class Initialized
DEBUG - 2012-08-07 19:24:24 --> UTF-8 Support Enabled
DEBUG - 2012-08-07 19:24:24 --> URI Class Initialized
DEBUG - 2012-08-07 19:24:24 --> Router Class Initialized
DEBUG - 2012-08-07 19:24:24 --> Output Class Initialized
DEBUG - 2012-08-07 19:24:24 --> Security Class Initialized
DEBUG - 2012-08-07 19:24:25 --> Input Class Initialized
DEBUG - 2012-08-07 19:24:25 --> Global POST and COOKIE data sanitized
DEBUG - 2012-08-07 19:24:25 --> Language Class Initialized
DEBUG - 2012-08-07 19:24:25 --> Loader Class Initialized
DEBUG - 2012-08-07 19:24:25 --> Helper loaded: url_helper
DEBUG - 2012-08-07 19:24:25 --> Database Driver Class Initialized
DEBUG - 2012-08-07 19:24:25 --> Session Class Initialized
DEBUG - 2012-08-07 19:24:25 --> Helper loaded: string_helper
DEBUG - 2012-08-07 19:24:25 --> Session routines successfully run
DEBUG - 2012-08-07 19:24:25 --> Controller Class Initialized
DEBUG - 2012-08-07 19:24:25 --> controllers.HAuth.login(Facebook) called
DEBUG - 2012-08-07 19:24:25 --> controllers.HAuth.login: loading HybridAuthLib
DEBUG - 2012-08-07 19:24:25 --> HybridAuthLib Class Initalized
DEBUG - 2012-08-07 19:24:25 --> controllers.HAuth.login: service Facebook enabled, trying to authenticate.
DEBUG - 2012-08-07 19:24:25 --> Config Class Initialized
DEBUG - 2012-08-07 19:24:25 --> Hooks Class Initialized
DEBUG - 2012-08-07 19:24:25 --> Utf8 Class Initialized
DEBUG - 2012-08-07 19:24:25 --> UTF-8 Support Enabled
DEBUG - 2012-08-07 19:24:25 --> URI Class Initialized
DEBUG - 2012-08-07 19:24:25 --> Router Class Initialized
DEBUG - 2012-08-07 19:24:25 --> Output Class Initialized
DEBUG - 2012-08-07 19:24:25 --> Security Class Initialized
DEBUG - 2012-08-07 19:24:25 --> Input Class Initialized
DEBUG - 2012-08-07 19:24:25 --> Global POST and COOKIE data sanitized
DEBUG - 2012-08-07 19:24:25 --> Language Class Initialized
DEBUG - 2012-08-07 19:24:25 --> Loader Class Initialized
DEBUG - 2012-08-07 19:24:25 --> Helper loaded: url_helper
DEBUG - 2012-08-07 19:24:25 --> Database Driver Class Initialized
DEBUG - 2012-08-07 19:24:25 --> Session Class Initialized
DEBUG - 2012-08-07 19:24:25 --> Helper loaded: string_helper
DEBUG - 2012-08-07 19:24:25 --> Session routines successfully run
DEBUG - 2012-08-07 19:24:25 --> Controller Class Initialized
DEBUG - 2012-08-07 19:24:25 --> controllers.HAuth.endpoint called.
INFO - 2012-08-07 19:24:25 --> controllers.HAuth.endpoint: $_REQUEST: Array
(
[/hauth/endpoint] =>
[ci_session] => a:5:{s:10:"session_id";s:32:"0bb630440e669c06643b612289b35c29";s:10:"ip_address";s:13:"98.117.160.43";s:10:"user_agent";s:106:"Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.1 (KHTML, like Gecko) Chrome/21.0.1180.60 Safari/537.1";s:13:"last_activity";i:1344392485;s:9:"user_data";s:0:"";}69d6e1b966c20cea79dfc65ee0c2d7d3
[PHPSESSID] => p4i5s9mdvpnpeh6dti5pje78f7
)

DEBUG - 2012-08-07 19:24:25 --> controllers.HAuth.endpoint: the request method is GET, copying REQUEST array into GET array.
DEBUG - 2012-08-07 19:24:25 --> controllers.HAuth.endpoint: loading the original HybridAuth endpoint script.
DEBUG - 2012-08-07 19:24:25 --> Config Class Initialized
DEBUG - 2012-08-07 19:24:25 --> Hooks Class Initialized
DEBUG - 2012-08-07 19:24:25 --> Utf8 Class Initialized
DEBUG - 2012-08-07 19:24:25 --> UTF-8 Support Enabled
DEBUG - 2012-08-07 19:24:25 --> URI Class Initialized
DEBUG - 2012-08-07 19:24:25 --> Router Class Initialized
DEBUG - 2012-08-07 19:24:25 --> Output Class Initialized
DEBUG - 2012-08-07 19:24:25 --> Security Class Initialized
DEBUG - 2012-08-07 19:24:25 --> Input Class Initialized
DEBUG - 2012-08-07 19:24:25 --> Global POST and COOKIE data sanitized
DEBUG - 2012-08-07 19:24:25 --> Language Class Initialized
DEBUG - 2012-08-07 19:24:25 --> Loader Class Initialized
DEBUG - 2012-08-07 19:24:25 --> Helper loaded: url_helper
DEBUG - 2012-08-07 19:24:25 --> Database Driver Class Initialized
DEBUG - 2012-08-07 19:24:25 --> Session Class Initialized
DEBUG - 2012-08-07 19:24:25 --> Helper loaded: string_helper
DEBUG - 2012-08-07 19:24:25 --> Session routines successfully run
DEBUG - 2012-08-07 19:24:25 --> Controller Class Initialized
ERROR - 2012-08-07 19:24:25 --> 404 Page Not Found -->

@ragingdave
Copy link
Author

I also was able to get this by having essentially index.php?/hauth/endpoint/.....

DEBUG - 2012-08-07 19:33:05 --> Config Class Initialized
DEBUG - 2012-08-07 19:33:05 --> Hooks Class Initialized
DEBUG - 2012-08-07 19:33:05 --> Utf8 Class Initialized
DEBUG - 2012-08-07 19:33:05 --> UTF-8 Support Enabled
DEBUG - 2012-08-07 19:33:05 --> URI Class Initialized
DEBUG - 2012-08-07 19:33:05 --> Router Class Initialized
DEBUG - 2012-08-07 19:33:05 --> Output Class Initialized
DEBUG - 2012-08-07 19:33:05 --> Security Class Initialized
DEBUG - 2012-08-07 19:33:05 --> Input Class Initialized
DEBUG - 2012-08-07 19:33:05 --> Global POST and COOKIE data sanitized
DEBUG - 2012-08-07 19:33:05 --> Language Class Initialized
DEBUG - 2012-08-07 19:33:05 --> Loader Class Initialized
DEBUG - 2012-08-07 19:33:05 --> Helper loaded: url_helper
DEBUG - 2012-08-07 19:33:05 --> Database Driver Class Initialized
DEBUG - 2012-08-07 19:33:05 --> Session Class Initialized
DEBUG - 2012-08-07 19:33:05 --> Helper loaded: string_helper
DEBUG - 2012-08-07 19:33:05 --> Session routines successfully run
DEBUG - 2012-08-07 19:33:05 --> Controller Class Initialized
ERROR - 2012-08-07 19:33:05 --> 404 Page Not Found -->
DEBUG - 2012-08-07 19:33:13 --> Config Class Initialized
DEBUG - 2012-08-07 19:33:13 --> Hooks Class Initialized
DEBUG - 2012-08-07 19:33:13 --> Utf8 Class Initialized
DEBUG - 2012-08-07 19:33:13 --> UTF-8 Support Enabled
DEBUG - 2012-08-07 19:33:13 --> URI Class Initialized
DEBUG - 2012-08-07 19:33:13 --> Router Class Initialized
DEBUG - 2012-08-07 19:33:13 --> Output Class Initialized
DEBUG - 2012-08-07 19:33:13 --> Security Class Initialized
DEBUG - 2012-08-07 19:33:13 --> Input Class Initialized
DEBUG - 2012-08-07 19:33:13 --> Global POST and COOKIE data sanitized
DEBUG - 2012-08-07 19:33:13 --> Language Class Initialized
DEBUG - 2012-08-07 19:33:13 --> Loader Class Initialized
DEBUG - 2012-08-07 19:33:13 --> Helper loaded: url_helper
DEBUG - 2012-08-07 19:33:13 --> Database Driver Class Initialized
DEBUG - 2012-08-07 19:33:13 --> Session Class Initialized
DEBUG - 2012-08-07 19:33:13 --> Helper loaded: string_helper
DEBUG - 2012-08-07 19:33:13 --> Session routines successfully run
DEBUG - 2012-08-07 19:33:13 --> Controller Class Initialized
DEBUG - 2012-08-07 19:33:13 --> controllers.HAuth.endpoint called.
INFO - 2012-08-07 19:33:13 --> controllers.HAuth.endpoint: $_REQUEST: Array
(
[/hauth/endpoint?hauth_start] => Facebook
[hauth_time] => 1344393096
[PHPSESSID] => p4i5s9mdvpnpeh6dti5pje78f7
[ci_session] => a:5:{s:10:"session_id";s:32:"9d4f4e827484717fa4fa89a235eab3ec";s:10:"ip_address";s:13:"98.117.160.43";s:10:"user_agent";s:106:"Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.1 (KHTML, like Gecko) Chrome/21.0.1180.60 Safari/537.1";s:13:"last_activity";i:1344392961;s:9:"user_data";s:0:"";}d27b4cd635596ca8ee405a4686fd2cb0
)

DEBUG - 2012-08-07 19:33:13 --> controllers.HAuth.endpoint: the request method is GET, copying REQUEST array into GET array.
DEBUG - 2012-08-07 19:33:13 --> controllers.HAuth.endpoint: loading the original HybridAuth endpoint script.
DEBUG - 2012-08-07 19:33:14 --> Config Class Initialized
DEBUG - 2012-08-07 19:33:14 --> Hooks Class Initialized
DEBUG - 2012-08-07 19:33:14 --> Utf8 Class Initialized
DEBUG - 2012-08-07 19:33:14 --> UTF-8 Support Enabled
DEBUG - 2012-08-07 19:33:14 --> URI Class Initialized
DEBUG - 2012-08-07 19:33:14 --> Router Class Initialized
DEBUG - 2012-08-07 19:33:14 --> Output Class Initialized
DEBUG - 2012-08-07 19:33:14 --> Security Class Initialized
DEBUG - 2012-08-07 19:33:14 --> Input Class Initialized
DEBUG - 2012-08-07 19:33:14 --> Global POST and COOKIE data sanitized
DEBUG - 2012-08-07 19:33:14 --> Language Class Initialized
DEBUG - 2012-08-07 19:33:14 --> Loader Class Initialized
DEBUG - 2012-08-07 19:33:14 --> Helper loaded: url_helper
DEBUG - 2012-08-07 19:33:14 --> Database Driver Class Initialized
DEBUG - 2012-08-07 19:33:14 --> Session Class Initialized
DEBUG - 2012-08-07 19:33:14 --> Helper loaded: string_helper
DEBUG - 2012-08-07 19:33:14 --> Session routines successfully run
DEBUG - 2012-08-07 19:33:14 --> Controller Class Initialized
ERROR - 2012-08-07 19:33:14 --> 404 Page Not Found -->

@ragingdave
Copy link
Author

Figured out the issue was godaddy screwing up the query string and request and get vars.....sent over a pull request for the fix

@andacata
Copy link
Owner

andacata commented Aug 9, 2012

Sorry for my poor help, lately I'm too out. Thanks for sharing the find.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants