Форуми / Cotonti / Extensions / HybridAuth: error on reinstall

pieter
#1 29.12.2012 08:46

I installed HybridAuth on my site. And he kept saying that the userID was refused. For Facebook and Google. I'm sure they were ok. So I tried to uninstall the plugin and reinstall. But now the tags are visible and not their output.

What can this be? How to solve? Do I need to delete something in the DB?

 

Why was facebook telling me the userID was refused?
Is it because before I installed it also on another site without problems?

... can we help you ...
Trustmaster
#2 29.12.2012 11:06

Facebook might indeed be buggy in HybridAuth, I had it one one host whereas it worked fine on the other. I fixed it by updating Facebook SDK bundled with the plugin, so it's quite a surprise if it is the same bug again.

But I haven't heard of any problems with Google. Have you created another Client ID for this site? Google Client IDs and Facebook Apps cannot be shared among sites.

May the Source be with you!
Kingsley
#3 29.12.2012 14:49

also; when unlinking it directs you to an empty page. thought u should know..

pieter
#4 29.12.2012 16:55

I created new client-id's for facebook and google:

Error of facebook:

Fatal error: Uncaught exception 'Exception' with message 'Authentification failed! Facebook returned an invalide user id.' in /home/k3098kru/public_html/plugins/hybridauth/lib/Hybrid/Auth.php:156 Stack trace: #0 /home/k3098kru/public_html/plugins/hybridauth/lib/Hybrid/Auth.php(39): Hybrid_Auth::initialize(Array) #1 /home/k3098kru/public_html/plugins/hybridauth/hybridauth.php(109): Hybrid_Auth->__construct(Array) #2 /home/k3098kru/public_html/system/plugin.php(99): include('/home/k3098kru/...') #3 /home/k3098kru/public_html/index.php(122): require_once('/home/k3098kru/...') #4 {main} thrown in /home/k3098kru/public_html/plugins/hybridauth/lib/Hybrid/Auth.php on line 156

Error on google:


Fout:redirect_uri_mismatch

The redirect URI in the request: http://www.kruisstraat89.be/./plugins/hybridauth/lib/?hauth.done=Google did not match a registered redirect URI

 

... can we help you ...
Trustmaster
#5 30.12.2012 07:59

The Google one is easy to fix: replace './plugins' with just 'plugins' in $cfg['plugins_dir'] in config.php.

May the Source be with you!
pieter
#6 30.12.2012 09:21

I changed that, and the problem for facebook disappeared also.

The ./plugins in config, is it wrong for everyone, or is it a part from previous versions?

 

Thanks.

 

... can we help you ...
Trustmaster
#7 30.12.2012 11:38

It was the default format of directory configs in Genoa, now it is superseded by paths without "./".

May the Source be with you!