li3_socialauth
li3_socialauth copied to clipboard
Have error with Twitter adapter
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.
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.
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?
@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.