li3_socialauth icon indicating copy to clipboard operation
li3_socialauth copied to clipboard

Have error with Twitter adapter

Open minhna opened this issue 11 years ago • 3 comments

Hi, I got this error:

[Wed Oct 16 16:52:11 2013] [error] [client 127.0.0.1] PHP Fatal error: Uncaught exception 'OAuth\Common\Storage\Exception\TokenNotFoundException' with message 'Token not found in session, are you sure you stored it?' in /works/minhna/public_html/CMP/V0/libraries/lusitanian/oauth/src/OAuth/Common/Storage/Session.php:44 [Wed Oct 16 16:52:11 2013] [error] [client 127.0.0.1] Stack trace: [Wed Oct 16 16:52:11 2013] [error] [client 127.0.0.1] #0 /works/minhna/public_html/CMP/V0/libraries/li3_socialauth/extensions/adapter/security/auth/Twitter.php(58): OAuth\Common\Storage\Session->retrieveAccessToken('Twitter')

I tried to dump $_SESSION in retrieveAccessToken function, it's empty

array(1) { ["oauth_token"]=> array(0) { } }

Thank you.

minhna avatar Oct 16 '13 10:10 minhna

Hi, do you use the "dev-master" release ?

I have corrected a bug only in master. I have just created a release with this correction, try to update your project with composer. It seems to work here.

If it's not ok, ping me again, I will try to help you.

scharrier avatar Oct 16 '13 12:10 scharrier

I use "dev-master" release. I think the problem here is I configured Lithium use MongoDB to store session instead of PHP session. so the PHP session won't work anymore. Do you think create another Storage will help?

minhna avatar Oct 16 '13 14:10 minhna

@scharrier Thank you for looking into this. @minhna has requested your help again. We reply on this to complete a project.

@minhna Anything else to provide here?

Thanks.

binhwpo avatar Oct 22 '14 09:10 binhwpo