Welcome Guest, Not a member yet? Register   Sign In
ExtID - External Identification Library
#11

[eluser]SpaceCoder[/eluser]
If somebody got this error while Twitter auth:

Code:
A PHP Error was encountered
Severity: Notice
Message: Undefined index: auth_type
Filename: libraries/ExtID.php
Line Number: 538


Just set auth_type in config:

Code:
$config['default']['twitter']    = array(
    'auth_type' => 'twitter',
    'app_id' => 'SDffZWOXcecDFydWfZhQ',
    'secret' => 'U8uOPj1exf3Oxpyhhb6dHC0W6gJwd9mkGiGY2q6Y0Go'
);

And if you get Facebook error:
Code:
Fatal error: Uncaught CurlException: 77: error setting certificate verify locations: CAfile: /Users/kir/Sites/narayone/system/application/libraries/extid/oauth-sdks/fb_ca_chain_bundle.crt CApath: none thrown in /Users/kir/Sites/narayone/system/application/libraries/extid/oauth-sdks/facebook.php on line 622

Put the fb_ca_chain_bundle.crt file from facebook php-sdk (https://github.com/facebook/php-sdk/) to application/libraries/extid/oauth-sdks =)

kbjr, please fix it!
#12

[eluser]SpaceCoder[/eluser]
Google Account and Yahoo doesn't works.

Fatal error: Call to a member function addExtension() on a non-object in /Users/kir/Sites/narayone/system/application/libraries/extid/OpenID.php on line 638

Can somebody help me?
#13

[eluser]kbjr[/eluser]
[quote author="SpaceCoder" date="1295058696"]If somebody got this error while Twitter auth:

Code:
A PHP Error was encountered
Severity: Notice
Message: Undefined index: auth_type
Filename: libraries/ExtID.php
Line Number: 538


Just set auth_type in config:

Code:
$config['default']['twitter']    = array(
    'auth_type' => 'twitter',
    'app_id' => 'SDffZWOXcecDFydWfZhQ',
    'secret' => 'U8uOPj1exf3Oxpyhhb6dHC0W6gJwd9mkGiGY2q6Y0Go'
);
[/quote]

I can't really think how this could be caused; The auth_type value is hard-coded in the file, but I'll look into it.

[quote author="SpaceCoder" date="1295058696"]And if you get Facebook error:
Code:
Fatal error: Uncaught CurlException: 77: error setting certificate verify locations: CAfile: /Users/kir/Sites/narayone/system/application/libraries/extid/oauth-sdks/fb_ca_chain_bundle.crt CApath: none thrown in /Users/kir/Sites/narayone/system/application/libraries/extid/oauth-sdks/facebook.php on line 622

Put the fb_ca_chain_bundle.crt file from facebook php-sdk (https://github.com/facebook/php-sdk/) to application/libraries/extid/oauth-sdks =)

kbjr, please fix it![/quote]

Thanks, I added the fb_ca_chain_bundle.crt file.
#14

[eluser]SpaceCoder[/eluser]
kbjr, what to do with this? (Google and Yahoo auth)

Fatal error: Call to a member function addExtension() on a non-object in /Users/kir/Sites/narayone/system/application/libraries/extid/OpenID.php on line 638
#15

[eluser]kbjr[/eluser]
[quote author="SpaceCoder" date="1295096121"]kbjr, what to do with this? (Google and Yahoo auth)

Fatal error: Call to a member function addExtension() on a non-object in /Users/kir/Sites/narayone/system/application/libraries/extid/OpenID.php on line 638[/quote]

I don't know, I've never seen this before. The dev copy I'm running does google flawlessly, so I think it has to be some config or implementation problem. Can you give me the config you're using and the controller file?

Edit:
Also, you can try updating to the latest dev (https://github.com/kbjr/ExtID/tree/dev) copy to see if maybe it was being caused by a bug I've already fixed.
#16

[eluser]SpaceCoder[/eluser]
Controller: http://dl.dropbox.com/u/904099/auth.php
Config: http://dl.dropbox.com/u/904099/extid.php

I'm going to install dev version right now...
#17

[eluser]kbjr[/eluser]
well, after making a few small changes to get it up to par with the dev version, the files you gave me worked fine with google, so hopefully it was just a bug in the copy you had. here are the updated config and controller files for the dev copy:

http://dl.dropbox.com/u/10210582/auth.php
http://dl.dropbox.com/u/10210582/extid.php
#18

[eluser]SpaceCoder[/eluser]
Thanks!

I've researched this problem. with dev version

Code:
Fatal error: Call to a member function addExtension() on a non-object in /Users/kir/Sites/123/system/application/libraries/extid/OpenID.php on line 638

Google and Yahoo authorization works well only on the real production server. Installing it on Mac or Windows have no effect.

Demo version: http://188.127.241.110/auth/




Theme © iAndrew 2016 - Forum software by © MyBB