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

Unable to signin with Yahoo #19

Open
shanker007 opened this issue Jun 4, 2013 · 12 comments
Open

Unable to signin with Yahoo #19

shanker007 opened this issue Jun 4, 2013 · 12 comments

Comments

@shanker007
Copy link

Hi
am trying to log in with Yahoo, initially i got the wrong credentials issue, after googling i
found this link
http://hybridauth.sourceforge.net/userguide/tuts/specific-provider-wrapper.html

and used Yahoo.php from the additional providers package and sorted that issue.

Now i am facing the following issue "Sorry! There is an error with the request we received from the website "

capture

Also for some reason, i get errors when i enable logging, so logs too... :(

Can Some one please guide me through this?

I would happy to provide any additional information if required.

Regards

@andacata
Copy link
Owner

andacata commented Jun 8, 2013

Have you tried your configuration with a clean installation of HybridAuth (without CodeIgniter) ?

@shanker007
Copy link
Author

Hey thank you for responding...
But i have sorted the issue, 2 day back. Sorry was busy in meeting that projects (already exceeded) deadline, that i could not post my solution here.

Yes, i did try a clean install of hybridauth, without CodeIgniter and it was working fine. So i was assured that HybridAuth was fine and the issue is some where else. Here is my solution:

Since i had used Yahoo.php from the additional service providers package (and not the default one), i had also used the new configuration code provided in the above mentioned URL. After which the above said error appeared.

So I just put back the configuration file back to the original state (as it is the HybridAuth clean install) and it started working fine.

So now its a combination of Default configuration and the Additional provider file for Yahoo, which is working for me (i was actually surprised :) ).

I am not sure if this is the correct approach to the issue. Hence please suggest me if you have a better/correct solution.

Thanks and regards

Shanker

@andacata
Copy link
Owner

Congratulations. I'm sorry but I'm bringing to life my own project, and I haven't much time.

Can you post your final config file?

I'll try to resolve this problem.

Thanks.

@shanker007
Copy link
Author

Hey am sorry,

It seems to have broken again when i moved the project from my staging to production folder on the same server.
Now am back to square one. i am getting the above error....

I am trying my best to get it back in shape as soon as possible. Please help me with your suggestions

@andacata
Copy link
Owner

Ok, let's start from the beginning.

The logs are working properly?

@shanker007
Copy link
Author

No the logs were the first to fail :(
i had to disable logs for hybridauth to start working. Will get you the exact error in few mins

@shanker007
Copy link
Author

Hi,

Exception: DateTime::__construct(): It is not safe to rely on the system's timezone settings. You are required to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'UTC' for 'UTC/0.0/no DST' instead i received the following error when i enabled logging

#0 /var/www/html/ashwas/application/third_party/hybridauth/Hybrid/Logger.php(45): DateTime->__construct()
#1 /var/www/html/ashwas/application/third_party/hybridauth/Hybrid/Auth.php(99): Hybrid_Logger::info('Enter Hybrid_Au...')
#2 /var/www/html/ashwas/application/third_party/hybridauth/Hybrid/Auth.php(39): Hybrid_Auth::initialize(Array)
#3 /var/www/html/ashwas/application/libraries/HybridAuthLib.php(14): Hybrid_Auth->__construct(Array)
#4 /var/www/html/ashwas/system/core/Loader.php(1095): HybridAuthLib->__construct(Array)
#5 /var/www/html/ashwas/system/core/Loader.php(975): CI_Loader->_ci_init_class('HybridAuthLib', '', NULL, NULL)
#6 /var/www/html/ashwas/system/core/Loader.php(216): CI_Loader->_ci_load_class('HybridAuthLib', NULL, NULL)
#7 /var/www/html/ashwas/application/controllers/hauth.php(363): CI_Loader->library('HybridAuthLib')
#8 [internal function]: HAuth->widget()
#9 /var/www/html/ashwas/system/core/CodeIgniter.php(359): call_user_func_array(Array, Array)
#10 /var/www/html/ashwas/index.php(202): require_once('/var/www/html/a...')
#11 {main}

@andacata
Copy link
Owner

Here is a thread related: http://stackoverflow.com/questions/6032660/php-it-is-not-safe-to-rely-on-the-systems-timezone-settings

BTW, the file application/logs/hybridauth.log exists and has content?

@shanker007
Copy link
Author

Hey thanks
i got the logging to work.

Apart from setting the timezone in php.ini, i also had to comment the following line from Logger.php
$datetime->setTimezone( $UTC );
to get the Logging to work.

You can find my log in the following link :: http://pastebin.com/1mLZxYVd

Thanks and regards
Shanker

@shanker007
Copy link
Author

Hey am really sorry to trouble you again...
Can you please help me with some suggestions on the Yahoo issue...?

@andacata
Copy link
Owner

I'll take another look tomorrow, right now I can't. I'm sorry not having answered before, but I was looking at the log and found nothing strange. On the other hand, I can't test against Yahoo because now all new accounts authenticate through OAuth.

@andacata
Copy link
Owner

Have you tried using the original provider for Yahoo?
Have you checked if your Yahoo account is authenticating via OpenID or via OAuth?

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

No branches or pull requests

2 participants